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  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
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.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Using ASP within the DNN framework
Previous Previous
 
Next Next
New Post 5/24/2006 6:23 AM
User is offline Peter Chan
25 posts
10th Ranked


Using ASP within the DNN framework 

Hi fellow developpers,
I have an existing application that uses ASP (not ASP.NET) to implement INSERT/UPDATE/DELETE actions on a page showing some RECORDS. How difficult is it to port into a DNN module ?

The idea is that the code reduces the need to refresh the page, e.g. displaying detailed data gotten from the <TD> data on the client side and avoids going to the server and avoids even AJAX requests for data . For the said actions, it calls the server only when actually updating the database.

 
New Post 5/24/2006 9:57 PM
User is offline Dwayne Baldwin
518 posts
8th Ranked




Re: Using ASP within the DNN framework 

It really depends on how well the ASP script was written, but I have found it a breeze to get old ASP sites working in ASP.NET. Just cut and paste the code into a web form and see what the compiler says. On the other hand ASP allowed some pretty sloppy code which ASP.NET will gladly bring to your attention. The biggest issues are related to variable declarations, data types and function return values.

Helpful hints

  • First try to port it to ASP.NET (.aspx) to make sure it works, then worry about converting parts to DNN modules (.ascx).
  • Process the #include files first as normal modules.
  • Any sub or function with a Request or Response belongs in the web form .aspx (Inherits System.Web.UI.Page) or in DotNetNuke it is a user control .ascx (Portal.Module.Base) (or more likely should be converted to a string function)
  • Class Properties (get/set) need to be handled manually.
  • Even with hundreds of errors on a page, they will disappear as you provide the necessary variable declarations, data types and code placement.

I found that it only took a few minutes to port each page of a very large asp application.


Dwayne J. Baldwin
 
New Post 5/25/2006 2:59 AM
User is offline Peter Chan
25 posts
10th Ranked


Re: Using ASP within the DNN framework 

Thanks for the hints.

However, it doesn't seem to work for me. I'll try to explain a simple ASP case:

In Query.ASP, I have a <form ACTION="Submit.ASP" METHOD="Post"> and several INPUT tags with information for inserting a record when the user hits <INPUT TYPE="Submit" VALUE="Submit">.

In Submit.ASP, the corresponding data is extracted and the INSERT instruction is created.

These two pages are tested as is, and I can see the data inserted (both with an ASP page and an ASPX page that reads from the same database table.

The fun part is when I put the Query.ASP code into an ASPX page, with <form> at the very beginning, and the data input section in a div, when I hit the Submit button, there seems to be some disk i/o, but I can't see the data inserted. There seems to be some basic incompatibility somewhere, but my Script debugger didn't report any error.

Any help is welcome

 
New Post 5/25/2006 8:02 AM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: Using ASP within the DNN framework 
If you're simply wanting to migrate your existing application to DNN, I'd suggest leaving your ASP app as-is and using the IFrame to point to it. I know this isn't what you're asking, but if migration is your issue, then this is a proven approach.

When it comes time to convert, trying it in a regular ASPX page first would be best, as Dwayne mentioned.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post 5/26/2006 3:53 AM
User is offline Dwayne Baldwin
518 posts
8th Ranked




Re: Using ASP within the DNN framework 

Whoops! I forgot one big difference between ASP and ASP.NET – ASP.NET uses a single form interface that posts back to itself, not to a new page that knows nothing about the controls on the original page. In addition, ASP.NET ignores controls outside of the first server side form (<form runat="server">) and will raise an exception if you attempt to use multiple server side form tags either declared or coded.

It is very difficult to imagine what you are working with and even more difficult to explain using this medium. Often the code on the receiving page belongs in the sending page itself. Most ASP developers encounter this forms hurdle when transitioning to ASP.NET.

Michael deserves a pat on the back for this one - IFrames may be your best bet as an interim solution.


Dwayne J. Baldwin
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Using ASP within the DNN framework
 


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.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

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