|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 />
|
|
#2
|
|||
|
|||
|
<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 />
|
|
#3
|
|||
|
|||
|
<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 />
|
|
#4
|
|||
|
|||
|
<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 />
|
|
#5
|
|||
|
|||
|
<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 />
|
|
#6
|
|||
|
|||
|
<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 />
|
|
#7
|
|||
|
|||
|
<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 />
|
|
#8
|
|||
|
|||
|
<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 />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > is it possible to see asp code on a page? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|