I created a page dynamically check below the example
label l=new label()
l.text+="<div id=name name=name runat=server><br />"
l.text+="<div id=age name=age runat=server><br />"
l.text+="<div id=gender name=gender runat=server><br />"

my question is as follows I want to assign values to name and age. How can that be done?

I have tried to do it using javascript
Collapse | Copy Code
but got an error NULL POINTER how can assign value to div after page load?Any suggestions???

same result!! got null pointer I want any method doesn't have to be using javascript

feel free to post what you did to resolve the issue so that others can benefit from your experience.

This question has already been answered. Start a new discussion instead.