Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web control properties

Status
Not open for further replies.

pd123

Programmer
May 22, 2001
48
0
0
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top