Hello,
I'm attempting my 1st crack at a custom DNN 4 C# Module. The module is simple in the fact that the user will have to enter in a zipcode, click the button, the program should then query an external database, and the DNN module should return these results. (sales person lookup) I do not need the ability for the user to edit text or anything else on the page, just drag/drop the module onto the DNN page and the lookup should function (that is my goal)
Please keep in mind that this is my 1st attempt at a DNN module. I have successfully integrated this module into the DNN website but am having trouble getting my C# code to fire based upon clicking this button.
I am using DNN 4 + VS 2005 C# lang. I used the "source install" and used the provided template that came with the source installation. I chose file/new/DotNetNuke Module ect..... so this file automatically has some elments already built in......(lstContent_ItemDataBound)
I have added a simple ASP 2.0 button, double clicked it(in design mode) and it gave me my generic function. I put in a stop point (while in debug mode), and can't get to code to fire once the button is clicked. I have tried many things to try to get this code to fire. I must be missing something vital to DNN's functionality.
In my spare time I made a ASP 2.0 C# test project, made an aspx page, and added a simple ascx control with a button, doubleclicked the button in design view and easily got my ascx control to fire code with the click of a button in debug mode.
I must be missing something vital to DNN's functionality!
Has anybody here had a problem getting a simple ASP 2.0 button to fire some C# code ? thank you in advance! Please help!
Thanks,
Mike R