Accessing template column of a grid inside a repeater

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NishChaks
    New Member
    • May 2007
    • 8

    Accessing template column of a grid inside a repeater

    Hi,
    I have a texbox which is a template column of a grid and the grid is inside the repeater.
    If there is only one control in the repeater then we can use
    foreach (RepeaterItem item in Repeater1.Items )
    {
    TextBox FirstName = (TextBox)item.F indControl("txt FirstName");
    Response.Write( FirstName.Text) ;
    }

    But I have a control inside a control of the repeater..So can anyone please help me.

    Thanks
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by NishChaks
    Hi,
    I have a texbox which is a template column of a grid and the grid is inside the repeater.
    If there is only one control in the repeater then we can use
    foreach (RepeaterItem item in Repeater1.Items )
    {
    TextBox FirstName = (TextBox)item.F indControl("txt FirstName");
    Response.Write( FirstName.Text) ;
    }

    But I have a control inside a control of the repeater..So can anyone please help me.

    Thanks
    Hi, you should have posted this in the appropriate technology forum. What language are you using? I've moved this to the Misc forum for now.

    Comment

    Working...