动态网页问题
Default.aspx文件:@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
这是我的第二个ASp文件
<table >
<form id="myform" runat="server" >
<table width="304" height="113" border="0">
<tr>
<td width="96">用户名:</td>
<td width="198">
<input type=text name="txtname"id="Text1" />
</id>
</tr>
<BR/>
<tr>
<td width="80">密码:</td>
<td width="250">
<input type="paaword" name="Txtpwd" id="Password1">
</td>
</tr>
<BR/>
<BR/>
<tr>
<td height="50">
<input id="Submit1" type="submit" value="提交" />
</td>
<td width="200">
<input id="Submit2" type="submit" value="重置" />
</td>
</tr>
</form>
</table>
</body>
</html>
cs文件:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
/*string name = Request.Form["txtname"];
string password = Request.Form["txtpwd"];
Response.Write("<H1>您的信息如下:</H1>");
Response.Write("<p>用户名:"+name);
Response.Write("<p>密码为:" + password);*/
}
}
很急,也很菜!希望大家帮帮忙哈!!!! --------------------编程问答-------------------- 你不是一般的菜,连问题都问不周全。 --------------------编程问答-------------------- 楼主碰到的什么问题?没有说清楚
补充:.NET技术 , ASP.NET