Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0C# Custom Module button/code behind not firingC# Custom Module button/code behind not firing
Previous
 
Next
New Post
9/5/2006 1:47 PM
 

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

 
New Post
9/6/2006 4:09 PM
 

I have now noticed that the code will fire ONLY if i'm logged in as HOST, maybe ADMIN also.  But why wouldn't it fire for a regular user?!!!

Any ideas?!

Mikey

 
New Post
9/11/2006 3:43 PM
 
Try going to your module settings then expand Page Settings. Set the cache time to 0.
 
New Post
9/15/2006 1:56 PM
 

Hello Scott,

I also have the same problem of not firing a postback event from a Custom module for the user that is not in Administrators Role.

As you suggested I changed the Cache to 0  for this module and tried again, but without success.

Looks like ViewState gets disabled for non Admins.

Would you have any other ideas where to look for solutions for this problem?

Thanks in advance,

Vlad

 

 
New Post
9/15/2006 2:36 PM
 

Me 2

I have a custom C# module with 1 dropdownlist and a Gridview.
it works like a charm when i login as an admin and / or host but after i log out.
The events don't fire.
i can select items in the dropdown list but it wont refresh the grid.
Tried setting the cache to 0. still no luck.
Also every once in a while the list goes blank, no items, then i kill the browser and restart.

I also found a handy toolbar to clear the cache etc and many more things. Its called the developers toolbar from microsoft.
Take it out for a spin. its got lots of other useful web related stuff, there is one for firefox also.

Internet Explorer Developer Toolbar http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

For firefox: Web Developer Extension http://chrispederick.com/work/webdeveloper/

I will keep on trying and update you all here.


Regards KM
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0C# Custom Module button/code behind not firingC# Custom Module button/code behind not firing


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out