Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  newbie: code only execute if user is Host, strange
Previous Previous
 
Next Next
New Post 8/21/2006 7:57 AM
User is offline moonshiner
46 posts
10th Ranked


newbie: code only execute if user is Host, strange 

Hey

I've created a new module ("AskUs" is the module name) using visual studio 2005 and DotNetNuke Starter Kit.

In ViewAskUs.ascx, I added a Label control and a button. On the click event of the button a method will change the text of the Label control. But it only changes the text if user is Host (I haven't tryed if the user is Admin).:

protected void Button1_Click(object sender, EventArgs e)
{
  lblWelcome.Text = "Hello the world";
  Debug.WriteLine("TESTING");
}

What am I doing wrong? I want this code to be executed for all users...

PS: Even if being a Host the Debug.WriteLine code in the method wasn't executed (nothing appear in the output window), why?

moonshiner

 
New Post 8/21/2006 10:30 AM
User is offline yannick kiekens
192 posts
www.purplebox.be
9th Ranked


Re: newbie: code only execute if user is Host, strange 

I have no idea about debug.writeline, I never use that. I work with breakpoints

 

Make shure module caching is off. That's why your code doesn't execute when not logged in. It uses the cached version. Check the cache setting in the module settings.


Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
New Post 8/21/2006 2:48 PM
User is offline moonshiner
46 posts
10th Ranked


Re: newbie: code only execute if user is Host, strange 

How do I turn off this cache?

The only setting I see which mentions the word cache is "Cache Time (secs):" (which has the value 60). This setting isn't under the module, it's under the page settings (maybe it's the same?)

moonshiner

 
New Post 8/23/2006 10:57 AM
User is offline yannick kiekens
192 posts
www.purplebox.be
9th Ranked


Re: newbie: code only execute if user is Host, strange 
Jup that's the value, please put it on 0 and all your problems will be gone




That setting is only usefull for modules wich are static, like Text/HTMl and Media

Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  newbie: code only execute if user is Host, strange
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com
DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP