Posted on: 7/3/2009 1:03:20 AM | Views : 233

 Hi. I'm new to asp.net, using vb and masterpage. I've got a working search.aspx, enter whatever into txtSearch (the textbox id), and hit Search button, and gridview gets results. I added a textbox with id txtSearchH and search button to my master page. And hit the search button's postbackurl to search.aspx. But nothing happened, so I site googled for search and masterpage, and came up with a few options to try but nothing worked. Heres my code so far, hope someone can help:
 
masterpage code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Response.Redirect("~/Search.aspx?txtSearch=" & Server.UrlEncode(txtSearchH.Text)) End Sub </script> ... <asp:TextBox ID="txtSearchH" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Search" ...

Go to the complete details ...