J
Jim Mitchell
Am I correct to assume that any changes to a control's properties or changes
to a ViewState("Name") are not available until after the Page_Load fires?
If so, how can you set a flag in a control event so that you can take action
on postback?
I have the following code..... The window.alert always reads 0
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If not ispostback then
textbox1.text = 0
end if
Response.Write("<script language=javascript>window.alert('textbox1 = " &
TextBox1.Text & "')</script>")
End Sub
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnBindContacts.Click
TextBox1.Text = 1
ViewState("CallType") = 1
End Sub
to a ViewState("Name") are not available until after the Page_Load fires?
If so, how can you set a flag in a control event so that you can take action
on postback?
I have the following code..... The window.alert always reads 0
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If not ispostback then
textbox1.text = 0
end if
Response.Write("<script language=javascript>window.alert('textbox1 = " &
TextBox1.Text & "')</script>")
End Sub
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnBindContacts.Click
TextBox1.Text = 1
ViewState("CallType") = 1
End Sub