Click here to Skip to main content
15,921,212 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!
I have a textbox along calender extender.
When I enter a date that lies in the future it gives a "500 Internal Server Error". I am unable to resolve it.

Modification:
I mean to say when I enter date that is ahead of today then an error message box pops up "500 Internal Server Error". I want that textbox to accept future date as well.
End Modification


Please help me out.

Thank you!
Posted
Updated 6-Dec-10 2:20am
v4

1 solution

Have you tried debugging your web application. You might consider changing your web.config to allow for more verbose and meaningful error messages.

In the section <system.web> of web.config do this:
XML
<customErrors mode="Off"/>


This will turn off friendly error messages and they'll be replaced by more meaningfull stuff. Of course you shouldn't do this in a production environment since your users would probably not be amused. After you made those changes you'll have to wait a bit until the application restarts itself (after it detected the change in web.config).
Please try again and modify your question by adding the complete error message that gets dumped on the browser screen. Thank you!


Cheers


Manfred
 
Share this answer
 
v3
Comments
Manfred Rudolf Bihy 6-Dec-10 8:19am    
[Moved on OP's behalf:] I mean to say when I enter date that is ahead of today then an error message box pops up "500 Internal Server Error". I want that textbox to accept future date as well.
Manfred Rudolf Bihy 6-Dec-10 8:24am    
I understood you the first time. You are getting an error and want to find out why that error is happening. Then heed the advice given to you by somebody with a lot of debugging experience and kindly do as I asked you.

Aside from that: Is the error happening when you enter the date or when the form gets submitted?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900