Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Load row tempalte controls(e.g. Dropdownlist on page_load event) !!!
posted

Hi,

How to reference row template controls(dropdownlist) on server side, in PAGE_Load event ?

I have :

<RowEditTemplate>

<P align=right><asp:Table id="Table1" runat="server" __designer:wfdid="w19">

<asp:TableRow>

<asp:TableCell>

<asp:Label ID="lblProduct" runat="server" Text="Product"></asp:Label>

</asp:TableCell>

<asp:TableCell>

<asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList>

</asp:TableCell>

</asp:TableRow>

</asp:Table>

<INPUT style="WIDTH: 50px"

id="igtbl_reOkBtn"

onclick="igtbl_gRowEditButtonClick(event);"

type=button

value="OK" />&nbsp;

<INPUT style="WIDTH: 50px"

id="igtbl_reCancelBtn"

onclick="igtbl_gRowEditButtonClick(event);"

type=button

value="Cancel" />

</P>

 

</RowEditTemplate>

 

How do i load the dropdown list with values for users to select?

Can i do it on page_Load event?

Note: i can get the value from Grid row on client side, how can i let users pick another value from dropdown list (here comes the problem of loading dropdown list)?

thank you,