ASP.Net 2.0 request.form not working with master page
Posted on 2006-04-19
I have a form containing a text box where users can type in a keyword and search a database. Everything is working fine until I incorporate it into a content page with a master page. Once I do that, Request.Form("Keyword") does not seem to be working. I'm using ASP.Net 2.0, Visual Web Developer, and VB. Is there something I should/could be using other than request.form to capture the value in the keyword field? Thanks for the help.
My content page contains the following:
<%@ page language="VB" masterpagefile="~/Site.master" codeFile="Default.aspx.vb" Inherits="_Default"%>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" Runat="server">
My master page contains:
<asp:ContentPlaceHolder ID="mainContent" runat="server" />