views:

26

answers:

3

In my asp.net page i have java script calendar,on which i want the selected date & then that date has to passed to the code behind's method. How should it be done???

A: 

The JavaScript actually is evaluated at the same time as HTML. So you can just write the JavaScript with ASP. You just shouldn't forget to put ' and to escape if you right a string and so on.

xavierm02
A: 

If your javascript calendare puts the selected date into a textbox, or into a hidden field, then you should be able to access this on postback.

Paddy
A: 

If you want the value that was selected you need the javascript calendar to write the date into an input box inside a form and that will get sent back as part of the postback.

James Westgate