.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 28th, 2001, 04:02 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
is it possible to see asp code on a page?

<i><b>Originally posted by : bruno (contact@inglyber.com)</b></i><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #2  
Old May 29th, 2001, 02:06 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Wedev (webdev@hotmail.com)</b></i><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #3  
Old May 29th, 2001, 04:31 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : bruno</b></i><br /><br />thank you for your answer.<br />bruno<br /><br /><br />------------<br />Wedev at 5/29/2001 12:06:48 AM<br /><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #4  
Old May 29th, 2001, 06:36 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Mike Wright (michael_wright@lineone.net)</b></i><br />Yes!<br />There is a way. Our friends at asp101.com have the code to do this.<br /><br />See http://www.asp101.com/samples/source.asp for more on this.<br /><br />Another great comment by AspFree's WAPmaster,<br /><br />Mike Wright<br /><br /><br />------------<br />bruno at 5/29/2001 2:31:25 AM<br /><br /><br />thank you for your answer.<br />bruno<br /><br /><br />------------<br />Wedev at 5/29/2001 12:06:48 AM<br /><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #5  
Old May 29th, 2001, 06:55 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Richard (richard@trinet.co.uk)</b></i><br />That only applies if you control the web-server, in which case you already have access to the source code! I think Bruno wants to see the source to other people's pages, which would be a major security risk.<br /><br /><br />------------<br />Mike Wright at 5/29/2001 4:36:56 AM<br /><br />Yes!<br />There is a way. Our friends at asp101.com have the code to do this.<br /><br />See http://www.asp101.com/samples/source.asp for more on this.<br /><br />Another great comment by AspFree's WAPmaster,<br /><br />Mike Wright<br /><br /><br />------------<br />bruno at 5/29/2001 2:31:25 AM<br /><br /><br />thank you for your answer.<br />bruno<br /><br /><br />------------<br />Wedev at 5/29/2001 12:06:48 AM<br /><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #6  
Old May 29th, 2001, 08:35 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Michael Wright (michael_wright@lineone.net)</b></i><br />Indeed Richard,<br /><br />You would have to have good relations with your hosting provider or have your own server.<br /><br />I too wouldn't recommend allowing this on a server cos IIS or PWS have enough security holes as it is.<br /><br />Viewing HTML source from the click of a button is fine though. Check/search www.javascriptsource.com for more on this.<br /><br />Nice one!<br /><br />------------<br />Richard at 5/29/2001 4:55:24 AM<br /><br />That only applies if you control the web-server, in which case you already have access to the source code! I think Bruno wants to see the source to other people's pages, which would be a major security risk.<br /><br /><br />------------<br />Mike Wright at 5/29/2001 4:36:56 AM<br /><br />Yes!<br />There is a way. Our friends at asp101.com have the code to do this.<br /><br />See http://www.asp101.com/samples/source.asp for more on this.<br /><br />Another great comment by AspFree's WAPmaster,<br /><br />Mike Wright<br /><br /><br />------------<br />bruno at 5/29/2001 2:31:25 AM<br /><br /><br />thank you for your answer.<br />bruno<br /><br /><br />------------<br />Wedev at 5/29/2001 12:06:48 AM<br /><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #7  
Old May 30th, 2001, 02:04 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Charles Lambert</b></i><br />actually if you do have a server and want to output the asp to the browser instead of processing it this code will do it<br /><%<br />Response.ContentType = 'text/text'<br />%><br /><br />its a good quick fix if you just need to show someone the the code, and they dont' have access to the files on your server<br /><br /><br />------------<br />Michael Wright at 5/29/2001 6:35:28 AM<br /><br />Indeed Richard,<br /><br />You would have to have good relations with your hosting provider or have your own server.<br /><br />I too wouldn't recommend allowing this on a server cos IIS or PWS have enough security holes as it is.<br /><br />Viewing HTML source from the click of a button is fine though. Check/search www.javascriptsource.com for more on this.<br /><br />Nice one!<br /><br />------------<br />Richard at 5/29/2001 4:55:24 AM<br /><br />That only applies if you control the web-server, in which case you already have access to the source code! I think Bruno wants to see the source to other people's pages, which would be a major security risk.<br /><br /><br />------------<br />Mike Wright at 5/29/2001 4:36:56 AM<br /><br />Yes!<br />There is a way. Our friends at asp101.com have the code to do this.<br /><br />See http://www.asp101.com/samples/source.asp for more on this.<br /><br />Another great comment by AspFree's WAPmaster,<br /><br />Mike Wright<br /><br /><br />------------<br />bruno at 5/29/2001 2:31:25 AM<br /><br /><br />thank you for your answer.<br />bruno<br /><br /><br />------------<br />Wedev at 5/29/2001 12:06:48 AM<br /><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
  #8  
Old May 30th, 2001, 05:30 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Michael Wright</b></i><br />Doesn't this mean you have to have two files, as the one with the below code won't run?<br /><br />In this case you might as well use ASCII chars for <% %> so the compiler doesn't recognise it or just have a HTML file with the code in.<br /><br />------------<br />Charles Lambert at 5/30/2001 12:04:47 AM<br /><br />actually if you do have a server and want to output the asp to the browser instead of processing it this code will do it<br /><%<br />Response.ContentType = 'text/text'<br />%><br /><br />its a good quick fix if you just need to show someone the the code, and they dont' have access to the files on your server<br /><br /><br />------------<br />Michael Wright at 5/29/2001 6:35:28 AM<br /><br />Indeed Richard,<br /><br />You would have to have good relations with your hosting provider or have your own server.<br /><br />I too wouldn't recommend allowing this on a server cos IIS or PWS have enough security holes as it is.<br /><br />Viewing HTML source from the click of a button is fine though. Check/search www.javascriptsource.com for more on this.<br /><br />Nice one!<br /><br />------------<br />Richard at 5/29/2001 4:55:24 AM<br /><br />That only applies if you control the web-server, in which case you already have access to the source code! I think Bruno wants to see the source to other people's pages, which would be a major security risk.<br /><br /><br />------------<br />Mike Wright at 5/29/2001 4:36:56 AM<br /><br />Yes!<br />There is a way. Our friends at asp101.com have the code to do this.<br /><br />See http://www.asp101.com/samples/source.asp for more on this.<br /><br />Another great comment by AspFree's WAPmaster,<br /><br />Mike Wright<br /><br /><br />------------<br />bruno at 5/29/2001 2:31:25 AM<br /><br /><br />thank you for your answer.<br />bruno<br /><br /><br />------------<br />Wedev at 5/29/2001 12:06:48 AM<br /><br /><br />No !<br />When an ASP page is processed by the Web Server, only HTML is returned, that's why you cannot view the ASP code. That's server side scripting anyway !!<br /><br />------------<br />bruno at 5/28/2001 2:02:00 AM<br /><br />my question may be stupid!<br />when i visit a web site with asp pages, with my browser, i can not see the asp source ?<br />is it possible to see the content of an asp page ?<br />many thanks for your answer.<br />bruno<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > is it possible to see asp code on a page?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway