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

ASP.NET

 
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 
AnswerRe: accessing textbox which is inside ascx file Pin
Sandeep Mewara20-May-10 8:10
mveSandeep Mewara20-May-10 8:10 
Hi Suchita,

Based on this flow of yours:
1. Fill some value in Usercontrol ascx: ValueA
2. Press buttonA in ASPX parent page.
3. buttonA, brings ValueA in the textboxA of ASPX parent page
4. buttonA, send the ValueA in DB to store.

Try this:
C#
//In UserControl.ascx.cs
public string txtBoxInUCExposed
{
   get { return txtBoxInUserControl.Text;}
   set { txtBoxInUserControl.Text = value} // as such you don't need a set based on your flow 
}


C#
//In Parent.aspx
//When you drag drop the UC, you will have a UC tag in designer. Lets say you gave it an ID="myUC1"

//In Parent.aspx.cs
//when buttonA clicks, in its event access it as:
string valueInUCTextBox = myUC1.txtBoxInUCExposed;
// Now use this value to insert it in the database. 

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 
GeneralRe: Problem with webservice that runs threaded Pin
T M Gray20-May-10 9:36
T M Gray20-May-10 9:36 

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.