What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 25818 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET 4.0 > how can we assign id dynamically ...
Nishithraj

how can we assign id dynamically

Replies: 2 | Posted by: Nishithraj on 2/28/2010 | Category: ASP.NET 4.0 Forums | Views: 1169 | Status: [Member]  


Whether we can assign id for a control dynamically? Whether it's possible like as follows (in aspx file)?

id='<%=comboid.ToString()%>'


Mark this as answer, if it is.....

With regards
Nishithraj Narayanan


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Vuyiswamb
Vuyiswamb  
Posted on: 2/28/2010 4:17:10 PM
Level: NotApplicable | Status: [Member] [MVP] [Administrator]

Good Evening

Do you want the id of the control to a variable on the client side?



Thank you for posting at Dotnetfunda
[Administrator]

Nishithraj, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Abhi2434
Abhi2434  
Posted on: 2/28/2010 4:33:18 PM
Level: Silver | Status: [Member] [Microsoft_MVP] [MVP]

No this isnt be possible.

<% is a server side tag. So it will be replaced with the value. If the control is just an html, there is no issue, but for server side controls, you cant specify dynamic id, as responses are generated way after server side objects are created.

:)

www.abhisheksur.com

Nishithraj, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 7:46:33 AM