Vithal Wadje
How to create a new unique ID for a control?
Posted by Vithal Wadje in .Net | ASP.NET on Oct 17, 2012
  • 1
  • 3
  • 961
Do you know the answer for this question? Post it below.
Guest
Posted by prathap on Dec 15, 2012
  • 8

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

Posted by eswari on Nov 07, 2012
  • 2

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

Joomla Web Design

Posted by Vithal Wadje on Oct 17, 2012
  • 1

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


Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2013© C# Corner. All contents are copyright of their authors.