User Control Help
-
Hello, I have a regular web user control that I have made. It is a pretty basic header for a website. The problem is that I dont have any intellisense in the Code Ahead (HTML) page. I would have expected that that all public properties within the control be visible from the web form hosting the control. Is there a trick or something Im missing? From all my searching on Google, it looks like this should be working. Btw, my control is working great so I know that isnt the problem. I have this declared at the top of the hosting form: <%@ Register TagPrefix="dyn" TagName="Header" Src="/Controls/Header.ascx" %> and then the control is: I was hoping the Intellisense would be enabled so the ActiveLink enums would drop down with the correct choices. I have some experience creating custom controls and xsd schemas to intellisense-enable them. I guess I was just hoping that a normal user control would be easier. Thanks
-
Hello, I have a regular web user control that I have made. It is a pretty basic header for a website. The problem is that I dont have any intellisense in the Code Ahead (HTML) page. I would have expected that that all public properties within the control be visible from the web form hosting the control. Is there a trick or something Im missing? From all my searching on Google, it looks like this should be working. Btw, my control is working great so I know that isnt the problem. I have this declared at the top of the hosting form: <%@ Register TagPrefix="dyn" TagName="Header" Src="/Controls/Header.ascx" %> and then the control is: I was hoping the Intellisense would be enabled so the ActiveLink enums would drop down with the correct choices. I have some experience creating custom controls and xsd schemas to intellisense-enable them. I guess I was just hoping that a normal user control would be easier. Thanks
Hi Jason, I think if you want to enable Intellisense in visual designer, you will have to go for custom controls instead of web user controls as they have limited UI design support. Basically, you only have Intellisense enabled in the code editor, but not in the html editor.
-
Hi Jason, I think if you want to enable Intellisense in visual designer, you will have to go for custom controls instead of web user controls as they have limited UI design support. Basically, you only have Intellisense enabled in the code editor, but not in the html editor.
Bummer. OK, thanks for the reply.