Board index » Visual Studio » Simplest possible question?
|
auggieben
|
Simplest possible question?
Visual Studio130
Ok, what's wrong with this picture? I have a simple webform with a single textbox webcontrol and a single webcontrol button. When the form is displayed, I manually type some new text into the textbox. Why aren't my updates detected in the button's code?! [It makes no difference how I set AutoPostBack or EnableViewState] Thanks, Paul. ------- 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 TextBox1.Text = "Init value goes in here" End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox2.Text = TextBox1.Text '<<This always detects ""Init value goes in here" even if I've edited it on-screen!! End Sub - |
