Welcome to Webhost4life Forum Sign in | Join | Faq

Classic ASP

Started by apuntes at 05-27-2008 6:10 PM. Topic has 25 replies.

Print Search
Sort Posts:    
   05-27-2008, 6:10 PM
apuntes is not online. Last active: 6/11/2008 3:24:24 AM apuntes

Top 25 Posts
Joined on 05-28-2008
Posts 10
ASP vs. ASP.net
Reply Quote
Hi friends,

I've been running my site on classic ASP for some years now, I've been thinking about migrating it to ASP.net. What do you all think? Thanks for your comments.
   Report 
   05-27-2008, 11:32 PM
deanman is not online. Last active: 8/29/2008 6:08:05 AM deanman

Top 10 Posts
Joined on 04-11-2007
Posts 177
Re: ASP vs. ASP.net
Reply Quote
Good idea! If you have specific questions, please let us know.


I <3 WebHost4Life.com
   Report 
   05-28-2008, 8:02 AM
apuntes is not online. Last active: 6/11/2008 3:24:24 AM apuntes

Top 25 Posts
Joined on 05-28-2008
Posts 10
Re: ASP vs. ASP.net
Reply Quote
Thanks your response.

All my site files are .asp (extension). Given that the server is already setup for asp.net would it only be a matter of changing my .asp files to .aspx? Would I need to make any changes to the site.asp (main site file), functions.asp and global.asa files? What about connection to database? (sql 2005)

Like you can tell I'm completely new at this so all your help and comments are greatly appreciated. Thank you very much.
   Report 
   05-28-2008, 10:25 AM
deanman is not online. Last active: 8/29/2008 6:08:05 AM deanman

Top 10 Posts
Joined on 04-11-2007
Posts 177
Re: ASP vs. ASP.net
Reply Quote
Indeed, you just have to change the file extension '.asp' to '.aspx' in order to get your site ASP.NET ready.

You can use the free Microsoft Visual Web Developer 2008 Express Edition (VWD) in order to edit and test your 'new' website. You can download VWD at http://www.microsoft.com/express/

VWD is shipped with Microsoft SQL Server 2005 Express Edition (it's free too), so you can test all MS SQL related tasks as well. You find a bunch of usefull information about connecting to MS SQL data bases here in the forum.

In order to test your 'new' website on WH4L server, just create a work folder, upload your website to that folder (you can use VWD) and assign a sub-domain to that folder. Then, browse the sub-domain. When everything works as expected, move your 'new' website to your production folder.

Note: Keep a backup of your 'old' website, so you can copy it back in case something is going south.

If you need more help, feel free to post your questions to the forum. Thanks.


I <3 WebHost4Life.com
   Report 
   05-28-2008, 1:30 PM
apuntes is not online. Last active: 6/11/2008 3:24:24 AM apuntes

Top 25 Posts
Joined on 05-28-2008
Posts 10
Re: ASP vs. ASP.net
Reply Quote
Thanks for all the great advice!! I'm used to using DreamWeaver (and similar) for editing and working on the site, could I just edit my site using DW, Can I stick to it or would I be better off with VWD? Is just that I used Macromedia for a long time, but what do you guys recommend. Thanks a lot.
   Report 
   05-28-2008, 2:06 PM
deanman is not online. Last active: 8/29/2008 6:08:05 AM deanman

Top 10 Posts
Joined on 04-11-2007
Posts 177
Re: ASP vs. ASP.net
Reply Quote
Are you looking for an ASP.NET developer tool? Well, Visual Studio and VWD are ASP.NET developer tools. However, you can use whatever fits your needs.
I <3 WebHost4Life.com
   Report 
   05-28-2008, 2:07 PM
DeveloperBarn is not online. Last active: 7/22/2008 2:02:50 AM DeveloperBarn

Top 10 Posts
Joined on 05-29-2008
Reston, VA
Posts 24
Re: ASP vs. ASP.net
Reply Quote
It's not a matter of simply changing file extensions. ASP.Net is much more in depth and to take full advantage of the framework requires some studying. I suggest sites like:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=416 - Teaches how to build a layered application

http://quickstarts.asp.net/QuickStartv20/aspnet/ - Basic ASP.Net Development Examples

http://www.dotnetjunkies.ddj.com/QuickStartv20/aspnet/doc/extensibility.aspx - Basic ASP.Net

http://msconline.maconstate.edu/tutorials/aspnet20/default.htm - Basic ASP.Net

Hope this helps you get started.


Jason
Founder, DeveloperBarn Forums
http://www.developerbarn.com

No longer a WebHost4Life Customer
   Report 
   05-28-2008, 2:17 PM
deanman is not online. Last active: 8/29/2008 6:08:05 AM deanman

Top 10 Posts
Joined on 04-11-2007
Posts 177
Re: ASP vs. ASP.net
Reply Quote
<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/Themes/default/images/icon-quote.gif">&nbsp;<strong>DeveloperBarn wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">

It's not a matter of simply changing file extensions.

</td></tr></table></td></tr></table></BLOCKQUOTE>


Well, from the technical point of view it is. '.asp' files do not run in ASP.NET mode, but '.aspx' files do. And yes, ASP.NET is based on ASP, right?
I <3 WebHost4Life.com
   Report 
   05-28-2008, 2:21 PM
DeveloperBarn is not online. Last active: 7/22/2008 2:02:50 AM DeveloperBarn

Top 10 Posts
Joined on 05-29-2008
Reston, VA
Posts 24
Re: ASP vs. ASP.net
Reply Quote
No, classic ASP is a scripting language using either JScript or VBScript. ASP.Net is Object Oriented Programming and uses actual programming languages such as C#, VB.Net, J#, etc...

Simply changing an existing classic ASP page extension to .aspx does not mean it will run. For example, the SET keyword is not used in ASP.Net like it is in Classic ASP.
Jason
Founder, DeveloperBarn Forums
http://www.developerbarn.com

No longer a WebHost4Life Customer
   Report 
   05-28-2008, 3:01 PM
apuntes is not online. Last active: 6/11/2008 3:24:24 AM apuntes

Top 25 Posts
Joined on 05-28-2008
Posts 10
Re: ASP vs. ASP.net
Reply Quote
Among others, one of the top reasons why we started considering migrating the site to asp.net is because we got frustaded in trying to find and implement effective validation tools for forms running on our classic asp pages. We tried a few things and got quite frustrated. All that we've been able to find applies mostly to asp.net based pages (regular expressions etc., etc.)

Any recommendations for form validation on classic asp? Any that actually work and aren't a pain in the neck?

Again thanks for all the comments and advice.


   Report 
   05-28-2008, 3:06 PM
DeveloperBarn is not online. Last active: 7/22/2008 2:02:50 AM DeveloperBarn

Top 10 Posts
Joined on 05-29-2008
Reston, VA
Posts 24
Re: ASP vs. ASP.net
Reply Quote
With ASP.Net, form validation is extremely simple. It comes with special controls for validating form items. For example, a Required Field validator can be used to ensure a form field has to be filled out before the form is submit. Another example is the RegularExpression Validator, which allows you to require a certain pattern before the form can be submit.

Check out this link:

http://www.w3schools.com/aspnet/aspnet_refvalidationcontrols.asp
Jason
Founder, DeveloperBarn Forums
http://www.developerbarn.com

No longer a WebHost4Life Customer
   Report 
   05-28-2008, 3:08 PM
deanman is not online. Last active: 8/29/2008 6:08:05 AM deanman

Top 10 Posts
Joined on 04-11-2007
Posts 177
Re: ASP vs. ASP.net
Reply Quote
Hi apuntes, In order to convert ASP to ASP.NET, Microsoft provides some usefull tools at http://msdn.microsoft.com/en-us/asp.net/aa336624.aspx

PS: At msdn.microsoft.com, you find all the technical information you need. In addition, asp.net is a good resource for demos and examples.
I <3 WebHost4Life.com
   Report 
   05-28-2008, 3:14 PM
DeveloperBarn is not online. Last active: 7/22/2008 2:02:50 AM DeveloperBarn

Top 10 Posts
Joined on 05-29-2008
Reston, VA
Posts 24
Re: ASP vs. ASP.net
Reply Quote
<BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/Themes/default/images/icon-quote.gif">&nbsp;<strong>apuntes wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">Among others, one of the top reasons why we started considering migrating the site to asp.net is because we got frustaded in trying to find and implement effective validation tools for forms running on our classic asp pages. We tried a few things and got quite frustrated. All that we've been able to find applies mostly to asp.net based pages (regular expressions etc., etc.)

Any recommendations for form validation on classic asp? Any that actually work and aren't a pain in the neck?

Again thanks for all the comments and advice.</td></tr></table></td></tr></table></BLOCKQUOTE>

I apologize, I misread your post. For Classic ASP you would need to come up with some custom JavaScript for client-side validation and ASP for server-side.

What type of validation are you looking to perform? That would determine if there is anything that is easy or not.
Jason
Founder, DeveloperBarn Forums
http://www.developerbarn.com

No longer a WebHost4Life Customer
   Report 
   05-28-2008, 3:37 PM
apuntes is not online. Last active: 6/11/2008 3:24:24 AM apuntes

Top 25 Posts
Joined on 05-28-2008
Posts 10
Re: ASP vs. ASP.net
Reply Quote
No problem. Thanks for the input.

I'm looking for server-side validation; we're in fact using JavaScript for client-side. It's the server-side validation part that I'm stuck with in classic ASP.
   Report 
   05-28-2008, 3:39 PM
DeveloperBarn is not online. Last active: 7/22/2008 2:02:50 AM DeveloperBarn

Top 10 Posts
Joined on 05-29-2008
Reston, VA
Posts 24
Re: ASP vs. ASP.net
Reply Quote
What are you trying to validate? What is the result that you are expecting?
Jason
Founder, DeveloperBarn Forums
http://www.developerbarn.com

No longer a WebHost4Life Customer
   Report 
  Page 1 of 2 (26 items) 1 2 >
Webhost4life Fo... » General Discuss... » Classic ASP » ASP vs. ASP.net

Powered by Community Server, by Telligent Systems