Hi,
can someone help me ? I need to select the correct value of an ASPropdownList after an autopostback ?
The following wont work :
Thank You Sascha
can someone help me ? I need to select the correct value of an ASPropdownList after an autopostback ?
The following wont work :
Code:
Protected Sub ddl_printout_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
ddl_printout.SelectedIndex = Session("Index_ddl_printout")
ddl_printout.DataBind()
Tabs.ActiveTabIndex = 2
Tabs.DataBind()
End Sub
<asp:DropDownList ID="ddl_printout" runat="server" DataSourceID="tb_printout"
DataTextField="TB_PRNT_Longname" DataValueField="TB_PRNT_Index"
Width="295px" OnSelectedIndexChanged="ddl_printout_SelectedIndexChanged"
AutoPostBack="True">
</asp:DropDownList>
Thank You Sascha