<%@dotnet.itags.org. Control Language="vb" AutoEventWireup="false" Codebehind="Search.ascx.vb" Inherits="SilentBookShop.Search" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<FORM method="post" id="frmSearch" name="frmSearch" action="../WebForm1.aspx">
<TABLE id="Table1" style="WIDTH: 174px; HEIGHT: 90px" cellSpacing="1" cellPadding="1" width="174" align="left" bgColor="#6666ff" border="0">
<TR>
<TD style="COLOR: white; FONT-STYLE: italic; HEIGHT: 15px" align="middle" bgColor="#993300" colSpan="1" rowSpan="1">Search</TD>
</TR>
<TR>
<TD style="HEIGHT: 33px"><SELECT style="WIDTH: 133px">
<OPTION value="" selected>--</OPTION>
<OPTION value="Keyword">Keyword</OPTION>
<OPTION value="Title">Title</OPTION>
<OPTION value="Author">Author</OPTION>
<OPTION value="ISBN">ISBN</OPTION>
</SELECT></TD>
</TR>
<TR>
<TD>
<INPUT style="WIDTH: 132px" type="text" id="searchString" name="searchString">
<INPUT style="WIDTH: 30px; HEIGHT: 22px" type="submit" value="GO"></TD>
</TR>
</TABLE>
</FORM
wen i click at the button, it stays on the same page, it won't go to the page i want.
Thanks!It looks like you're missing some "runat=server" attributes in your elements. This could be contributing to the problem.
Hi,
Because the page that you're going to put your control in already has a form and you can't nest forms.
You should use an asp:button, and Redirect or Transfer from the button's click event.
Alternately, your button's client-side click event could set the action of document.forms[0] to ../WebForm1.aspx and submit.
Let me know if this helps.
0 comments:
Post a Comment