
 
 | 
| 技术资料  > .Net专区 > Asp.Net开发 : ASP.NET中的Code Behind技术(2) |  
ASP.NET中的Code Behind技术(2) March 25,2004 |  
四.具体实现步骤 
 
  1).新建一个HTML页面 
 
  你可以使用微软的FontPage来设计你的页面的整个布局。把你的所以选项都设计到此页面中去。 
 
  把此HTML文件命名为send.htm。具体代码如下: 
 
<html> 
<head> 
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
 <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> 
 <meta name="ProgId" content="FrontPage.Editor.Document"> 
 <title>New Page 1</title> 
</head> 
<body> 
 <h3>欢迎进入Code Behind设计界面</h3>  
 <form> 
  <table border="1" width="100%"> 
  <tr> 
   <td width="100%" colspan="2">请填入下列各项:</td> 
  </tr> 
  <tr> 
   <td width="35%">姓名</td> 
   <td width="65%"><input type="text" name="Name" size="20"> 
   </td> 
  </tr> 
  <tr> 
   <td width="35%">电子邮件地址</td> 
   <td width="65%"><input type="text" name="Email" size="20"> 
   </td> 
  </tr> 
  <tr> 
   <td width="35%">内容</td> 
   <td width="65%"> 
     <textarea rows="7" name="Message" cols="26"> 
     </textarea> 
   </td> 
  </tr> 
  <tr> 
   <td width="100%" colspan="2"> 
    <input type="submit" value="Submit" name="B1"></td> 
   </tr> 
  </table> 
 </form> 
<p></p> 
</body> 
</html>  
         |  
 
 | 
  
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved