I have a Master page in my ASP.net web site. And here I have a Button. It will navigates to wecomePage. Here is the code behind.
protected void ImageButtonShortcut1_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("welcomePage.aspx", true);
//Server.Transfer("welcomePage.aspx", true);
}
Now I have a childpage which inherits above master. Inside the child page I used a TextBox with Required validation.
<asp:TextBox ID="TextBox_Model" runat="server"> </asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="TextBox_Model" ErrorMessage="Model Required"></asp:RequiredFieldValidator>
Scenario : When User navigates to above child page and without entering anything to that Text box, he is trying to hit Master page Button for return to WelcomePage.
Unfortunately It doesn’t allow to navigate, since user hasn’t filled the Required field. How can I overcome this problem? Please help me. Thank you.
It seems you are not using ValidationGroup for the RequiredFieldValidator for their correspondent Button. try using that