|
Subject:
|
Can I write ASP code in Dreamweaver?
|
|
Posted By:
|
Ben Horne
|
Post Date:
|
9/23/2003 12:46:13 PM
|
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
Thanks,
Ben Madison Area Technical College student
|
|
Reply By:
|
lucian
|
Reply Date:
|
9/23/2003 1:21:26 PM
|
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 By:
|
Imar
|
Reply Date:
|
9/23/2003 1:55:02 PM
|
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 By:
|
Ben Horne
|
Reply Date:
|
9/23/2003 3:09:21 PM
|
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 By:
|
Ben Horne
|
Reply Date:
|
9/23/2003 9:18:44 PM
|
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 By:
|
Imar
|
Reply Date:
|
9/24/2003 12:16:14 AM
|
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 By:
|
Ben Horne
|
Reply Date:
|
9/24/2003 12:45:54 PM
|
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
Ben Madison Area Technical College student
|
|
Reply By:
|
Imar
|
Reply Date:
|
9/24/2003 2:50:00 PM
|
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/nts/downloads/recommended/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 By:
|
Ben Horne
|
Reply Date:
|
9/24/2003 3:01:53 PM
|
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 By:
|
Imar
|
Reply Date:
|
9/25/2003 1:35:27 PM
|
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 By:
|
cassidyosi
|
Reply Date:
|
11/18/2003 3:48:00 PM
|
I have both cold fusion server and ASP server running on my webserver.
I am looking to put an ASP page inside a CFM page and have it actively work.. Is this possible?
Regards, Chris
Chris Cassidy VP of Business Development OptionSource, Inc. www.optionsourceinc.com
|
|
Reply By:
|
Imar
|
Reply Date:
|
11/18/2003 5:54:00 PM
|
Hi there,
Well, probably not at the same time. The Web server looks at the file extension, and then hands the page to either the Cold Fusion or ASP processing engine. It can't pass the page to both engines.
What you could do is use an include instruction to include one page in another. However, for real script based pages this won't work. Include files are included before they are interpreted by the server, so you would end up with ASP code in your CF page.
Why do you want to combine two kinds of pages??
Cheers,
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|
|
Reply By:
|
Ben Horne
|
Reply Date:
|
12/4/2003 1:06:08 PM
|
Could you please start a new topic from now on? It just makes thing a lot easier for us
quote: Originally posted by cassidyosi
I have both cold fusion server and ASP server running on my webserver.
I am looking to put an ASP page inside a CFM page and have it actively work.. Is this possible?
Regards, Chris
Chris Cassidy VP of Business Development OptionSource, Inc. www.optionsourceinc.com
Ben Horne Madison Area Technical College student ------------------------- I am one of those people that you call "Microsoft Access Freaks". I'm addicted to Access
|
|
Reply By:
|
Imar
|
Reply Date:
|
12/4/2003 3:00:01 PM
|
It would also be a lot easier for us if you didn't revive posts over two weeks old...... ;-)
Imar
--------------------------------------- Imar Spaanjaars Everyone is unique, except for me.
|