Click here to Skip to main content
15,885,146 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Application_End () problem Pin
Steven James Gray29-Jan-09 10:37
Steven James Gray29-Jan-09 10:37 
AnswerRe: Application_End () problem Pin
Tad McClellan29-Jan-09 11:01
professionalTad McClellan29-Jan-09 11:01 
GeneralRe: Application_End () problem Pin
sana1729-Jan-09 11:12
sana1729-Jan-09 11:12 
AnswerRe: Application_End () problem Pin
N a v a n e e t h29-Jan-09 15:01
N a v a n e e t h29-Jan-09 15:01 
Questionchanging property of some other form's control? Pin
Tarun.Suneja29-Jan-09 7:38
Tarun.Suneja29-Jan-09 7:38 
AnswerRe: changing property of some other form's control? Pin
ToddHileHoffer29-Jan-09 7:48
ToddHileHoffer29-Jan-09 7:48 
AnswerRe: changing property of some other form's control? Pin
Tad McClellan29-Jan-09 11:04
professionalTad McClellan29-Jan-09 11:04 
Question[newbie] Validating a date Pin
jon-8029-Jan-09 6:53
professionaljon-8029-Jan-09 6:53 
I'm trying to validate a date, however, somehow the same code is not working within one project whilst it is working on the "test" project.

I've also noted that although the OS regional options format is set to dd/mm/yyyy, the format returned by another control (in my case a grid view), is in the following format: 3/31/2009 12:00:00 AM. Is it possible that .NET has its own "default setting"? Information would be appreciated.

I also tried checking the other methods accepted by DateTime.Parse. It would be appreciated if you could guide me as to what they usually mean.
Specifically what options should I fill in for IFormatProvider (a dummy value?) and System.Globalization.DateTimeStyles.

I've skimmed the web high and low so far and haven't found any specific info so far.

Any idea why?

//Validation 2: Date format [dd/mm/yyyy]
            DateTime _dateToValidate;
            if (DateTime.TryParse(txtIdealDeliveryDate.Text, out _dateToValidate) != true)
            {
               Response.Write("Invalid date format for Ideal Delivery Date.  Please leave empty or update date in [dd/mm/yyyy] format");
                ButtonMode = multifunctionButtonFunction.NoUpdate;
            }



.NET Framework 2.0

Related links:
http://msdn.microsoft.com/en-us/library/97x6twsz(VS.80).aspx[^]

Jon

AnswerRe: [newbie] Validating a date Pin
N a v a n e e t h29-Jan-09 7:26
N a v a n e e t h29-Jan-09 7:26 
AnswerRe: [newbie] Validating a date Pin
ToddHileHoffer29-Jan-09 7:53
ToddHileHoffer29-Jan-09 7:53 
Questionone webform to other Pin
Tarun.Suneja29-Jan-09 6:33
Tarun.Suneja29-Jan-09 6:33 
AnswerRe: one webform to other Pin
Rutvik Dave29-Jan-09 6:45
professionalRutvik Dave29-Jan-09 6:45 
GeneralRe: one webform to other Pin
Tarun.Suneja29-Jan-09 7:35
Tarun.Suneja29-Jan-09 7:35 
AnswerRe: one webform to other Pin
N a v a n e e t h29-Jan-09 6:54
N a v a n e e t h29-Jan-09 6:54 
AnswerRe: one webform to other Pin
Ashutosh Phoujdar29-Jan-09 21:06
Ashutosh Phoujdar29-Jan-09 21:06 
Question[newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
jon-8029-Jan-09 6:25
professionaljon-8029-Jan-09 6:25 
AnswerRe: [newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
Frauke29-Jan-09 23:35
Frauke29-Jan-09 23:35 
GeneralRe: [newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
jon-8030-Jan-09 8:38
professionaljon-8030-Jan-09 8:38 
AnswerRe: [newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
jon-8030-Jan-09 0:35
professionaljon-8030-Jan-09 0:35 
QuestionFormView last inserted ID into Access database Pin
Mohammad Al Hoss29-Jan-09 2:53
Mohammad Al Hoss29-Jan-09 2:53 
AnswerRe: FormView last inserted ID into Access database Pin
led mike29-Jan-09 4:24
led mike29-Jan-09 4:24 
QuestionFILE UPLOAD control Pin
sana1729-Jan-09 2:29
sana1729-Jan-09 2:29 
AnswerRe: FILE UPLOAD control Pin
J4amieC29-Jan-09 2:36
J4amieC29-Jan-09 2:36 
GeneralRe: FILE UPLOAD control Pin
sana1729-Jan-09 8:10
sana1729-Jan-09 8:10 
AnswerRe: FILE UPLOAD control Pin
Paddy Boyd29-Jan-09 2:45
Paddy Boyd29-Jan-09 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.