|
Step 1: Add the code below in the Page class of MyPage.aspx.cs or vb.
C#, override ModifyRedirectUrl()
public override void ModifyRedirectUrl(BaseClasses.ApplicationEventArgs args)
{
string myStr = this.ShipCountry.Text + this.ShipCity.Text;
args.RedirectUrl = args.RedirectUrl + "?myparam=" + myStr;
}
|
C#, override Redirect()
protected override void Redirect(BaseClasses.ApplicationEventArgs args)
{
string myStr = this.ShipCountry.Text + this.ShipCity.Text;
args.RedirectUrl = args.RedirectUrl + "?myparam=" + myStr;
base.Redirect(args);
}
|
Visual Basic .NET, override ModifyRedirectUrl()
Public Overrides Sub ModifyRedirectUrl(ByVal args As BaseClasses.ApplicationEventArgs)
Dim myStr As String = Me.ShipCountry.Text & Me.ShipCity.Text
args.RedirectUrl = args.RedirectUrl + "?myparam=" + myStr
End Sub
|
Visual Basic .NET, override Redirect()
Protected Overrides Sub Redirect(ByVal args As BaseClasses.ApplicationEventArgs)
Dim myStr As String = Me.ShipCountry.Text & Me.ShipCity.Text
args.RedirectUrl = args.RedirectUrl + "?myparam=" + myStr
MyBase.Redirect(args)
End Sub
|
Step 2: Build and run your application.
|