Y
YankeeImperialistDog
i'm doing some custom validation and a cross page post back. i need to set
Page.IsValid = false; so i can trap it on the following page. is there a way
to do this?
i'd perfer to just cancel the crosspage post back and staying on the same
page, but don't know how to do this.
given this event
protected void lbtnRunTransaction(object sender, CommandEventArgs e)
{
if ("somevalidationroutine finds errors")
set the Page.IsValid = false
}
or better
protected void lbtnRunTransaction(object sender, CommandEventArgs e)
{
if ("somevalidationroutine finds errors")
cancel the postback;
}
KES
Page.IsValid = false; so i can trap it on the following page. is there a way
to do this?
i'd perfer to just cancel the crosspage post back and staying on the same
page, but don't know how to do this.
given this event
protected void lbtnRunTransaction(object sender, CommandEventArgs e)
{
if ("somevalidationroutine finds errors")
set the Page.IsValid = false
}
or better
protected void lbtnRunTransaction(object sender, CommandEventArgs e)
{
if ("somevalidationroutine finds errors")
cancel the postback;
}
KES