This is a discussion on "ASP help" within the Classic ASP section. This forum, and the thread "ASP help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
ASP help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
ASP help
I finally got asp working on my computer and put my menus and header into a header.inc file. Everything seems to work find but it is annoying that I now have to go to internet explorer and type "http://localhost/website/(filename).asp to view my pages.
First off do you guys recommend I use asp, and is there anyway to preview a asp file from an editor? I could comment out the remove the include statement each time I work on a page but then when I preview it I won't see how it looks with everything else... Any help is appreciated. |
|
|
|
#2
|
|||
|
|||
|
I use Homesite and it has a feature that previews your page by mapping it to your local server. Some of the other programs might have a similar feature. Dreamweaver has something like it for sure.
Check this out too: http://evrsoft.com/1stpage2.shtml |
|
#3
|
|||
|
|||
|
We are all in the same boat, you change your ASP code, then flick to IE and hit refresh to see the changes, then you flick back to your editor, make another change, and so on....
...its not the end of the world? |
|
#4
|
||||
|
||||
|
It's something we all got used to years ago chobo, and to be honest, I done think anyone really cares about that anymore.... a simple alt+tab followed by F5 is nothing.
May i just advise you not to use .inc extensions or any other extension other than .asp for includes. Using anything other than .asp as an extension for includes is a security risk.... try it... try and open your .inc file directly in the browser.... you'll be asked if you wanna download it, or save it to disk..... ie, people can read your asp code. If this were an .asp extension, then people would not get to your code.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#5
|
|||
|
|||
|
Thx for the tips guys. I currently have my own system for working with asp. Basically I have 2 of each pages, I work on the .html one until I like what I see then copy and paste it into the .asp file.
|
|
#6
|
|||
|
|||
|
I just tried changing my header.inc -> header.asp, and noticed no difference. I tried to open both in the browser, and both files display my menu without the css style applied. Also, when I preview my index.asp file, the source code for my menu is displayed, as if I had typed it in. Is this how it should be? It seems my code is visible to users using a .asp or .inc extension.
|
|
#7
|
|||
|
|||
|
Chobo, there's no need to work on HTML seperately. Dreamweaver, for example, will ignore the ASP and preview (and edit) the surrounded HTML in an ASP document with ease - It even shows you were the fragments of ASP code are in the HTML.
That means that even when you make a page that uses ASP and HTML, you can still tweak the HTML afterwards and even move bits of the ASP around the HTML using the interface. Of course you still need to insure that your code flows the way it was supposed to. |
|
#8
|
||||
|
||||
|
Chobo.... THe only way you'll see the ASP code is if you did not open it on the IIS server using localhost.... either that, or you forgot to put in the <% %> tags
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| asp, help |
| Thread Tools | |
|
|