Dropdown在gridview控件中.

问题描述:

这是Sabir,

1.我有一个gridview控件,里面有两个项目templete.
2.我想在网格内下拉菜单的所选更改事件的同一行中向文本框中写入一些值.


谢谢.

Hi This is Sabir,

1.I have a gridview control and inside that i have two item templete.
2.I want to write some value to the text box in the same row of The selected changed event of dropdown inside the grid.


Thanks.

<templatefield>
  <itemtemplate>
    <asp:dropdownlist id="ddl1" runat="server" onselectedindexchanged="ddl_selectedindexchanged"></dropdownlist>
  </itemtemplate>
</templatefield>





protected void ddl_selectedindexchanged(objects as sender,eventargs e)
{
    //your code here.
}



添加了用于代码格式的PRE标签-Ankur



Added PRE tags for code formatting - Ankur