locked
PreviousPage.FindControl control problem RRS feed

  • Question

  • User1466256281 posted

    i am create a page.aspx

    <asp:textbox id="t" runat="server"/>

    <asp:gridview id="grid" runat="server">

      <Columns>         
            
                 
                  
                <asp:TemplateField HeaderText="Employee-ID">
                    <ItemTemplate>
                       
                        <asp:DropDownList id="drop_Emp" DataSource='<%#getEmp() %>' runat="server"/>
                       
                    </ItemTemplate>
                </asp:TemplateField>          
                 <asp:TemplateField HeaderText="Date From">
                    <ItemTemplate>
                   
                       
                       
                        <asp:TextBox ID="Txt_Datefrom"  ReadOnly class = "Calender" runat="server"></asp:TextBox>
                        <img src="../JSMain/DateTime/calender.png" />
                    </ItemTemplate>
                </asp:TemplateField>

    <Columns>         

    </Gridview>

    how to set whole page in

    ViewState["RefUrl"]

    and retrive Textbox and gridview using method

    gridview gr=PreviousPage.FindControl("grid");

    with it templage

     

    Monday, March 14, 2011 5:00 AM

Answers