快神经了……
<html xmlns="http://www. ><head runat="server">
<script language="c#" runat="server">
void Page_Load(Object sender, EventAgrgs E)
{
if (Page.IsPostBack)
{
MyLable.Text += "姓名:" + MyLogin.Name + "<br>";
MyLable.Text += "分数:" + MyLogin.Score + "<br>";
MyLable.Text += "地址:" + MyLogin.Address + "<br>";
}
}
public string Backcolor="white";
public string Name{
get{
return Name.Text;
}
set{
Name.Text=valve;
}
}
public int Score{
get{
return Score.Text;
}
set{
Score.Text=value;
}
}
public string Address{
get{
return Address.Text;
}
set{
Address.Text=value;
}
}</script>
</script>
</head>
<body>
<table style="background-color:<%=BackColor %>;font:10pt
verdana;border-width:1;border-style:solid:border-color:black;"cellspacing = "15">
<tr>
<td style="width: 42px"><b>姓名:</b></td>
<td style="width: 158px">
</td>
</tr>
<tr>
<td style="width: 42px; height: 19px;"><b>分数:</b></td>
<td style="width: 158px; height: 19px;">
</td>
</tr>
<tr>
<td style="width: 42px"><b>地址:</b></td>
<td style="width: 158px">
</td>
</tr>
<tr>
<td style="width: 42px; height: 27px"><Asp:Button ID="Button1" Text="登陆"runat="server" OnClick="Button1_Click"/></td>
</tr>
</table>
<Login if="myLogin" name=""score=""address=""backcolor="begie"runat="server" />
</form>
<asp:Label ID="Mylable"runat="server" />
</body>
</html>
我模仿书上写了一部分代码,也看不明白,好多东西也不知道是为什么,入门真难,这个该怎么学呀?都快 神经了……还被别人笑话 了半天.抓狂……