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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Custom Control - Design Time Properties

Status
Not open for further replies.

HRoarke

Programmer
Apr 27, 2004
64
US
Hi all -

I've created a web custom control and associated custom designer and, for various reasons, need to programmatically assign the ID property the control gets when it's dropped onto a web form in the designer.

The very frustrating thing is that I can set the ID value listed in the Properties pane and the ID property reported by the control at run time, but can NOT assign the ID value generated in HTML Design view or in the "Web Form Designer Generated Code" region of the page code behind (I get, for example, MyCustomControl1). I've tried overriding the ID property in the custom designer to no avail. Two stars to anyone that can help!

Thanks

"I swear by my life and my love of it that I will never live for the sake of another man, nor ask another man to live for mine."
— John Galt
Atlas Shrugged

If you want to get the best response to a question, please check out FAQ222-2244 first

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top