Interviews - C# Corner

Vithal Wadje
How to create a new unique ID for a control?
By Vithal Wadje in ASP.NET on Oct 17, 2012
  • prathap
    Dec, 2012 15

    ASP.NET supports three kinds of identification:

    1. ID
    2. ClientID
    3. UniqueID

      1. in ASP.NET, UniqueID is used with HTML name attribute. UniqueID is used for server side processing. The ClientId with HTML id attribute of rendered HTML tag. ClientID is used for client side processing.


        .Net Training

        • 0
  • eswari
    Nov, 2012 7

    protected void Page_PreRenderComplete(object sender, EventArgs e) { _uniqueIdValues.Add( new Tuple("PreRenderComplete", MyControl.UniqueID)); }

    Joomla Web Design

    • 0
  • Vithal Wadje
    Oct, 2012 17

    . ControlName.ID = “ControlName” + Guid.NewGuid().ToString();

    • 0

Visual Studio Live - Redmond 2016

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS