简体   繁体   English

asp.net中下拉列表的选定索引更改事件

[英]Selected Index change event of drop down list in asp.net

I am calling one function which will set the value to html control/asp.net control(Textbox). 我正在调用一个函数,它将值设置为html control / asp.net control(Textbox)。 (ie End Date=24 Sep 2013) (即结束日期= 2013年9月24日)

However, the function is not changing value of textbox. 但是,该功能不会更改文本框的值。 The function is called on by a Selected Index Change of Drop down list, so the function should change the value of control based on return value of the function. 该功能由下拉列表中的选定索引更改调用,因此该功能应基于该功能的返回值来更改控件的值。

Thanks & regards, Vishal Patel 谢谢与问候,Vishal Patel

it's hard to know what your doing with out seeing code. 很难不看代码就知道你在做什么。 but. 但。 on your dropdown list make sure you've set the property AutoPostBack="true" so that the select index change fires automatically when the drop down list is selected. 在下拉列表中,请确保已设置属性AutoPostBack="true"以便在选择下拉列表时自动触发选择索引更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM