hii alll,...
i have a feedback form whr the user enters the data and it gets stored in the database.i have also given validations for submitting the form,,(for e.g. the user wil have to enter his name,,he cant leave tht field blank)...the prob is whn i click on the signout button, the validations get fired up.. i am using asp.net 2.0
here is my code for ::::::
_________________________________

<head><script language="C#" runat="server">


void Signout_Click(Object sender, System.Web.UI.ImageClickEventArgs e) {
FormsAuthentication.SignOut();
Response.Redirect("homepg.aspx");
}


</script></head>


for signout imahe button::::
____________________
<asp:ImageButton id="ImageButton1" OnClick="Signout_Click" runat="server" ImageUrl="homepgimages/signout.jpg"></asp:ImageButton>


feedback form::::
__________________
<TABLE id="Table3" style="WIDTH: 300px; HEIGHT: 58px" cellSpacing="1" cellPadding="1" width="300"
border="0">
<TR>
<TD style="BORDER-TOP-WIDTH: thin; BORDER-LEFT-WIDTH: thin; BORDER-LEFT-COLOR: steelblue; BORDER-BOTTOM-WIDTH: thin; BORDER-BOTTOM-COLOR: steelblue; WIDTH: 515px; BORDER-TOP-COLOR: steelblue; BORDER-RIGHT-WIDTH: thin; BORDER-RIGHT-COLOR: steelblue"
vAlign="top" width="515">
<TABLE id="Table2" style="WIDTH: 368px; HEIGHT: 358px" cellSpacing="0" cellPadding="0"
border="0">
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label1" runat="server" Font-Size="Smaller" Font-Names="Verdana">Name</asp:label></TD>
<TD><asp:textbox id="TextBox1" runat="server" BorderWidth="1px" BorderColor="Gray" Width="255px"></asp:textbox></TD>
<TD style="LEFT: 2px; POSITION: relative"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Width="120px" ControlToValidate="TextBox1"
ErrorMessage="Enter Your Name" ValidationGroup="submit"></asp:requiredfieldvalidator></TD>
</TR>
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label2" runat="server" Font-Size="Smaller" Font-Names="Verdana">E-mail ID</asp:label></TD>
<TD><asp:textbox id="TextBox2" runat="server" BorderWidth="1px" BorderColor="Gray" Width="255px"></asp:textbox></TD>
<TD style="LEFT: 2px; POSITION: relative"><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox2" ErrorMessage="Invalid E-mail ID"
Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" Width="144px" ControlToValidate="TextBox2"
ErrorMessage="Enter Your E-mail ID" Display="Dynamic"></asp:requiredfieldvalidator></TD>
</TR>
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label3" runat="server" Font-Size="Smaller" Font-Names="Verdana">Company Name</asp:label></TD>
<TD><asp:textbox id="TextBox3" runat="server" BorderWidth="1px" BorderColor="Gray" Width="255px"></asp:textbox></TD>
<TD style="LEFT: 2px; POSITION: relative"><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Width="136px" ControlToValidate="TextBox3"
ErrorMessage="Enter Company Name"></asp:requiredfieldvalidator></TD>
</TR>
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label4" runat="server" Font-Size="Smaller" Font-Names="Verdana" Width="128px">Company Address</asp:label></TD>
<TD><asp:textbox id="TextBox4" runat="server" Height="80px" BorderWidth="1px" BorderColor="Gray"
Width="255px" TextMode="MultiLine"></asp:textbox></TD>
<TD></TD>
</TR>
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label5" runat="server" Font-Size="Smaller" Font-Names="Verdana">Contact No.</asp:label></TD>
<TD><asp:textbox id="TextBox5" runat="server" BorderWidth="1px" BorderColor="Gray" Width="255px"></asp:textbox></TD>
<TD style="LEFT: 2px; POSITION: relative"><asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox5" ErrorMessage="Invalid Contact No."
ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" Width="120px"></asp:regularexpressionvalidator></TD>
</TR>
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label6" runat="server" Font-Size="Smaller" Font-Names="Verdana">Feedback</asp:label></TD>
<TD><asp:textbox id="TextBox6" runat="server" Height="80px" BorderWidth="1px" BorderColor="Gray"
Width="255px" TextMode="MultiLine"></asp:textbox></TD>
<TD style="LEFT: 2px; POSITION: relative"><asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" Width="136px" ControlToValidate="TextBox6"
ErrorMessage="Enter Your Feedback"></asp:requiredfieldvalidator></TD>
</TR>
<TR>
<TD style="WIDTH: 151px"><asp:label id="Label7" runat="server" Font-Size="Smaller" Font-Names="Verdana">Suggestion</asp:label></TD>
<TD><asp:textbox id="TextBox7" runat="server" Height="80px" BorderWidth="1px" BorderColor="Gray"
Width="255px" TextMode="MultiLine"></asp:textbox></TD>
<TD style="LEFT: 2px; POSITION: relative"><asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" Width="136px" ControlToValidate="TextBox7"
ErrorMessage="Enter Your Suggestion"></asp:requiredfieldvalidator></TD>
</TR>
<TR>
<TD vAlign="baseline" align="center" colSpan="2">
<P><asp:button id="Button1" runat="server" ValidationGroup="submit" Text="Submit"></asp:button>&nbsp;&nbsp;
<asp:button id="Button2" runat="server" Text="Clear"></asp:button></P>
</TD>
<TD align="center"></TD>
</TR>
</TABLE>
<asp:label id="Label8" runat="server" Font-Size="Smaller" Font-Names="Verdana"></asp:label>
</TD>
<TD style="WIDTH: 22px" vAlign="top"></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

_______________________________________________________________________
i hope u understand what the prob is,,,,,,help me out guys n gals out thr
thnks in advance

Edited 3 Years Ago by happygeek: fixed formatting

ohh shit,,,it was so simple,its done
thnks a lot man,,i was struggling 4 it
thnks a lot

ohh shit,,,it was so simple,its done
thnks a lot man,,i was struggling 4 it
thnks a lot

thanks flies, reputation remains :)

Comments
Really Helpful..keep going dude
This question has already been answered. Start a new discussion instead.