软件测试入门:从这里开始
2012-03-10 09:24
232 查看
protected void Button1_Click(object sender, EventArgs e) //A页面
{
//Response对象的Redirect方法重定向的功能.并向重定向的url传递参数
string name = txtname.Text.Trim();
string sex = "先生";
if (RadioButton2.Checked)
sex = "小姐";
Response.Redirect("Welcome.aspx?Name="+name+"&Sex="+sex);
}
public partial class Welcome : System.Web.UI.Page //B页面
{
protected void Page_Load(object sender, EventArgs e)
{
string name=Request .Params["Name"];
string sex=Request .Params["Sex"];
Response.Write("欢迎"+name+sex+"!");
}
}
{
//Response对象的Redirect方法重定向的功能.并向重定向的url传递参数
string name = txtname.Text.Trim();
string sex = "先生";
if (RadioButton2.Checked)
sex = "小姐";
Response.Redirect("Welcome.aspx?Name="+name+"&Sex="+sex);
}
public partial class Welcome : System.Web.UI.Page //B页面
{
protected void Page_Load(object sender, EventArgs e)
{
string name=Request .Params["Name"];
string sex=Request .Params["Sex"];
Response.Write("欢迎"+name+sex+"!");
}
}
相关文章推荐
- 测试入门之软件质量问题
- 软件测试入门书籍
- ZZ 软件测试入门
- 初级软件测试工程师零基础入门指南
- 初学者入门:软件测试从零开始
- 软件测试入门应学习的知识
- 软件缺陷常见问题总结(软件测试入门速成篇)
- ArcGis系列软件最新轻松入门书籍-含测试数据(免费下载)
- 软件测试入门难吗?
- 软件测试工具e-test suite入门使用说明
- 基础入门:软件测试是什么?
- 博客入门指南和Blog软件平台测试
- 软件测试入门
- 软件测试入门-举例
- 【软件测试】入门
- 软件测试入门基础自卸
- Lesson1 软件测试之ProcessOn思维导图入门
- 软件测试教程视频入门基础篇-千锋出品
- 软件测试系列之入门篇
- 初学者入门:软件测试从零开始