I have added a protected var to my page as below :
public partial class .... : ....
{
protected string Lang;
...
}
I save requested language into it . to access it in design mode for example in a tag
<a href='<%= string.Format("/{0}/sample.aspx",Lang) %>' > Click me </a>
I want to know where is this variable’s value saved . in viewstate ? or …
The value is not saved at all, any more than private fields or properties are stored. They exist only while the page instance exists.