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
ASP.NET

Avatar of undefined
Last Comment
whityum

8/22/2022 - Mon
REA_ANDREW

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

Andrew
mitesh114

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

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" />
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
whityum

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
REA_ANDREW

whityum,  nice

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

Andrew :-)
mitesh114

ASKER
What do you mean load it in the backend?
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
whityum

the "code behind" page is what I meant, or on a server side script tag.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.