Hi,
I dont know how I explain my problem. I have used VeiwState to save value of a control.
Here is what I have done
Sub Page_Load
If (Not Page.IsPostBack) Then
the view state declared and get a value
end if
end sub
Sub Page_PreRenderComplete
If MyViewState = "yes"
MyButton.text = "Add"
Else
MyButton.text = "Cancel"
End If
End sub
I had to do this because every time the page loads it changes MyButton.Text to "" . for example first i did wrote this code in the MyButton_Click event but when the page loads it changed back to "".
Now the problem is, even if another events happend it goes in i PreRender and changed the text of my button, I want mybutton changes its button just when i click on
How?
thanks for your help
I dont know how I explain my problem. I have used VeiwState to save value of a control.
Here is what I have done
Sub Page_Load
If (Not Page.IsPostBack) Then
the view state declared and get a value
end if
end sub
Sub Page_PreRenderComplete
If MyViewState = "yes"
MyButton.text = "Add"
Else
MyButton.text = "Cancel"
End If
End sub
I had to do this because every time the page loads it changes MyButton.Text to "" . for example first i did wrote this code in the MyButton_Click event but when the page loads it changed back to "".
Now the problem is, even if another events happend it goes in i PreRender and changed the text of my button, I want mybutton changes its button just when i click on
How?
thanks for your help