Click here to Skip to main content
15,879,474 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus14-Apr-08 21:12
protectorChristian Graus14-Apr-08 21:12 
GeneralRe: i want to know the number hits customers are visting Pin
N a v a n e e t h14-Apr-08 21:23
N a v a n e e t h14-Apr-08 21:23 
GeneralRe: i want to know the number hits customers are visting Pin
ajaych15-Apr-08 19:50
ajaych15-Apr-08 19:50 
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus16-Apr-08 11:18
protectorChristian Graus16-Apr-08 11:18 
GeneralRe: i want to know the number hits customers are visting Pin
N a v a n e e t h14-Apr-08 20:19
N a v a n e e t h14-Apr-08 20:19 
Generalconverssion of PDF pages into images Pin
Arihant rathi14-Apr-08 18:54
Arihant rathi14-Apr-08 18:54 
GeneralRe: converssion of PDF pages into images Pin
Christian Graus14-Apr-08 19:18
protectorChristian Graus14-Apr-08 19:18 
QuestionGlobalization and Date Format Pin
andrew_dk14-Apr-08 12:29
andrew_dk14-Apr-08 12:29 
I have a function in an ASP.Net project that sets the date in a text box. ie
<br />
Private Sub SetDate()<br />
    Dim dateTimeFormatInfo As DateTimeFormatInfo = cultureInfo.CurrentCulture.DateTimeFormat<br />
    Dim dateStartDate As Date = Date.Now<br />
    txtStartDate.Text = dateStartDate.ToString("d", dateTimeFormatInfo)<br />
End Sub<br />

In my web.config I have:
<br />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" uiCulture="en" culture="en-US" /><br />

When I run this locally I get the expected short date format, namely m/d/yyyy (on Windows XP SP2 using the VS web server). However when I run it on IIS on Windows 2003 the date is always formatted as dd/MM/yyyy. I thought this may have been something to do with regional settings on the server so I changed this. No difference. I tried uninstalling and reinstalling the .Net 2.0 framework but to no avail. When I do a:
<br />
Dim dateTimeFormatInfo As DateTimeFormatInfo = cultureInfo.CurrentCulture.DateTimeFormat<br />
Response.Write(dateTimeFormatInfo.ShortDatePattern)<br />

it is always output as dd/MM/yyyy. I know you can manually set the ShortDatePattern however I would prefer to know why this isn't working as expected. It's probably something incredibly trivial that I have overlooked. Any advice much appreciated.
Thanks.
GeneralDash boards Pin
kjosh14-Apr-08 12:01
kjosh14-Apr-08 12:01 
GeneralRe: Dash boards Pin
Christian Graus14-Apr-08 12:30
protectorChristian Graus14-Apr-08 12:30 
GeneralRe: Dash boards Pin
Hamid_RT14-Apr-08 21:51
Hamid_RT14-Apr-08 21:51 
QuestionCustom Control Problem Pin
DominionZA14-Apr-08 11:14
DominionZA14-Apr-08 11:14 
GeneralRe: Custom Control Problem Pin
Christian Graus14-Apr-08 11:20
protectorChristian Graus14-Apr-08 11:20 
GeneralRe: Custom Control Problem Pin
DominionZA14-Apr-08 11:24
DominionZA14-Apr-08 11:24 
GeneralSimple but confusing ASP .NET /javascript question Pin
Mohammad A Gdeisat14-Apr-08 11:05
Mohammad A Gdeisat14-Apr-08 11:05 
GeneralRe: Simple but confusing ASP .NET /javascript question Pin
Christian Graus14-Apr-08 11:19
protectorChristian Graus14-Apr-08 11:19 
GeneralRe: Simple but confusing ASP .NET /javascript question Pin
Mohammad A Gdeisat14-Apr-08 11:38
Mohammad A Gdeisat14-Apr-08 11:38 
QuestionHow To Store a File in Database Using FileUpLoad web control Pin
ArunVijay14-Apr-08 7:49
ArunVijay14-Apr-08 7:49 
AnswerRe: How To Store a File in Database Using FileUpLoad web control Pin
Mark J. Miller14-Apr-08 8:37
Mark J. Miller14-Apr-08 8:37 
QuestionDataReader throws exception Pin
jamie21cor14-Apr-08 3:35
jamie21cor14-Apr-08 3:35 
GeneralRe: DataReader throws exception Pin
Herman<T>.Instance14-Apr-08 4:04
Herman<T>.Instance14-Apr-08 4:04 
GeneralRe: DataReader throws exception Pin
jamie21cor14-Apr-08 4:20
jamie21cor14-Apr-08 4:20 
GeneralRe: DataReader throws exception Pin
Herman<T>.Instance14-Apr-08 4:32
Herman<T>.Instance14-Apr-08 4:32 
GeneralRe: DataReader throws exception Pin
eyeseetee14-Apr-08 4:33
eyeseetee14-Apr-08 4:33 
GeneralRe: DataReader throws exception Pin
Soumini Ramakrishnan14-Apr-08 19:35
Soumini Ramakrishnan14-Apr-08 19:35 

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.