You need to define the property in code, then define it in the webpart within the UI (Site Manager>Development>Webparts>your webpart). Then in your event access it via the property name you created in the code behind.
For instance define this property in your webpart code behind:
/// <summary>
/// Redirect URL to use
/// </summary>
public string RedirectUrl
{
get
{
return ValidationHelper.GetString(GetValue("RedirectUrl"), "");
}
set
{
SetValue("RedirectUrl", value);
}
}
Then in Site Manager>Development>Webparts>your webpart, add the RedirectUrl as a new string property under the property tab.
Then in your event access it like so:
void viewBiz_OnAfterValidate(object sender, EventArgs e)
{
if (!String.IsNullOrEmpty(RedirectUrl))
{
viewBiz.BasicForm.StopProcessing = true;
Response.Redirect(Redirecturl);
}
}