ad-hoc function LoadUserControl

Topics: MVC, Standard packages, Troubleshooting
Jun 1, 2011 at 8: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?

Coordinator
Jun 1, 2011 at 10: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: http://docs.composite.net/C1/ASP-NET/HelloWorldControl.aspx/Using-Web-User-Controls-in-C1

Jun 1, 2011 at 10: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.

     

  • Coordinator
    Jun 1, 2011 at 10:48 PM

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

    Jun 1, 2011 at 10: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.

    Lee

    Jun 1, 2011 at 11:05 PM

    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.

    Coordinator
    Jun 2, 2011 at 11:42 AM

    Check http://docs.composite.net/C1/ASP-NET/Form.aspx