T
TJS
After a post back the selected index should be rest in a droplist to match
user's choice, but page always show selected item as first one in the
droplist.
How can iforce the selected item to be reset
I have:
Sub Page_Load(s As Object, e As EventArgs)
If Page.IsPostBack then
If len( request.params("idx")) then vSelectedItem =
request.params("idx")
SearchList.SelectedIndex= vSelectedItem
End if
end sub
Sub ApplyFilter_Click(s As Object, e As EventArgs)
Dim vSelectedItem As String
vSelectedItem = SearchList.SelectedIndex
response.redirect("Editor.aspx?idx=" & vSelectedItem)
End Sub
user's choice, but page always show selected item as first one in the
droplist.
How can iforce the selected item to be reset
I have:
Sub Page_Load(s As Object, e As EventArgs)
If Page.IsPostBack then
If len( request.params("idx")) then vSelectedItem =
request.params("idx")
SearchList.SelectedIndex= vSelectedItem
End if
end sub
Sub ApplyFilter_Click(s As Object, e As EventArgs)
Dim vSelectedItem As String
vSelectedItem = SearchList.SelectedIndex
response.redirect("Editor.aspx?idx=" & vSelectedItem)
End Sub