Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 23rd, 2003, 12:46 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default Can I write ASP code in Dreamweaver?

Hi,

I'm not sure if I'm posting to the right forum. Anyways, I am new to ASP but not to programming as I have done VBA programming in Office 2000 before.
      My question is this, can I write ASP code inside a Dreamweaver page? I believe you have to have a page saved with the .asp extension in order for the code to work. Do you have to have the .NET Framework enabled for your site as well?
      I'm thinking about doing an ASP Discussion Board for one of my Dreamweaver websites. I also want to host my site on Angelfire but I don't know if they support Active Server Pages or the .NET Framework. Should I contact Angelfire about this?

Any help would be appreciated:D

Thanks,



Ben
Madison Area Technical College student
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes.  I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
Reply With Quote
  #2 (permalink)  
Old September 23rd, 2003, 01:21 PM
Authorized User
 
Join Date: Jun 2003
Location: Dublin, , Ireland.
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sure you can, just go into the Code view mode and type away.
For ASP code to work, is true about the page being saved as .asp, otherwise it would not go through the asp.dll engine if you are using the standard <% %> enclose tags.
<IGNORE THIS. MY MISTAKE. SORRY>
If you are more comfortable with pages saved as .htm, then all ASP script must be enclosed between <SCRIPT> </SCRIPT> tags.
.................................................. .

You could also use Notepad for typing your code, but as you have Dreamweaver which is WYSIWYG program, it will make it a lot easier as the code is color coded making it easier to see the difference between html, Javascript and asp code.

Hope this help.

A good book to start with is the Beginning Active Server pages 3.0 or the Professional Active Server Pages 3.0
Reply With Quote
  #3 (permalink)  
Old September 23rd, 2003, 01:55 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Even if you put code in <script> and </script> tags in an .html page, it's still not processed by the webserver, as HTML files are usually just read in and send to the browser. For an ASP page to be processed, it needs to have an .asp extension.

Dreamweaver makes it very easy to create ASP code. It provides all kind of Server Behaviors for stuff like Recordsets, Page Navigation etc.

The .NET framework is a different kind of thing. With .NET you can create ASP.NET pages (with an extension of .aspx). Dreamweaver supports that as well.

You definitely need to ask your provider / ISP what they support, because otherwise you may end up with a useless site.

You may want to take a look at Beginning Dreamweaver MX. Not only does this book teach you how to use Dreamweaver, it also teaches you HTML, JavaScript and ASP.

Regards,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #4 (permalink)  
Old September 23rd, 2003, 03:09 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Imar,

Thanks for the reply. I have sent a customer service request to the Angelfire support team and am waiting for a response. Thanks also for the heads up regarding enclosing ASP code in <SCRIPT> and </SCRIPT> tags inside HTML documents. I will definitely have to remember this for later on in my Intro to Internet Programming course


Ben
Madison Area Technical College student
Reply With Quote
  #5 (permalink)  
Old September 23rd, 2003, 09:18 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Bad news,

Angelfire doesn't support ASP:(. So basically, I have 2 options

1) Install ColdFusion MX (which is included on the student copy of the Dreamweaver MX CD I purchased for my online Dreamweaver course)

2) Find out about IIS. I believe it costs money to get it

Anyone know of any free web space providers that support ASP? I'm at a big loss:(

Ben
Madison Area Technical College student
Reply With Quote
  #6 (permalink)  
Old September 24th, 2003, 12:16 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Ben,

You can search for a free host at this page:
http://www.actionjackson.com/hosts/results.asp?cost=0

Some of them support ASP. I don't know any of them, so I can't tell whether they are good or not. Also, you may try your luck at www.Brinkster.com

What OS are you using? You don't have to pay an additional fee for IIS if you are using the right version of Windows. IIS comes with Windows 2000, 2003 and XP. On WIndows 98 you can installl PWS (Personal Web Server) that is capable of running ASP as well.
Both IIS as PWS allow you to create and view your site at your local work station.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #7 (permalink)  
Old September 24th, 2003, 12:45 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Thanks for the help. The one web space provider that I got a quick look at (WebSamba) looks promising. The best part is that they offer free web hosting and ASP support. I'm not interested in hosting with Brinkster due to the fact that they charge money for hosting. Regarding your OS question, I'm using the Windows 98 OS (I may upgrade to Windows 2000 sometime).

I have another question. How/where can I get PWS? Is this something that has to be downloaded? Any further help would be great

Thanks again:D

Ben
Madison Area Technical College student
Reply With Quote
  #8 (permalink)  
Old September 24th, 2003, 02:50 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Personal Web Server should be included on your Windows 98 CD-ROM.

The following links may help:

http://coveryourasp.com/PWS.asp

http://www.microsoft.com/ntserver/nt...nded/NT4OptPk/

The last link allows you to download the NT Option pack for Windows NT and 95. If you can't find your Windows 98 disc, maybe the PWS for Win 95 will work. I'm not sure about that as I haven't tried it out (98 was 5 years ago ;) )

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #9 (permalink)  
Old September 24th, 2003, 03:01 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

I got a look at Brinkster and it turns out that they DO offer website hosting for free in conjunction with the paid services. So, I might end up using Brinkster for my next ASP-enabled website. At first, when I saw the site and went to sign up, I didn't even see free hosting being offered. OH WELL! I guess it pays to check more than once.

Ben
Madison Area Technical College student
Reply With Quote
  #10 (permalink)  
Old September 25th, 2003, 01:35 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Ben,

Yeah, Brinkster offers support for both ASP as ASP.NET. Just beware though, they seem to have a habit of taking sites and servers down, just like that. They always come back, but they don't guarantee up-time for your site (But hey, it's free).

Regarding your question about Cold Fusion and ASP: Cold Fusion is Cold Fusion, and ASP is ASP (hey, how about that... ;) )

This means that a site written in Cold Fusion, won't run on an ASP server (unless it has Cold Fusion installed as well of course). Both are different programming languages, use different techniques and require a different run-time host to have their pages executed in.

Does that clarify things?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with a book "joy of dreamweaver code" busteronline ASP.NET 2.0 Basics 0 September 11th, 2008 11:50 AM
Need help, what code should I write here? vincentleo ASP.NET 2.0 Basics 2 March 10th, 2008 10:09 AM
re write a code kgoldvas XSLT 3 August 1st, 2007 07:40 AM
Can we write a code for SaveAs command in ASP lakshmi_annayappa ASP.NET 1.0 and 1.1 Basics 0 May 8th, 2007 04:16 AM



All times are GMT -4. The time now is 12:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.