After years of ASP.NET development I'm actually quite surprised that I can't seem to find a satisfying solution for this.
Why does an IIS ASP.NET site always seem to fall asleep (for 2-6 seconds) after a certain time of inactivity (after several hours), during which no HTTP response is sent from server to client. This happens on any type of site,…
I am trying to create a Validation in a reusable fashion.
Purpose:
Make the validation control reusable.
Error Provider should associate with control passed dynamically and can be set or cleared at run time.
When user press OnClick event then all the controls gets validated with their own Error Providers.
public bool IsFieldEmpty(ref TextBox…
I am trying to add an instance of UserControl each time on button_click event, it works for the first time only. I am adding IDs to user control by appending integers from ViewState.
Why does it not add work for subssequent clicks. Here is the simplified version with the same behavoir.
protected void Button1_Click(object sender, EventArgs e)…
I have a big stored procedure on a SQL Server 2008 Express SP2 database that gets run about every 200 ms. Normal execution time is about 50ms. What I am seeing is large inconsistencies in this run time. It will execute for while, say 50-100 times at 40-60ms which is expected, then seemingly at random the same stored procedure will take way…
I had a row in my database:
starttime:4/6/2012 2:00pm, Endtime:31/12/9999, name:"swetha", status:"open".....
When I update this row I changed the starttime to the current time (getdate()) and have no issues. I am running a Windows Service each day at 1am to modify a value in the row.
I would like to know the status of my row at 4/6/2012…
Hi All,
Does any one know, or is it possible to do one time payment, with paypal in android ?
Consider the senario.
Buyer purchases installs free
application.
Clicks on paypal module and makes
in-app payment, purchases feature
successfully.
Buyer deletes application. All
information including the feature
purchase enty in database is…
I have this date and time format:
2010-05-19 07:53:30
and would like to change it to:
Wednesday @ 7:53PM 5/19/2010
I'm doing this, which gets the current format:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
but when I change the format, I end up with a null. For…
In my masterpage, i'm having one textbox for searching purpose. if we press enterkey it is redirecting to some otherpage. But it is happening only one time. next time when i enter some text and press enter key, it is not going to the Keydown event handler.
Code:
javascript Code:
function SearchQuestionsAndDisplay(txt, event) {
…
I currently have code that looks like
while (very_long_loop) {
...
y1 = getSomeValue();
...
x1 = y1*cos(PI/2);
x2 = y2*cos(SOME_CONSTANT);
...
outputValues(x1, x2, ...);
}
the obvious optimization would be to compute the cosines ahead-of-time. I could do this by filling an array with the values but I…
I am using mysqldump to backup mysql database. Now I just need to use the current date and time as file name for the generated sql file. How do I do that if my current code looks like this:
mysqldump -u root -p --add-drop-table --create-options --password= onstor >c:\sql.sql
I also found this code from this site, but I do…
I am new at Core Data, and it seems like it is a great way to manage the data store. However I am also very memory-conscious due to the fact that the iPhone doesn't have that much of it. I was a little surprised to see that the data types are so limited - eg. there is a Date type which includes also the time, but no Date type…
I am running a pretty high traffic cluster of JBoss servers serving REST requests and I am interested in tools reading the access logs in Tomcat format (with %D parameter) to provide a detailed analysis of the response time on a per-call basis.
Ideally this tool would generate a chart showing the progression of the response…
I want to be able to present "today" and "yesterday" for recent dates in my application. I've got a date formatter in use currently to show dates (retrieved from data records) and will keep using this for anything more than a couple of days old. I just really like the way the SMS app in the iPhone shows dates for recent…
In various places I've seen the claim that by designing a system up-front, you can significantly reduce development time. I.e. by spending an hour designing you can save a week coding. My problem is that I have never seen a situation where I found this to be true. So I want to know of any examples out there that people…
I have summarizeData() method and called so many time for value retrieve. but first time is working file but 2nd time execution value is increasing in HashMap.
void summarizeData() {
HashMap outerMap = new HashMap();
ArrayList list = new ArrayList(dataClass.getData());
for (int indx = 0; indx <…
Hi,
Is there a way in flex 3 chart component to display both the date and time using horizontal DateTimeAxis?
Currently the DateTimeAxis element has an attribute dataunits which allows to set the value to any of "milliseconds|seconds|minutes|hours|days|weeks|months|years" but I want to display the label as…
I'm trying to play some sounds in my flash project through action script. However for some reason in my code the call to Sound.play takes from 40ms to over 100ms in extreme cases, which is obviously more than enough to be very noticeable whenever a sound is played. This happens every time a sound is played,…
I have problem related to mysql database. i am linux webserver admin and i am facing a problem with a mysql query. The database is very small. I tried to track in logs and found that a query is taking minimum 5 sec to respond . The first page of site is coming from the database. Client are using cms. when…