Ask a Question related to ASP.NET Building Controls, Design and Development.
-
gauravkg via DotNetMonster.com #1
user control problem access value from user control to a page
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..
--
Message posted via [url]http://www.dotnetmonster.com[/url]
gauravkg via DotNetMonster.com Guest
-
how to access user web control from parent page?
Hi, I've created a user web control with 4 drop down list boxes in it. I've added this user control to my main web form page. I created the... -
How to access values entered in User control in the main page.
Hi Guys, i have a user control which allows the user to enter Name& Address in text boxes. I use the same user control in the main page... ... -
Custom Server Control works on page but not User Control...why?
I'm developing the DevEdit.NET server control (an online HTML editor - www.devedit.com) but there's an extremely bizarre bug. The control runs fine... -
Page Load fired 3 times Web user control is embedded in a custom control
Hi, I have built a custom control that build a table with 3 cells in it. The custom control is designed to add all child controls to cell#2,... -
Access properties of parent page from user control
I am trying to build a control that can only be used on a page that inherits from a custom class. This base class as a series of public... -
gauravkg via DotNetMonster.com #2
user control problem access value from user control to a page
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..
--
Message posted via DotNetMonster.com
[url]http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net-controls-building/200609/1[/url]
gauravkg via DotNetMonster.com Guest
-
gauravkg via DotNetMonster.com #3
user control problem access value from user control to a page
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..
--
Message posted via [url]http://www.dotnetmonster.com[/url]
gauravkg via DotNetMonster.com Guest
-
Steve C. Orr [MVP, MCSD] #4
Re: user control problem access value from user control to a page
I think these links should give you the solution to your problem:
[url]http://SteveOrr.net/faq/PassDataFromUserControl.aspx[/url]
[url]http://SteveOrr.net/faq/PassDataToUserControl.aspx[/url]
--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
[url]http://SteveOrr.net[/url]
"gauravkg via DotNetMonster.com" <u25584@uwe> wrote in message
news:666eca6e8e5ae@uwe...> 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..
>
> --
> Message posted via [url]http://www.dotnetmonster.com[/url]
>
Steve C. Orr [MVP, MCSD] Guest



Reply With Quote

