I'm writing an ASP.NET form which uses a custom web service to populate a table based on values (the specifics of this are not important).
On the page are two ASP.NET Calendar controls, what I want to be able to do is make use of the AutoPostback behaviour of these to make a new web service call each time the SelectedDate
of one of these changes, using its value as an input parameter.
Currently I set the value of the controls in the Page_Load
(in an if (!Page.IsPostBack){}
statement), and the first web service call includes both of these values. If one of these calendars is updated, I want a new web service call to be made, with the Submitted value from the calendar as a parameter, currently I can't get the request to contain anything but the initial value, which was set on the first page load.
您是否尝试过在日历控件的on_changed事件中放置用于调用Web服务的代码?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.