server control on masterpage

  • Thread starter Thread starter CreativeMind
  • Start date Start date
C

CreativeMind

hi, a simple problem is there.
i m facing problem
"Control '_ctl0_txtUserName' of type 'TextBox' must be placed inside a
form tag with runat=server."

actually i have a master page which has a textbox. In the master page
(.master) file,
i m using a condition
-----------
<% if(istrue)%>
<tr><td><asp:textbox id="t" runat="server" ></textbox></td>
</tr>
<%}%>
-----------

when i send request to some content page, i face problem on master
page describing

"Control '_ctl0_txtUserName' of type 'TextBox' must be placed inside a
form tag with runat=server."
<% } %>


how can i resolve that..
thanx
 
Back
Top