ASP help

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Mar 3rd, 2004, 05:18
Junior Member
Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Mar 3rd, 2004, 05:51
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Mar 3rd, 2004, 08:28
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Mar 3rd, 2004, 09:56
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,154
Blog Entries: 7
Thanks: 26
Thanked 18 Times in 15 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Mar 3rd, 2004, 21:55
Junior Member
Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Mar 3rd, 2004, 22:03
Junior Member
Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Mar 4th, 2004, 08:04
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Mar 4th, 2004, 11:05
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,154
Blog Entries: 7
Thanks: 26
Thanked 18 Times in 15 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
asp, help

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 15:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42