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
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