S
Shapper
Hello,
I have the function changeCulture(culture As String) in all my .aspx web
pages. This functions changes Threat Culture among other actions.
So the new culture takes effect I need to refresh the current page
preserving the URL which can contain URL parameters (query).
I tried 2 solutions:
Dim refreshURL As String = this.GetType().Name
Response.Redirect(refreshURL.Replace("_", "."))
ERROR:
Name 'this' is not declared.
AND
Response.Redirect(Request.Url.AbsoluteUri)
ERROR:
Redirection limit for this URL exceeded.
Unable to load the requested page.
This may be caused by cookies that are blocked.
Anyway, I don't even know if these are the best ways to do it.
Can someone help me out?
Refreshing current page should be easy...or maybe not.
Thanks,
Miguel
I have the function changeCulture(culture As String) in all my .aspx web
pages. This functions changes Threat Culture among other actions.
So the new culture takes effect I need to refresh the current page
preserving the URL which can contain URL parameters (query).
I tried 2 solutions:
Dim refreshURL As String = this.GetType().Name
Response.Redirect(refreshURL.Replace("_", "."))
ERROR:
Name 'this' is not declared.
AND
Response.Redirect(Request.Url.AbsoluteUri)
ERROR:
Redirection limit for this URL exceeded.
Unable to load the requested page.
This may be caused by cookies that are blocked.
Anyway, I don't even know if these are the best ways to do it.
Can someone help me out?
Refreshing current page should be easy...or maybe not.
Thanks,
Miguel