I can use Session_Start of global.asax file.
I need to display a message to the user if session has expired after say 1 minute and take user to a different page than login page. How do I differ between if Session has expired or if its a new login?
Don't bother with that. It's ridiculous user fluff on the Web. Just say "Your session may have expired" or something. Don't go adding a bunch of hacked complexity to try and get browsers and HTTP to do things they were never designed to do just to supply users with perfect message, that is just foolishness.
I would imagine that it has to do with the default date parsing and locale. Try changing your date declaration to 03/27/2008 12:36:00 PM or use the DateTime.Parse overload that allows you to specify the composition of your date string.
Hope that helps.
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
Gah! Nope, the problem is not framework version, the problem is me working from memory and mixing languages up. Never try to answer a .NET date parsing question while writing an Oracle stored procedure that uses a date range.
My apologies. My bad.
Be sure to call the Date property of your date when setting the selected date. That appears to be the culprit. For example:
i have two textboxes and a button in a form.
on the formload i am keeping the focus in the textbox.
on pressing enter(text changed event of textbox) , while the focus is lying in the textbox , it populates the pertaining valus in the another textbox.
i have done one more thing , while the user presses the button , it checks whether the tetxboxes are blank or not , if it is blank , then it prevents , submitting the form and invokes the message box.
Now the problem is when i presses the enter , while the focus is in the textbox , it invokes the alert box that the textboxes are empty.
But i don;t want this , it should populate the pertaining value in the another textbox.
PLease sort out this problem
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!