Showing posts with label itself. Show all posts
Showing posts with label itself. Show all posts

Wednesday, March 21, 2012

Need help with CalendarExtender Control

Hi,

I'm a beginner to ASP.NET AJAX and ASP.NET itself. I have a calendar extender for a textbox and it works fine until I click the 'Submit' button in my form. Apparently in the UI the date will show but when I do an insert to my database by using the Convert.ToDateTime function first, I get thrown an exception where it says:

'The string was not recognized as a valid DateTime. Tehre is a unknown word starting at index 0'

I would like to get some help to troubleshoot this problem.

Thanks in advance,
Nick

HI, probably your date format is not correct, the calendar extender format should be the same that the database format check that both formats be mm/dd/yy or mm/dd/yyyy or mm/dd/yyyy hh:mm:ss.


Hi, apparently something was wrong with the AJAX calendar extender. I didn't realise it until I deleted it and created a new one.

Thanks for the help anyway!Smile

Cheers,
Nick

Need help with MasterPages and Proxies

I watched the video, and it seemed to suggest that you only need to use proxies if you are doing ajax stuff on the master page itself? Is this true? In other words if I have a master page that just contains static stuff, do I still need to put the ScriptManager on the master page and use proxies everywhere else?

Thanks ... Ed

What you've described is the typical scenario. You don't have to use Proxies unless you've included the ScriptManager in your MasterPage. You don't have to put the ScriptManager on the MasterPage unless you need to (or just want to)...

Thanks for clearing that up.

Ed