Hello,
Please can someone explain the difference between web control's ID , uniqueID and clientID properties .
How these three are different and how and when to use them.
help please...
I didn't know the answer, but I've been using the ClientID recently when creating dynamic controls, so I thought I'd see what the VS documentation says.
ID -The programmatic identifier assigned to the control.
Setting this property on a server control provides you with programmatic access to the server control's properties, events, and methods. This property can be set by Web developers by declaring an ID attribute in the opening tag of an ASP.NET server control.
UniqueID
This property differs from the ID property in that the UniqueID property includes the identifier for the server control's naming container. This identifier is generated automatically when a page request is processed.
ClientID -The server control identifier generated by ASP.NET.
0 comments:
Post a Comment