ad-hoc function LoadUserControl

Topics: MVC, Standard packages, Troubleshooting
Jun 1, 2011 at 9:44 PM

I would really like to load a simple datagrid control that I created into my composite site. Where is the LoadUserControl function. I looked in the packages and all I see under available packages is the MVC player. I do not want to use the mvc player though. Has the LoadUserControl function been removed from Composite?

Jun 1, 2011 at 11:08 PM

The LoadUserControl function is build in so no need to go looking for it as a package. Here is how to use it:

Jun 1, 2011 at 11:41 PM

Ive followed this guide already. It says...

  • On the page's toolbar, click Insert, then Function Markup.
  • In the Select Function window, expand All Functions, Composite, and then Asp.Net and select the LoadUserControl function.

    This function...the loadusercontrol function is not available.


  • Jun 1, 2011 at 11:48 PM

    Make sure you are is source code mode when you insert the function.

    Jun 1, 2011 at 11:55 PM

    I got it...

    1. I was using IE instead of firefox.

    2. I was not going into source mode.

    After installing firefox, I was able to load the proper function.


    Thank you very much with assisting me with this issue.


    Jun 2, 2011 at 12:05 AM

    I should probably post this problem on a new thread, but I thought i'd ask here first...

    Why would I get this error when the page with my custom datagrid control is loaded?

    Control 'ctl52_GridView1' of type 'GridView' must be placed inside a form tag with runat=server.

    Jun 2, 2011 at 12:42 PM