(Adam)
9/18/2002 7:39:00 PM
Hi all,
I am using the MMIT to develop a mobile app. I have a textbox and a
command button in the page that I want to use for searching. For
code, I have:
Private Sub cmdFind_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdFind.Click
Dim strCriteria As String
strCriteria = HttpUtility.UrlEncode(txtProject.Text)
RedirectToMobilePage("FindProject.aspx?Criteria=" &
strCriteria)
End Sub
Assume textbox txtProject and command cmdFind.
This works fine like this. However, if I set the value of the textbox
in the Page_Load Event, when I click on cmdFind, I do not get the
current value of the textbox, but rather, the initial value that I set
it to.
For example,
- txtProject.Text = "Foo" initializes the textbox with "Foo"
- I type "Bar" in the textbox
- The resulting redirect is FindProject.aspx?Criteria=Foo
Any ideas?
Cheers,
Adam