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  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


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.

 


FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com

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