Tuesday, 15 February 2011

Add a table in codebehind, getElementById it using javascript? asp.net -


If you create a table and add it, the client ID property in the back code does not reflect the ID in the actual file , Therefore the document. GetElementById does not work.

How can I add a control, and only access it via Java, only its ID (like 'Table 1')?

You have to present "client id" in the browser and then use that value through javascript Must be able to.

Starting with .NET 4.0, it will no longer be a problem because you can change the behavior of iNamingContainer and ID structures.


No comments:

Post a Comment