Asp.net 2.0中的回调 [英] Callback in Asp.net 2.0

查看:117
本文介绍了Asp.net 2.0中的回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中使用回调.为简单起见,我有一个文本框,用户将在其中输入日期;基于此日期,将调用存储过程.我被困在这里:如何传递用户选择作为存储过程输入的日期,如Textbox.text显示为空白?

在此先感谢..

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..

推荐答案

您的意思是Textbox.text为空白吗?

如果您使用asp.net文本框,则在将表单回发到服务器时(例如,单击提交按钮时),该值将可用.
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.


看看本文:
Web应用程序的ClientCallback自定义控件 [
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.


这篇关于Asp.net 2.0中的回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆