Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP 2.0 Weird problem - localhost Vs. http

Status
Not open for further replies.

joggi

Programmer
Nov 8, 2006
44
YU
When I run my ASP application on localhost everything is ok. But, when I start my application from I can delete and edit table, but Insert doesn’t work. There is no error, I put some labels to check my code, everything is fine, but Insert doesn’t work.
It is very weird; do I have to set IIS or what? What is the difference between localhost and http, code is the same?
 
1. My table has field Date
2. On my PC I have date format dd.mm.yyyy HH:mm:ss
3. In my code I have DataTable field = Now
4. When I start application from localhost Now= 13.12.2006 14:02:02
5. When I start from My site/Default.aspx Now = 12/13/2006 2:02 PM
6. I got error “The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value”
7. I wonder who change the date format, from where my application takes 12/13/2006 2:02 PM
 
>>My table has field Date

you are using SQL Server? in that case you can mention the culture information in the Connection String itself...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top