Hi,
I have a question regarding the "Indsæt .ascx control" module. Is it freely avaliable and where do i have to place the ascx files?
Regards
Martin
Hi,
I have a question regarding the "Indsæt .ascx control" module. Is it freely avaliable and where do i have to place the ascx files?
Regards
Martin
mh@fonqi.com wrote:
Hi,
I have a question regarding the "Indsæt .ascx control" module. Is it freely avaliable and how do i get it to work?
Regards
Martin
Hi Martin
Yes it is freely available. You simply enter a full path to the .ascx control in the input box, i.e. /Files/System/Controls/MyControl.ascx or /CustsomModules/myControls/Control.ascx.
You can also in any template write: <!--@LoadControl(/Files/System/Controls/MyControl.ascx)-->
If you have an old custom solution it might not work - if you have a new one (after january 08) it should work. You can see this in Default.aspx.vb/cs - it has to look something like this:
Dim pvCtl As New PageviewControl
Output.Controls.Add(pvCtl)
pvCtl.Pageview = Pageview
pvCtl.ParseControls()
Take a look at the custom solutions found in Download section for a full implementation.
Yes, you're free tu use it.
When you attach the module to a paragraph you're required to enter the path to a web user contol, e.g. /CustomModules/MyControl/MyControl.ascx.
You can obtain the same functionality by using this template tag from TemplateV2:
<!--@LoadControl(/CustomModules/MyControl/MyControl.ascx-->
Hope you're able to use one of the replies:)
Sorensen wrote:
Hope you're able to use one of the replies:)
Yes, thank you both :)
np wrote:
mh@fonqi.com wrote:
Hi,
I have a question regarding the "Indsæt .ascx control" module. Is it freely avaliable and how do i get it to work?
Regards
Martin
Hi Martin
Yes it is freely available. You simply enter a full path to the .ascx control in the input box, i.e. /Files/System/Controls/MyControl.ascx or /CustsomModules/myControls/Control.ascx.
You can also in any template write: <!--@LoadControl(/Files/System/Controls/MyControl.ascx)-->
If you have an old custom solution it might not work - if you have a new one (after january 08) it should work. You can see this in Default.aspx.vb/cs - it has to look something like this:
Dim pvCtl As New PageviewControl
Output.Controls.Add(pvCtl)
pvCtl.Pageview = Pageview
pvCtl.ParseControls()
Take a look at the custom solutions found in Download section for a full implementation.
Hi Nicolai,
Thank you for your answer, i have tried to insert the reference to the usercontrol in both a paragraph and in a template. I was able to get it to work i in the template way. When i did it in a paragraph, there wasn't anything else than a blank page, no output from the control, neither errors.
You must be logged in to post in the forum