T
Tlink
I am using server.transfer from within vb.net, which is called from asp.net
I find that I can move to correct page the first time the server.transfer is
executed but all subsequent attempts cause a error message. The following is
my logic code:
If RedirectPage.StartsWith("~") Then
RedirectPage = Replace(RedirectPage, "~", "")
Dim bs As New Uri(CurrentUrl)
(Currenturl = http://testiis/project18/admin/user/edit.aspx)
TString = baseur & RedirectPage
(base url = http://testiis/project18/)
(redirect page = "cleanup.aspx"
Dim urinew As New Uri(TString)
RedirectPage = bs.MakeRelative(urinew)
End If
Server.Transfer(RedirectPage, True)
I am unsure of what I am doing wrong ?
I find that I can move to correct page the first time the server.transfer is
executed but all subsequent attempts cause a error message. The following is
my logic code:
If RedirectPage.StartsWith("~") Then
RedirectPage = Replace(RedirectPage, "~", "")
Dim bs As New Uri(CurrentUrl)
(Currenturl = http://testiis/project18/admin/user/edit.aspx)
TString = baseur & RedirectPage
(base url = http://testiis/project18/)
(redirect page = "cleanup.aspx"
Dim urinew As New Uri(TString)
RedirectPage = bs.MakeRelative(urinew)
End If
Server.Transfer(RedirectPage, True)
I am unsure of what I am doing wrong ?