469,267 Members | 1,643 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

Convert Page.aspx to Page.html

AmirGhaffary
Hi every body i heard about some technic that we can show Page.aspx in Page.html , i think this technic used in this site (www.thescripts.com) too , i wanna know how we can do that in asp.net ??

it is so important for me !!
Jan 16 '07 #1
16 23603
AricC
1,892 Expert 1GB
TheScripts.com runs on PHP. I'm not really sure what you mean by make an an ASP.Net page an HTML page.
Jan 16 '07 #2
kenobewan
4,871 Expert 4TB
Do want to:
A. Display page.aspx in an html frame?
B. Display .net code in an html page?
C. Re-write the url so that it says that it is an html page?
D. Convert an aspx page into html?
E. All of the above.
Jan 17 '07 #3
the best code is i can convert an aspx page into html , i think "D" thats i want but if not posibel , "C" not bad too
Jan 17 '07 #4
radcaesar
759 Expert 512MB
When the client requests an aspx page, the server responds with an HTML file format only (i.e The page which u seen on ur browser with .aspx extension)

Save that file to HTML

:)


the best code is i can convert an aspx page into html , i think "D" thats i want but if not posibel , "C" not bad too
Jan 17 '07 #5
let me Explian what i want . as my friend says "www.thescript.com" is programing with PHP but when u vist "Discussions" page the address of file in address box are "html" , as u see "Discussions" has Pageing too , also this page is connect to data base , thats means "Discussions" is dynamic page but the file address is "html" , i heard we can use this technic in Asp.Net too,
this technec help "Search Robat" too get all your pages in dynamic site ,
and if you use this technic you can have best result in -for exaple googel search-
Jan 17 '07 #6
radcaesar
759 Expert 512MB
Hi,
There is no techniques involved in this. The page shown to u as an HTML is a static one based on ur thread id. When you go for some actions like DB Access, the at that time PHP script is used.

The basic here is, in an PHP file, the script inside the <?php> was executed by server (Server side script) and others HTMLs are processed by clientside.

The Page u said doesn't has any server scripts so written as HTML

:)




let me Explian what i want . as my friend says "www.thescript.com" is programing with PHP but when u vist "Discussions" page the address of file in address box are "html" , as u see "Discussions" has Pageing too , also this page is connect to data base , thats means "Discussions" is dynamic page but the file address is "html" , i heard we can use this technic in Asp.Net too,
this technec help "Search Robat" too get all your pages in dynamic site ,
and if you use this technic you can have best result in -for exaple googel search-
Jan 17 '07 #7
i dont get it ,
ok , let me explain in this way the Name of the page we are discuss on it already is "thread588855.html" ok !
thats html file , how they add my note im already write in this freetext box on that page , and how they change counter of replay on "Discussions" page , Coz that "Html" file too ?
I just wanna know that ?
Jan 17 '07 #8
ok , do u get my piont ?? how make this html page ? and also mange it ?
as u see in "Disucssions" has Pageing ??? how we can manage it ???
Jan 17 '07 #9
radcaesar
759 Expert 512MB
When u click on Reply or Post Reply, it will redirect to a PHP file.

Instantly after the file displayed is show thread.php

:)

ok , do u get my piont ?? how make this html page ? and also mange it ?
as u see in "Disucssions" has Pageing ??? how we can manage it ???
Jan 17 '07 #10
Ok , i wanna know that how i can make some file like, this file "thread588855.html" , we are discouse on it ?
and also that list on Main Descussion page ??
can u tell me that ?
but in Vb.net , no PHP
Jan 17 '07 #11
radcaesar
759 Expert 512MB
Hi,
I got ur question i think and also a good one i think. Give some time to work around this. Will get back u soon.

:)
Jan 17 '07 #12
Ok , thank you ,
Jan 17 '07 #13
radcaesar
759 Expert 512MB
Hi,
Thats the magic done using javascript. View the source of that file, u will find a line looks like this.

<script type="text/javascript" src="http://www.thescripts.com/forum/clientscript/vbulletin_global.js"></script>

When i seen the js file (code), it contains methods to fetch the records (like list of users, posts etc)

You can achieve this in any of the languages like asp.net, php etc

Clear Now ?

:)
Jan 17 '07 #14
AricC
1,892 Expert 1GB
I still don't understand what the question is
Jan 17 '07 #15
radcaesar
759 Expert 512MB
Hi Aric,
me too tried hard like u only to understand his question.

His question is how an HTML page get updated when a new message (Thread) is posted (check this sight, scripts.com) ????

:)


I still don't understand what the question is
Jan 18 '07 #16
capi
1
Hello,

I think you are reffering to url rewriting. Let me give you an example :

You are accessing http://www.site.com/document1.html
And by url rewriting this is converted (without you seeing in the browser, only on the server) to http://www.site.com/viewdoc.php?id=1

This is language independent and is done by the web server. If you are using Apache then you must document yourself on mod_rewrite. On a windows machine using IIS try using ISAPIRewrite or IISRewrite. For other webservers I don't know.

Hope it helps,
Firan Corneliu
Jan 18 '07 #17

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

14 posts views Thread by David C. Taylor | last post: by
2 posts views Thread by z. f. | last post: by
7 posts views Thread by Alan Silver | last post: by
2 posts views Thread by suji | last post: by
2 posts views Thread by ramya.salva | last post: by
5 posts views Thread by Kindler Chase | last post: by
3 posts views Thread by polasrikan | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.