Current location: Hot Scripts Forums » Programming Languages » ASP.NET » .shtml change to .aspx


.shtml change to .aspx

Reply
  #1 (permalink)  
Old 05-21-09, 04:45 AM
s20001321 s20001321 is offline
Newbie Coder
 
Join Date: May 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
.shtml change to .aspx

Hi all!!
I am the first time to get in touch with ASP.NET...
So I am really not very understand the structure...and I am weak in programming...
Have anyone familiar with .NET?

Now I need to change the .shtml file into .aspx...
but I don't know how to change the format...
I only know that the beginning should be:

HTML Code:
<%@ Page Language ="VB" Debug="true" %>
<script runat="server">
Also, should .aspx file be processed with valid XHTML 1.0 Transitional?Is it possible??
Here is the code from one of the .shtml file:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Contact us</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type = "text/javascript" src="scripts.<acronym title="JavaScript"><acronym title="JavaScript">js</acronym></acronym>">
</script>
 
</head>
<body onload="window.alert('Thank you for your visit, please leave a comment of our products \n by clicking the following link')">
 
<a href="hello.htm" onclick="window.alert('Click to go home');">Link</a> 
<!--#include file="header.ssi" -->
<!--#include file="menu.ssi" -->
<div id = "content">
<h4 id="details">Contact us</h4>
<p><span>Telephone number: <span>1 800 123 123</span></span></p>
<p><span>Email: </span><a href='mailto:sales@thecompany.com.au'>sales@thecom pany.com.au</a></p> <!--Hyperlink which can send the mail by clicking it-->
 
<p>[<a href="#top">Top</a>]</p> <!--return to the top of this page-->
<hr></hr>
<h4 id="stores">Store Location</h4>
<p><img src ="C:\Documents and Settings\Ricky Cheng\Desktop\AWD Assign 1\Assign1\images\australia.jpeg" alt="store locations" /></p>
<p>[<a href="#top">Top</a>]</p>
<hr></hr>
<form id="feedback" method="post" action="http://mercury.it.swin.edu.au/wd000000/feedback.php" onsubmit="return validateForm(feedback)">
<!--Pass the data to the .php and validate the data through validateForm()-->
<table border="1" cellspacing="0" cellpadding="2">
<tr> 
<th colspan="2">Feedback Form</th>
</tr>
<tr> 
<td>Name</td>
<td><input id="name" name="name" type="text" /></td>
</tr>
<tr> 
<td>Email</td>
<td><input id="email" name="email" type="text" /></td>
</tr>
<tr> 
<td>Subject</td>
<td><input id="subject" name="subject" type="text" /></td>
</tr>
<tr> 
<td>Comments</td>
<td><textarea id="textarea" name="textarea" cols="30" rows="10"></textarea></td>
</tr>
<tr> 
<td>&nbsp;</td>
<td><input type="submit" name="send" value="Send" /></td>
</tr>
</table>
</form>
<p>[<a href="#top">Top</a>]</p>
 
<!--#include file="footer.ssi" -->
</div></body>
</html>
Should any statements be modified if .shtml changed to .aspx?
Pls show the changes to me and Million Thanksss Again...

Last edited by digioz; 05-21-09 at 10:35 AM. Reason: Please use Code Tags!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-13-09, 11:55 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
There is no automated way to do this. I recommend that you create a blank ASP.NET page, then copy the HTML body content from your shtml file inside the page form tags and fix the errors that will result from there.

Pete
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change url Deansatch JavaScript 1 12-08-07 04:33 AM
change text on click lylesback2 JavaScript 3 07-25-07 05:53 PM
change IE search URL or change window registry sma JavaScript 1 04-26-04 03:40 PM
change IE search URL or change window registry sma PHP 0 04-26-04 06:38 AM
change color of the arrow +scrollbar in a FORM (+checkboard/radiobutton/..) detorre CSS 0 01-31-04 07:30 AM


All times are GMT -5. The time now is 06:27 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.