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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

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
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  Dynamically changing the title of a module at runtime?
Previous Previous
 
Next Next
New Post 4/1/2008 1:02 PM
User is offline IceWing_mk1
54 posts
10th Ranked


Dynamically changing the title of a module at runtime? 

Is it possible to dynamically change the title of a module via code at run time?  If so, could I get a quick example?

Thanks,

Brian

 
New Post 4/1/2008 1:09 PM
User is offline ErikVB
2716 posts
www.apollo-software.nl
5th Ranked










Re: Dynamically changing the title of a module at runtime? 

yes, but you have to do it in page_init, page_load will be to late.

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs)

          Me.ModuleConfiguration.ModuleTitle = "my title"

end sub

 


Erik van Ballegoij, Apollo Software
If what i am saying is wrong: blame Google
MLSkinHelper: the easy way to put editable text in your skin!
Nederlandse DotNetNuke Gebruikersgroep Apollo Software
 
New Post 4/1/2008 1:49 PM
User is offline IceWing_mk1
54 posts
10th Ranked


Re: Dynamically changing the title of a module at runtime? 
Modified By IceWing_mk1  on 4/1/2008 5:15:35 PM)

Well, then let me ask this... Normally, during module creation, I'm working with all of my code in my Page Load event.  Should I be doing all of this during page_init instead in order to be able to effect the module properties and such?

Also, would you know the C# version of how to do it?

Brian

 
New Post 4/2/2008 2:49 AM
User is offline ErikVB
2716 posts
www.apollo-software.nl
5th Ranked










Re: Dynamically changing the title of a module at runtime? 

you can keep doing what you do in page_load

in c# above sample would look like this:

  1. private void Page_Init(object sender, System.EventArgs e)
  2. {
  3.    
  4.     this.ModuleConfiguration.ModuleTitle = "my title";
  5.    
  6. }

(converted using: http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx)


Erik van Ballegoij, Apollo Software
If what i am saying is wrong: blame Google
MLSkinHelper: the easy way to put editable text in your skin!
Nederlandse DotNetNuke Gebruikersgroep Apollo Software
 
New Post 6/18/2008 10:23 PM
User is offline baldwin
102 posts
www.dnnsun.com
9th Ranked


Re: Dynamically changing the title of a module at runtime? 

All right, that is the server way to modify the module title; but there is a way  to change the title in the client with javascript? because maybe sometime our module will apply the Ajax way to update the data. How to find the title control in the javascript? I had found the id from the source code such as "dnn_ctr35_dnnTitle_lblTitle" but I do not know how to it was created.  Thanks  a  lot for any help!


www.dnnsun.com:The professional provider of DotNetNuke support, skin design and custom module development.
The professional provider of DotNetNuke support, skin design and custom module development.
Showcase your website Powered by dnn!
Showcase your website Powered by dnn!
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  Dynamically changing the title of a module at runtime?
 


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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

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