1

I have a Button on the Parent User control and a text box on the child user control.

Now I wants to get the text from the Text box on the click of Parent Button click.

I mean I want to get the Child user control values from the parent.

How can i do it in asp.net.

Dalvir Saini
  • 380
  • 2
  • 11
  • 30
  • dalvir , you should use events for these , raise a event on the child control and listen the same on the parent – kobe Jul 08 '11 at 04:52

2 Answers2

1

dalvir , you should use events for these , raise a event on the child control and listen the same on the parent

here is the answer for you

Sharing value from child to parent control

Community
  • 1
  • 1
kobe
  • 15,671
  • 15
  • 64
  • 91
0

It is all there in your Form control collection... you can try

TextBox text = Form.FindControl("name") as TextBox; 
Illuminati
  • 4,539
  • 2
  • 35
  • 55