I am implementing as asp.net website to act as a multi language website template that I am going to use in future developments. I am using a query string to indicate what language to display and by default the url looks like this: http://www.site.com/default.aspx?lnag=en where English is the default language.
In my master page I have an html menu that looks like this:
<ul>
<li><a href="../../Default.aspx">Home</a></li>
<li><a href="../../About.aspx">About</a></li>
</ul>
Notice that when the user clicks on the “About” link, it will, obviously, loses the query string and it will transfer the user to http://www.site.com/About.aspx .
Now, I want the query string (lnag) to stay there on ALL page links/URLs and redirects without having to manually adding the query string for each and every link on my site. I already have a page base class but I am not sure how/where I am suppose to capture/insert the query string for the requested/responded page.
Thanks in advance.
use following code