Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using callback in my application.To keep it simple,i have a textbox in which the user will enter a date;Based on this date,a stored procedure will be called.I am stuck here:How can I pass the date the user selected as an input to the stored procedure,as Textbox.text is been shown as blank?

Thanks in advance..
Posted

What do you mean Textbox.text is blank?

If you use an asp.net textbox the value will be available when the form is posted-back tot he server, such as when a submit button is clicked.
 
Share this answer
 
Comments
rajivpande86 16-Jul-10 11:00am    
The textbox in which I have entered the date,its text is been shown as blank.How can I retrieve the date which has been entered to pass it to the stored procedure.
[no name] 16-Jul-10 11:29am    
Repeating yourself doesn't help. Maybe if you shouted it would be more effective.
Or you could give an example of what you are doing.
Have a look at this article:
ClientCallback custom control for web applications[^]
This passes the nodeID to Stored Proc and get backs data.

You have to access the textbox in your Javascript. Associate any event like, onchange or onblur to the callback and in the javascript method, use the value to pass on to server side to get data.
 
Share this answer
 

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