How to refresh a page from another page in asp.net?I have one page called Common.aspx.Once i click some button another page(Company.aspx)should refresh.How It possible?
I'm writing a script that needs to be called at a random time during the day, but am not sure how to accomplish this.
I don't want to waste server resources to run a cron job every minute.
I want the script to be called at random, so generating the random times for say a month in advance and then creating cron jobs for each of them isn't what I'm looking for.
Also this script only needs to be executed once a day.
Thanks in advance!
If I'm not online, I sometimes want to package some changes to a commit, that is saved in the working copy and can be really committed to the repository once I back online. How can I do that with Subversion (possible with the help of additional tools).
I have a string called word and a function called infinitive such that
word.infinitive would return another string on some occasions and an empty string otherwise
I am trying to find an elegant ruby one line expression for the code-snippet below
if word.infinitive == ""
return word
else return word.infinitive
Had infinitive returned nil instead of "", I could have done something like
(word.infinitive or word)
But since it does not, I can't take advantage of the short-circuit OR
Ideally I would want
1) a single expression that I could easily embed in other code
2) the function infinitive being called only once
3) to not add any custom gems or plugins into my code
I need to pass a Dictionary (with max 20,000 entries) to a WCF service. Can I pass it all by once?
void SubmitDictionary(Dictionary<string, MyEntry> val);
where MyEntry is :
class MyEntry
{
string Name;
long Age;
}
Is there a configuration for size of the value passed? or can we pass as large data as this?
I am testing a django application's frontend with selenium and that's first time I use it. I have multiple tests that test things after user logged in.
I want them to be separate tests, but I want to have only log in once, is that possible? (As oppose to what I do right now: I log in first, then execute my testing actions of test1, then log in again and execute my testing actions for test2, etc.)
Hi,
Once I connect my iPhone to my computer, is there anyway I can look at the directory structure on the phone?
Would it work like a USB device for example and let me copy files without using iTunes but just drag and drop through the Finder on a Mac?
Thanks,
Tee
Every now and then (once every day or so) we're seeing the following types of errors in our logs for an ASP.NET 3.5 application
Invalid viewstate
Invalid postback or callback argument
Are these something that "just happens" from time-to-time with an ASP.NET application? Would anyone recommend we spend a lot of time trying to diagnose what's causing the issues?
Some .net-framework interfaces and attributes become obsolete and deprecated since new framework version appears. I am warned that such code may be removed or become unpredictable in next versions but have you ever faced the situation when you were forced to refactor code because code came uncompilable or start to behave weird? What was you biggest refactoring?
Or maybe Microsoft always continued to support api's once they were published?
Thank you in advance!
Hi,
Is it possible to set multiple properties of an NSManagedObject and have the NSFetchedResultsController call controllerDidChangeContent: only once?
In other words, is it possible to say something like:
[managedObject beginChanges];
[managedObject setPropertyA:@"Foo"];
[managedObject setPropertyB:@"Bar"];
[managedObject commitChanges];
and then have the NSFetchedResultsController call controllerDidChangeContent: (and the other methods) only one time?
Thanks!
Anyone ever implements something in UITextView that stopping it from receiving future inputs when the text length is smaller than certain threshold? I plan to implement a textview like we have in the mail composer interface. We have a placeholder "Subject" there, and the cursor starts after.
Placeholder in UITextView
Inspired from this question, I wonder if there are some methods which could be used to stop changing the text in the UITextView once the cursor is moving back to the placeholder string.
Any ideas?
We're running a Django website with rough 45 install Django admin classes. The handler is mod_fastcgi. Every once in a while about half the admins disappear from /admin/ screen. Touching the production.fcgi file restores everything to normal, but we have yet to determine the underling cause.
Any thoughts on what the underlying issue might be?
I have a datagrid control which is bound to a table which containing more than 1000 records. And i want to show only 25 records once a time. I have used paging in datagrid. But each time the next page index is set, query is fired again. This takes lots of time. So what is the easiest way to bound data in this case to improve performance..??
I have a table like this
C1 C2 C3 Code
1 2 3 33
1 2 3 34
2 4 1 14
1 2 3 14
i want to select only those record whose code is appearing only in single row. ie, in this case rows with code 33 and 34.. as they appear only once in this table.
How can i write a query for that
I would like to create a Windows Forms application that when run is only visible once another external window (notepad.exe) is enabled/focused. Any hints, I don't know where to begin.
If my form is running I would like it to popup when Notepad is enabled and disappear when Notepad loses focus.
I am using an MKMapView in my iPhone application. When I load this view, the activity monitor instrument shows that the real memory of my App is increasing significantly. It keeps going up as you move the map around or zoom in and out. Once the View controller that loads this view is removed, the memory that was allocated due to the usage of the mapView does not get freed up. Is there something that can be done to get all this memory back?
Every time I view a form or dialog in Visual Studio (2005) the Properties and Toolbox panes show up on the right side of my screen. That's good to have because they are useful for manipulating dialogs.
However once I switch back to source code these panes just get in the way... is there a way to get them to go away automatically?
Hi
First let me start of saying I know absolutely nothing about c++ and I am really just more interested in getting this to work then learning c++(I got enough on my plate to learn).
So basically I am trying to make a terms of service for my windows mobile 6 professional application but it seems I need to use c++ to do it. After hours of searching I found a solution but it developed for windows mobile standard.
So they somehow used c++ to make a message box and on standard devices(ie non touch screen phones) the message box can have like scrolling. For some reason this is not the case with professional devices(touch screen devices).
So my message box goes off the page and you can never accept or decline the terms. So your stuck and on the screen forever till you do some sort of soft restart.
http://www.mobilepractices.com/2008/10/setupdll-sample-and-walkthrough-terms.html
The above link is the tutorial but here is the actual file that seems to display the message.
#include "stdafx.h"
#include "ce_setup.h"
// This is a variable containing the text to be displayed
// in the Terms & Conditions dialog
TCHAR Message[] = _T("TERMS & CONDITIONS\r\n ")
_T("Selecting YES you're accepting our terms & conditions.\r\n")
_T("This is just a sample application.\r\n")
_T("From http://www.mobilepractices.com\r\n")
_T("You can replace this text with your own.\r\n")
_T("We're using a setup.dll to show this dialog.\r\n")
_T("Extra line to force vertical scrollbar.\r\n")
_T("Extra line to force vertical scrollbar.\r\n")
_T("Extra line to force vertical scrollbar.\r\n")
_T("Extra line to force vertical scrollbar.\r\n")
_T("Extra line to force vertical scrollbar.\r\n")
_T("Extra line to force vertical scrollbar.\r\n")
_T("Last line.\r\n")
;
// This function will be called when the user
// tries to install the cab. According to its return
// value the installation continues or is cancelled.
// As this could be called more than once
// (i.e. if there is not enough space on the target)
// we should take care about fFirstCall parameter
// to show the dialog only once.
codeINSTALL_INIT Install_Init( HWND hwndParent,
BOOL fFirstCall,
BOOL fPreviouslyInstalled,
LPCTSTR pszInstallDir )
{
if (!fFirstCall
||
::MessageBoxW(0, Message,
_T("SplashScreenSample")
, MB_YESNO) == IDYES)
return codeINSTALL_INIT_CONTINUE;
else
return codeINSTALL_INIT_CANCEL;
}
So I want to change this to something that can scroll. Can I use like a panel control since I know what has scroll or something else?
Thanks
Is there such a thing as an "on load complete" for images in iphone?
I want to be able to destroy a UIActivity indicator once and image is loaded.
What the general best practice for doing this?
how would i go about displaying the like button for every randomly generated quote either on the canvas or the wall? once the user likes it, s/he can click on a tab on the canvas to see the list of quotes which s/he has 'liked'.
any ideas?
I'm doing a steganography project where I read in bytes from a ppm file and add the least significant bit to an array. So once 8 bytes are read in, I would have 8 bits in my array, which should equal some character in a hidden message. Is there an easy way to convert an array of 0's and 1's into an ascii value? For example, the array: char bits[] = "0,1,1,1,0,1,0,0" would equal 't'. Plain C
I have an embedded form with a choice widget. I'm trying to pass a default value from the main form to the widget. I'm trying to pass the value to the form as an option, then once I have it in the embedded form do I just do something like:
new sfwidgetformchoice(array(...,'default' => $this->getOption('default'))
doesn't seem to work
I'm a n00b when it comes to JavaScript and the DOM... once I've opened up an HTML file in a shadowbox, how do I make a link so that the parent window changes?
What is the best process where code is checkedin by developers, installer is created by build engineer and release to QA to test the installer.
Should the installer be release to QA without unit testing by Dev. If dev do some changes then they should wait until QA to report bugs.Or if installer first given to dev for unit testing and once they signoff then only it should be release to QA?
Hi,
I come from a .NET background. Am I the only one who finds it hard to be fluent with T-SQL? Somebody once said it is hard to be good in say C# and also SQL as SQL is declarative (not sure of the distinction).
Thanks