I'm new to DotNetNuke module development and am currently working on a module. I've got it installed on my local testsite and it loads. What I'm trying to do is have a button that says "Add Idea" and when clicked it will take them to the "CreateIdea.ascx" page that I have created.
In the setup controles for my module, I have set the key to "Edit" and asigned this control to my "CretaeIdea.ascx" page.
In the code for the click event for the cmdAdd button I have tried many things from: (the code I'm using is VB.NET)
Response.Redirect(editURL())
to:
Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(TabId, Me.PortalSettings, "", EditUrl()))
And everything I could think of inbetween.
When I just use: Response.Redirect(editURL()) I get the follow error on the page:
A critical error has occurred.
Object reference not set to an instance of an object.
With some of the other code I used, the times I didn't get an error the button took me to a blank page with nothing on it. Seeing as my CreateIdea.ascx does have items on it, I determinded that I wasn't in the right location.
Please ask any questions and I'll do my best to answer them, any help you can provide will be apprisiated. :)