ASP NET上机报告_aspnet上机指导
ASP NET上机报告由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“aspnet上机指导”。
实验一
关键代码
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;
namespace WebApplication1.Webs {
public partial cla WebForm1 : System.Web.UI.Page
{
protected void Reset_Button_Click(object sender, EventArgs e)
{
TextBox1.Text = “”;
TextBox2.Text = “”;
}
protected void Submit_Button_Click(object sender, EventArgs e)
{
Response.Redirect(“Index.aspx?count=”+TextBox1.Text+“&&pwd=”+TextBox2.Text);
}
} } 运行界面如下:
直接点确认结果如下:
输入帐号,不输入密码结果如下:
输入密码不输入帐号,运行结果如下:
实验二
关键代码
<%@ Page Language=“C#” AutoEventWireup=“true” CodeFile=“Default.aspx.cs” Inherits=“anli3_Default” %>
Menu控件的使用
Jane Shopping
蓝色
紫色
红色
天蓝色
橙色
淡绿色
《ASP NET上机报告.docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
点击下载文档
[其他范文]热门文章