dynamic controls markup not visible in updatepanel RRS feed

  • Question

  •  hi,

    we have two usercontrols on an aspx page. sayit Ucontrol1.ascx and Ucontrol2.ascx and these usercontrols are added in UpdatePanels. first user control select state and county and against this county we showed features in gridview at Ucontrol1.ascx.
    when we are clicked on these feature links we are dynamically generate controls like textbox, dropdowns etc from our database at Ucontrol2.ascx.

    create panel and in this panel we create dynamic controls and than this panel is added to PlaceHolder.
    remember this placeholder is in Update Panel.
    Now we have to show /hide some panels using javascript on this form . e.g when click on checkbox show panel.

    but when we are going to find panel using javascript it could not find any panel or div.

    function Show()
        var obj=document.getelementid('<%=orderdiv.ClientID%>');


    but we can't find this panel Or div using js.

    when we remove placeholder from updatepanel now Div or Panel are visible to Java script.

    client wants zero postback.

    me stuck in this issue and want a quick reply.

    thanks in advance.


    Saturday, September 20, 2008 12:25 PM