G
Guest
I have a popup window, which consists of a TextBox(txtConnectionString) and a
Button(btnOK). And, I would to pass the TextBox.Text to a javascript
function, when Button is clicked. I write the following code in order to do
such thing:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.btnOK.Attributes.Add("onclick", "Done('" &
txtConnectionString.Text & "');")
End Sub
Whereas, after I open the window and change the TextBox.Text, it will pass
the old textbox value to the javascript function, but not the new value. Why
this happen and how to solve?
Please help...thanks.
Button(btnOK). And, I would to pass the TextBox.Text to a javascript
function, when Button is clicked. I write the following code in order to do
such thing:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.btnOK.Attributes.Add("onclick", "Done('" &
txtConnectionString.Text & "');")
End Sub
Whereas, after I open the window and change the TextBox.Text, it will pass
the old textbox value to the javascript function, but not the new value. Why
this happen and how to solve?
Please help...thanks.