simple onclick event handler question
Posted on 2006-07-14
I have a very simple question about event handlers.
I've created a very simple form page with a textbox and image button.
when the image button is clicked I want to pass the value in the text box in a querystring, redirecting to another URL:
Here is my event handler:
protected void SearchImageButton_Click(object sender, ImageClickEventArgs e)
Response.Redirect("http://search.mysite.com:9000/cgi-bin/query?mss=search&op=x&i=mysite&9=" + the textbox value
The name of my textbox is SearchTextBox
How do I pass that value in my the querystring?