Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionaccessing textbox which is inside ascx file Pin
Dhyanga20-May-10 6:36
Dhyanga20-May-10 6:36 
AnswerRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 7:11
mentorNot Active20-May-10 7:11 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 7:27
Dhyanga20-May-10 7:27 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 7:39
mentorNot Active20-May-10 7:39 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 7:48
Dhyanga20-May-10 7:48 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 7:53
mentorNot Active20-May-10 7:53 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:09
Dhyanga20-May-10 8:09 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:14
Dhyanga20-May-10 8:14 
also i am trying to use findcontrol property and its not working.. i dont know what parameter i'm missing..
my ascx page name is usercontrol.ascx and it has one textbox named textbox2.
and my aspx page has one button named button1 and textbox named textbox1.

now i am trying to show the value of textbox2 in textbox1 on button1 click event.


protected void Button1_Click(object sender, EventArgs e)
{
usercontrol1 u = new usercontrol1();
string s = u.FindControl("Textbox2");
TextBox1.Text = u.ToString();
}

This is not working. I doubt the way i used the textbox2 is wrong but i dont know where i'm wrong.
suchita

AnswerRe: accessing textbox which is inside ascx file Pin
Sandeep Mewara20-May-10 8:10
mveSandeep Mewara20-May-10 8:10 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:23
mentorNot Active20-May-10 8:23 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:35
Dhyanga20-May-10 8:35 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:47
mentorNot Active20-May-10 8:47 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:52
Dhyanga20-May-10 8:52 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:57
mentorNot Active20-May-10 8:57 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:53
Dhyanga20-May-10 8:53 
GeneralRe: accessing textbox which is inside ascx file Pin
Sandeep Mewara20-May-10 18:54
mveSandeep Mewara20-May-10 18:54 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga24-May-10 3:20
Dhyanga24-May-10 3:20 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:32
Dhyanga20-May-10 8:32 
GeneralRe: accessing textbox which is inside ascx file Pin
PunkIsNotDead20-May-10 18:32
PunkIsNotDead20-May-10 18:32 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga24-May-10 3:18
Dhyanga24-May-10 3:18 
QuestionProblem with webservice that runs threaded [modified] Pin
FarmerHE20-May-10 3:23
FarmerHE20-May-10 3:23 
AnswerRe: Problem with webservice that runs threaded Pin
Martin Jarvis20-May-10 6:03
Martin Jarvis20-May-10 6:03 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 6:24
FarmerHE20-May-10 6:24 
GeneralRe: Problem with webservice that runs threaded Pin
Martin Jarvis20-May-10 6:31
Martin Jarvis20-May-10 6:31 
GeneralRe: Problem with webservice that runs threaded Pin
FarmerHE20-May-10 6:41
FarmerHE20-May-10 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.