in my applicattion ,iam using master page.
i have added a hiddenfield in master page . its id is Huname.
my startup page is Login.aspx.
after checking username and password in Login.aspx, i have set the value for hiddenfield in master page as
string uname = txtuname.Text;
string password = txtpassword.Text;
HiddenField Hname = (HiddenField)Page.Master.FindControl("Huname");
Hname.Value = uname;
when i tried to access the hiddenfield value in masterpage it is showing null.
how to solve this