hi this is stalin
my page having gridview ,with in that i hav dropdownlist with templatefield field of gridview,templatefield is edititemtemplate,that means that dropdown is appers only in editmode
how can i get id of that dropdownlist
can any body pleas help me
code is
<asp:TemplateField HeaderText="DISPLAYLEVEL">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("displaylevel") %>'></asp:Label></ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddl_EditMainDisplyLevel" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>

1 answers
The ID of the dropdownlist that you would use in any backend code is just "ddl_EditMainDisplyLevel." If you need the ID of the rendered HTML, for the purposes of accessing it with Javascript, use the ClientID property of the dropdownlist.
answered 10 months ago by:
0
This post was imported from csharpfriends, if you have a similiar question please ask it again.
All previous members have been migrated, hope you enjoy the new platform!