D
Dot net work
I have noticed that this:
Response.Redirect("/MyLocalDirectory/MyPage.aspx")
seems to be a lot quicker than this:
Response.Redirect(sDirectoryString & "MyPage.aspx")
In local development mode, I need to have sDirectoryString equal to my
local folder structure, but when I upload the project to a webserver,
the sDirectoryString needs to contain a value equal to the webserver
folder structure.
Rather than have the sDirectoryString variable scenario above which
seems to really slow the Redirect operation down, would this be a much
better approach:
#If DEBUG Then
Response.Redirect("/MyLocalDirectory/MyPage.aspx")
#Else
Response.Redirect("/MyServerDirectory/MyPage.aspx")
#End If
Thanks a lot, from dnw.
Response.Redirect("/MyLocalDirectory/MyPage.aspx")
seems to be a lot quicker than this:
Response.Redirect(sDirectoryString & "MyPage.aspx")
In local development mode, I need to have sDirectoryString equal to my
local folder structure, but when I upload the project to a webserver,
the sDirectoryString needs to contain a value equal to the webserver
folder structure.
Rather than have the sDirectoryString variable scenario above which
seems to really slow the Redirect operation down, would this be a much
better approach:
#If DEBUG Then
Response.Redirect("/MyLocalDirectory/MyPage.aspx")
#Else
Response.Redirect("/MyServerDirectory/MyPage.aspx")
#End If
Thanks a lot, from dnw.