Hi,
here is a thread which is on the same issue:
http://www.netbiscuits.com/messageboard/message_boards/message/84166and regarding to this thread here's your code:
if (Request.HttpMethod == "POST")
{
if (!String.IsNullOrEmpty(Request["AgentID"]) && !String.IsNullOrEmpty(Request["Password"]))
{
Response.Redirect("~/ProcessLogin.aspx");
}
else
{
Text validationError = new Text();
validationError.BGColor = System.Drawing.Color.Red;
validationError.RichText = "Fill in all required fields (marked with a *)";
this.ValidationSummary.Controls.Add(validationError);
}
}
Next time use the search first ;)
Hope this will help you.
Regards
Netbiscuits .NET Controls Team