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  |  

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


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  ClientScript.RegisterClientScriptBlock - use??????
Previous Previous
 
Next Next
New Post 1/22/2007 7:11 PM
User is offline Dylan Barber
640 posts
codegalaxy.com
7th Ranked


ClientScript.RegisterClientScriptBlock - use?????? 
Modified By Dylan Barber  on 1/22/2007 11:12:04 PM)

System.Web.UI.Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "something", myScript.ToString, True)

This tells me that it requires an object reference but I cant find any example or explanation of why my module might say that - is there another way to register client JS scripts that I missed ?

 
New Post 1/22/2007 7:37 PM
User is offline Mike Horton
3077 posts
dnn.gmss.org
4th Ranked






Re: ClientScript.RegisterClientScriptBlock - use?????? 
I'm only using this to generate alerts but possibly DotNetNuke.Entities.Modules.Page.RegisterStartupScript("something", myScript.ToString) will do the trick for you.
 
New Post 1/22/2007 7:38 PM
User is offline William Severance
787 posts
www.wesnetdesigns.com
7th Ranked






Re: ClientScript.RegisterClientScriptBlock - use?????? 
The "something" parameter is simply a string containing the script's key which is used along with the script's type to uniquely identify the script block. I typically use whatever name I choose to call the script as it's key.
Bill, WESNet Designs
 
New Post 1/22/2007 7:47 PM
User is offline William Severance
787 posts
www.wesnetdesigns.com
7th Ranked






Re: ClientScript.RegisterClientScriptBlock - use?????? 

After posting, I realized that I may have mis-read your question.  RegisterClientScriptBlock is not a shared method of the ClientScript class. ClientScript is actually a property (returning a ClientScriptManager) of the Page instance. Try the following:

Page.ClientScript.RegisterClientScriptBlock ( . . .

or

Dim csm As ClientScriptManager = Page.ClientScript
csm.RegisterClientScriptBlock ( . . .


Bill, WESNet Designs
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  ClientScript.RegisterClientScriptBlock - use??????
 


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