How to add user control under controls folder

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/25/2009 10:50:13 AM
Gravatar
Total Posts 30

How to add user control under controls folder

Hi to all, anyone can take a stab at this question.

I wanted to have a user control called "find dealers" so I was looking at "searchinput" control under "controls" folder but then when I put it on my master.layout (under the skin i created) it wouldn't let me recognize the <portal:finddealers ...></portal> how do I include my newly created control to the portal list?

If there's no way, I'll just resort to Module process, where I put my user control under "modules" folder the only thing is that this takes many 1 to many steps to implement, rather than just treating it as SearchInput then use it directly.

Any help is appreciated.

 

-gil

11/25/2009 11:19:11 AM
Gravatar
Total Posts 18439

Re: How to add user control under controls folder

Hi Gil,

http://msdn.microsoft.com/en-us/library/c76dd5k1.aspx

should help you, you should not use "portal" as a prefix for your custom controls though, you should make up your own prefix.

Note that while the article shows how to register controls in a page or other control, it can also be done from Web.config, if you look in the <pages><controls> section of Web.config you will see where I have registered the built in mojoPortal controls using the portal prefix.

Hope it helps,

Joe

11/25/2009 11:27:20 AM
Gravatar
Total Posts 30

Re: How to add user control under controls folder

Thanks a bunch Joe, I will do just that, I'll make my own prefix then I know how to create a normal user control its just that I thought for consistency I'll use the portal prefix.

Huge help.

regards,

-gil

You must sign in to post in the forums. This thread is closed to new posts.