Link to home
Create AccountLog in
Avatar of mitesh114
mitesh114

asked on

Debugging ascx pages

HI,

I am working with the dnn gallery which consists of a number of ascx pages and vb code behind pages.  I want to debug the gallery as a standalone application without first uploading to dotnetnuke as doing this removes the code behind files.  How would I do this?  Would I set up a button in an aspx page and call the gallery methods in the button click event?  Not quite sure how to do this.  

Hope someone can help.

Thanks
Avatar of REA_ANDREW
REA_ANDREW
Flag of United Kingdom of Great Britain and Northern Ireland image

Yes I would make a test aspx page on your local machine and implement your custom control on that, in order to test.

Andrew
Avatar of mitesh114
mitesh114

ASKER

so do I just add an aspx page to the solution?
yes

Add the aspx page.

you need the line right at the top of the page to register your custom tag and implement it. like so:

<%@ Register TagPrefix="ARDesigns" TagName="ICaptcha" Src="CAPTCHA.ascx" %>

then use your tag, here is an example of a web control I made:

<ARDesigns:ICaptcha ID="Secure1" runat="server" />
ASKER CERTIFIED SOLUTION
Avatar of whityum
whityum

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
whityum,  nice

I will now use that myself in some projects, very useful indeed

Andrew :-)
What do you mean load it in the backend?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
the "code behind" page is what I meant, or on a server side script tag.