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  |  

Maximum ASP
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Application_Start
Previous Previous
 
Next Next
New Post 5/20/2008 9:12 AM
Unresolved
User is offline DotnetGuy
2 posts
10th Ranked


Application_Start 

Hi,

I have a tricky problem... here it goes... I need to add some custom code in Application_Start method in Global.asax. When I added inline code in Global.asax. The debugger doesn't hit the code at all. When I remove Inherits="DotnetNuke.Common.Global" debugger hits the code but fails after that.

Below is how it looks....

 

@ Import Namespace="Microsoft.Win32" %>@ Import Namespace="System.IO" %>@ Import Namespace="System.Text" %>@ Import Namespace="System.Web.SessionState" %>@ Application Inherits="DotNetNuke.Common.Global" Language="vb" %>script runat="server">

 

 

Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)' Code that runs on application startup

 

Dim str As String = "sdasfds"

Sub End

</

script>

 

<%

<%

<%

<%

<

<%

 
New Post 5/21/2008 8:32 AM
User is offline Mitch Sellers
5712 posts
www.mitchelsellers.com
3rd Ranked




Re: Application_Start 

What exactly are you trying to do?

You are most likely better to create a DNN Scheduler item, and just set it to run on start.


-Mitchel Sellers
MCITP, MCPD, MCTS
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Application_Start
 


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.

 


Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com

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