I am trying the following: I have a Sitie1.Master
with 3 related pages, and a page Default.aspx
(That is not related to the MasterPage), the user puts his email in a TextBox
(Login in Default.aspx
) I want that value that I keep in String
, show it in a Label
in the 3 pages of content, for now I have that:
public String Usuario
{
get { return (String)ViewState["Usuario"]; }
set { ViewState["Usuario"] = value; }
}
void Page_Init(Object sender, EventArgs e)
{
//Recibir valor de Default.aspx
String id = Request.QueryString["Valor"];
this.Usuario = id;
LblID.Text = id;
}
I do not know if this is wrong, I do not know how to send that value of Default.aspx
or if there is another way of wanting to do that.