Accessing values from an .ascx user control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erkbiz
    New Member
    • Jul 2007
    • 3

    Accessing values from an .ascx user control

    Hello, this is my first post, I hope this is the right forum to ask my question.

    I am dynamically loading a user control multiple times. I have a gridview and have inserted empty rows. Into these empty rows I am dynamically loading a .ascx user control (it too being a gridview) multiple times each time it loads it renders different data.

    I want to be able to access the data in the different gridviews is this possible?

    This snippet is accessed several times to load repeately load the user control.

    e.Row.Cells[0].Controls.Add(L oadControl("Use rControlGridvie w.ascx").

    The "UserControlGri dview.ascx" contains textboxes. When a button is pressed on the parent page, the page into which the .ascx is loaded, the data in the textboxes is read. At least that is what I am trying to do.

    I have not been successful at getting to the textboxes and am beginning to think it may not be possible. Can someone help me out please?

    Thanks,
    Erkbiz
Working...