Что не так с моим кодом? Когда я нажимаю кнопку, я не могу прочитать значение Textbox из части сервера.
Мой код следующим образом: < /p>
Cancel
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
x_ref = Request.QueryString("ref")
If (String.Equals(x_ref, "hotel")) Then
Response.Cache.SetCacheability(HttpCacheability.NoCache)
GetServerDate()
End If
End Sub
Private Sub GetServerDate()`enter code here`
Response.Clear()
Response.Write(DateTime.Now.ToString() + "Data =" + zr_tb_hotel_location.Text)
Response.End()
End Sub
enter code here
Подробнее здесь: https://stackoverflow.com/questions/229 ... th-textbox