Click here to Skip to main content
15,912,400 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to Set the URL befor PostBack (Passing Data in URL) Pin
just3ala24-Oct-06 22:01
just3ala24-Oct-06 22:01 
AnswerRe: How to Set the URL befor PostBack (Passing Data in URL) [modified] Pin
Jay_se4-Oct-06 22:14
Jay_se4-Oct-06 22:14 
QuestionHow to temporarly suspend the server execution Pin
srilu nagalla4-Oct-06 20:41
srilu nagalla4-Oct-06 20:41 
AnswerRe: How to temporarly suspend the server execution Pin
minhpc_bk5-Oct-06 15:17
minhpc_bk5-Oct-06 15:17 
QuestionDate formate in asp.net using C# Urgent!!!!! [modified] Pin
Aashutoshkumar4-Oct-06 20:33
Aashutoshkumar4-Oct-06 20:33 
AnswerRe: Date formate in asp.net using C# Urgent!!!!! Pin
minhpc_bk5-Oct-06 15:14
minhpc_bk5-Oct-06 15:14 
GeneralRe: Date formate in asp.net using C# Urgent!!!!! Pin
Aashutoshkumar7-Oct-06 1:46
Aashutoshkumar7-Oct-06 1:46 
GeneralRe: Date formate in asp.net using C# Urgent!!!!! Pin
minhpc_bk9-Oct-06 17:02
minhpc_bk9-Oct-06 17:02 
There are a couple of things that you might want to check when you run your code in debug mode and step through your code line by line:

+ You can check the DateTimeFormatInfo value at run time especially when the DTddMMyyyy object does not have the right format:
+ You can check the DTddMMyyyy object after the Parse method executes.

Below are two examples that give me the correct DateTime object after the Parse method runs:

//Example 1:
string selectedLanguage = "en-GB";
Thread.CurrentThread.CurrentCulture =    CultureInfo.CreateSpecificCulture(selectedLanguage);
string stringDate = "23/03/05";
DateTime DTddMMyyyy = DateTime.Parse(stringDate);
         
//Example 2:
string selectedLanguage = "en-US";
CultureInfo culture = new CultureInfo(selectedLanguage, true);
//Here you can configure the DateTimeFormatInfo in the way you want.
culture.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
Thread.CurrentThread.CurrentCulture = culture; 
string stringDate = "23/03/05";
DateTime DTddMMyyyy = DateTime.Parse(stringDate);

Questionhow to get the user's loginid Pin
BSRK4-Oct-06 20:33
BSRK4-Oct-06 20:33 
AnswerRe: how to get the user's loginid Pin
minhpc_bk5-Oct-06 15:10
minhpc_bk5-Oct-06 15:10 
AnswerRe: how to get the user's loginid Pin
laocat20036-Oct-06 4:58
laocat20036-Oct-06 4:58 
QuestionDataGrid Pin
ptvce4-Oct-06 20:26
ptvce4-Oct-06 20:26 
AnswerRe: DataGrid Pin
Jay_se4-Oct-06 20:34
Jay_se4-Oct-06 20:34 
AnswerRe: DataGrid Pin
Sathesh Sakthivel4-Oct-06 20:36
Sathesh Sakthivel4-Oct-06 20:36 
QuestionHow to read a folder on a mapped network drive in asp.net Pin
Am Ritha4-Oct-06 20:09
Am Ritha4-Oct-06 20:09 
AnswerRe: How to read a folder on a mapped network drive in asp.net Pin
minhpc_bk5-Oct-06 15:04
minhpc_bk5-Oct-06 15:04 
GeneralRe: How to read a folder on a mapped network drive in asp.net Pin
Am Ritha5-Oct-06 21:25
Am Ritha5-Oct-06 21:25 
JokeOracle Connectivity Problem Pin
imshally814-Oct-06 19:40
imshally814-Oct-06 19:40 
QuestionSend SMS Pin
DGtech4-Oct-06 18:27
DGtech4-Oct-06 18:27 
AnswerRe: Send SMS Pin
minhpc_bk4-Oct-06 18:54
minhpc_bk4-Oct-06 18:54 
AnswerRe: Send SMS Pin
Exelioindia4-Oct-06 21:48
Exelioindia4-Oct-06 21:48 
QuestionHow to close a window ? Pin
cheeken2u4-Oct-06 17:56
cheeken2u4-Oct-06 17:56 
AnswerRe: How to close a window ? Pin
Sushant Duggal4-Oct-06 18:09
Sushant Duggal4-Oct-06 18:09 
GeneralRe: How to close a window ? [modified] Pin
cheeken2u4-Oct-06 18:38
cheeken2u4-Oct-06 18:38 
GeneralRe: How to close a window ? Pin
Sushant Duggal4-Oct-06 20:39
Sushant Duggal4-Oct-06 20:39 

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.