Event order
I need some help with the order of events. I have a formview in edit mode with many controls. I would like some controls, dropdownlist16 to be visible = True if the value of a textbox1 is "CA". The initial view of dropdownbox9 is visible = False. I put the code in the page_load section and it fires when the page is rendered once and everything looks correct.
1. I have the pager and if I click another page none of the code fires.
2. Also if I click the update linkbutton all the fields are updated in the datebase, but when the form is redisplayed back on the screen none of the page_load code runs.
Do I have some parameter on the formview1 set incorrectly so that an update or page_load change does not fire the onpageload event?
here is the simple code in my page_load
Dim ddl16 As DropDownList = FormView1.FindControl("dropdownlist16")
Dim tb18 As TextBox = FormView1.FindControl("textbox18")
If Left(tb18.Text, 2) = "CA" Then
ddl16.Visible = True
End If
|