user control

  • Thread starter Thread starter gauravkg via DotNetMonster.com
  • Start date Start date
G

gauravkg via DotNetMonster.com

how to transfer values from user control to a page using properties can one
explain with code
 
Thanks a lot for paying attention to my problem , i tell u the problem

i have a main form in which i gave a login label that points to a usercontrol
login.ascx

in login.ascx i have user has to enter username and paaswor if it is correct
i want that login label in the main page should be changed with userid that
he has written in login.ascx.

how to do it i have used property but not succeded

public string Login_ID;
public String MyProperty
{

get{


return LoginID ;

}
set{
LoginID = txtBox_LoginID.Text;//user enter the userid

}


submit button()
{
if(user=txtBox_LoginID.Text){

LoginID=txtBox_LoginID.Text
}

}

on pareent page
i have Label login
Page_Load()
{
Login.text=this.usercontrol.myproperty;
}



plz help me i am not able to get the result..
 
Back
Top