Related Tags:
Asp.Net It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. Learn More,

How to add id on sever controls?

Description:In drop down list of sever control, how to add client side Id?

Posted by: | Posted on: Aug 29, 2017

1 answers

Replies

0

Hi Sami Hussain you can add ID attribute on ASP.NET server controls by using ID attribute on them below is the simple example.

<asp:DropDownList ID="DropDownIdName" runat="server">
<asp:ListItem Text="Red" Value="red"></asp:ListItem>
<asp:ListItem Text="Blue" Value="blue"></asp:ListItem>
<asp:ListItem Text="Green" Value="green"></asp:ListItem>
</asp:DropDownList>

Hope this helps you :)

Replied by: | Replied on: Jan 10, 2018



Reply
×

Code block Hyperlink bold Quotes block Upload Images

Preview