hi.. i am confuse about the difference between web pages coded in asp.net and coded in html.. can we access html coded page in asp.net for database connectivity?? or i hav to make whole code of page in asp???

Recommended Answers

All 4 Replies

Fundamentally an ASP.NET page is just the same as an HTML page.

An HTML page has the extension .htm. If a browser requests an HTML page from the server, the server sends the page to the browser without any modifications.

An ASP.NET page has the extension .aspx. If a browser requests an ASP.NET page, the server processes any executable code in the page, before the result is sent back to the browser.

More details:http://www.w3schools.com/aspnet/aspnet_pages.asp

HTMl pages are uses for static view of content...While ASP.Net pages are using for dynamic geneate pages

You can't use an html page for connecting to a database because you can't write any server-side code in it.Like those guys have said above html pages are static.To change their content you have to edit the code(html).On the other hand, asp.net pages can also be static but if they derive their content from a data source like a database they work like magic.Used to build dynamic websites that interact with the user and service user requests.

There's no need of having an html page and a n asp.net page because an asp.net page is a better html page with all the capabilities of an html page but of course the same can't be said of an html page.So if u'r going the database way take asp.net.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.