Is it possible to change the properties of a web control programmatically?
For example, I add a new control to a placeholder by executing the following code:
PlaceHolder1.Controls.Add(New Button)
This builds me a new button on my web page.
How would I set the properties for the button, for example the Text, ID and OnClick event.
Many thanks,
pd123
For example, I add a new control to a placeholder by executing the following code:
PlaceHolder1.Controls.Add(New Button)
This builds me a new button on my web page.
How would I set the properties for the button, for example the Text, ID and OnClick event.
Many thanks,
pd123