欢迎来到第壹文秘! | 帮助中心 分享价值,成长自我!
第壹文秘
全部分类
  • 幼儿/小学教育>
  • 中学教育>
  • 高等教育>
  • 研究生考试>
  • 外语学习>
  • 资格/认证考试>
  • 论文>
  • IT计算机>
  • 法律/法学>
  • 建筑/环境>
  • 通信/电子>
  • 医学/心理学>
  • ImageVerifierCode 换一换
    首页 第壹文秘 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    ASP NET动态网站开发基础教程习题答案.docx

    • 资源ID:393020       资源大小:52.66KB        全文页数:25页
    • 资源格式: DOCX        下载积分:5金币
    快捷下载 游客一键下载
    账号登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    下载资源需要5金币
    邮箱/手机:
    温馨提示:
    快捷下载时,如果您不填写信息,系统将为您自动创建临时账号,适用于临时下载。
    如果您填写信息,用户名和密码都是您填写的【邮箱或者手机号】(系统自动生成),方便查询和重复下载。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    ASP NET动态网站开发基础教程习题答案.docx

    ChapOl参考答案一、填空题1、WebXMLWebservices2、公共语言运行库、.NETFramework类库3、属性方法事务4、asp×5、cs二、选择题1、ABCD2、ABCD3、AB4、A5、B三、上机操作题1、参考1.3.1。2、参考1.4.2。3、在exl_l.aspx文件中的代码如下所示:<body><formid=,forml"runat="server"><div><asp:ButtonID=nButtonl"runat="server"OnClick="Buttonl_Click"Text="提交"><br><asp±abelID=llLabeIl"runat="server"Text="您单击了0次按钮Width="194px"><asp±abel><div><form><body>在exl_l.aspx.es中的代码如下所示:publicpartialclass_Default:System.Web.UI.Page(privatestaticinti;protectedvoidPage_Load(objectsender,EventArgse)(if(!Page.IsPostBack)i=0;)protectedvoidButtonl_Click(objectsender,EventArgse)(i=i+l;1.abeIlJext="您单击了,+i.ToStringO+”次按钮”;)Ch叩02参考答案一、填空题1、引用类型2、object3、显式4、多态性5、初始化语句右侧二、选择题1、AC2、A3、B4、B5、AC三、上机操作题1、本习题的源代码如下:namespaceex2_l(structstudent(publicstringname;publicstringaddress;publicstringtel;);classProgram(staticvoidMain(stringargs)(studentstu=newstudent5;for(inti=0;i<5;i+)(stui.name=Console.ReadLine();stui.address=Console.ReadLinef);stui.tel=Console.ReadLine();)for(inti=0;i<5;i+)(Console.WriteLine(i.ToString();Console.WriteLine(stui.name);Console.WriteLine(stui.address);Console.WriteLine(stui.tel);Console.ReadLine();2、本习题的源代码如下:namespaceex2_2(classProgram(staticvoidsort(inta,intn)(inttemp;for(inti=1;i<n;i+)for(intj=0;j<n-i;j+)if(aD>aj+l)temp=aj;aU=aj+1;aj+1=temp;)staticvoidMain(stringargs)(intn=5;inta=newint5;for(inti=0;i<5;i+)(ai=Convert.Tolnt32(Console.ReadLine();)sort(azn);for(inti=0;i<5;i+)(Console.WriteLine(ai.ToString();)Console.ReadLine();)3、本习题的源代码如下:namespaceex2_3(classstudent(protectedstringm_name;protectedstringm_sex;protectedfloatm_tuition;publicStudentfstringstrname,stringstrsex,floatftuition)(m_name=strname;m_sex=strsex;m_tuition=ftuition;)virtualpublicvoidprintflnfo()(Console.WriteLine(m_name+""+m_sex+",+m-tuition.ToString();)classgraduate:studentprotectedstringm_tutor;publicgraduate(stringstrname,stringstrsex,floatftuitionzstringstrtutor)base(strnamezstrsex,ftuition)(m_tutor=strtutor;)overridepublicvoidprintflnfo()(base.printflnfo();COnSole.WriteLine("导师是"+mutor);)classProgram(staticvoidMain(stringargs)(studentS=newStUdent("张三"男,5000);graduateg=newgraduated李四,”女,9000,”王五”);s.printflnfo();g.printflnfo();Console.ReadLine();)Chap03参考答案一、填空题1 、Response2、客户端3、服务器4、状态变量5、用户会话二、选择题1、C2、ABCD3>ABCD4、AD三、上机操作题1、在ex_l_Laspx文件中的代码如下所示:<body><formid="forml"runat="server"><div><asp:ButtonID=nButtonl"runat="server"OnClick="Buttonl_Click"Text="提交"><div><form><body>在ex_l_l.aspx.cs文件中的代码如下所示:publicpartialclass_Default:System.Web.U!.PageprotectedvoidPage_Load(objectsender,EventArgse)()protectedvoidButtonl_Click(objectsender,EventArgse)(Response.Redirect("e×-l_2.aspx7name=");)在ex_l_2.aspx.cs文件中的代码如下所示:publicpartialclassex_l_2:System.Web.UI.Page(protectedvoidPage_Load(objectsender,EventArgse)(Response.Write(Request.QueryString,name");)2、在ex2JLaspx文件中的代码如下所示:<body><formid=,forml"runat="server"><div><asp:ButtonID=nButtonl"runat="server"OnClick="Buttonl_Click"Text="提交"><div><form><body>在ex_2_l.aspx.cs文件中的代码如下所示:publicpartialclass_ex_2_l:System.Web.UI.Page(protectedvoidPage_Load(objectsender,EventArgse)()protectedvoidButtonl_Click(objectsender,EventArgse)(SeSSionname”="李四u;Response.Redirect("ex_2_2.aspx");)在ex_2_2.aspx文件中的代码如下所示:<body><formid="forml"runat="server"><div><asp±abelID=nLabeIl"runat="server"Text=nLabeI"Width="143px"><asp±abel><div><form><body>在ex_2_2.aspx.es文件中的代码如下所示:publicpartialclass_ex_2_2:System.Web.UI.PageprotectedvoidPage_Load(objectsender,EventArgse)(1.abeIlJext=Session,name".ToString();)3、在ex_3_l.aspx.cs文件中的代码如下所示:publicpartialclass_ex_3_l:System.Web.UI.Page(protectedvoidPage_Load(objectsender,EventArgse)(Cookiecookiel=Request.Cookies"ttt"if(cookiel=null)(创建一个cookie实例Cookiecookie=newCookie("ttt");添加要存储的信息,接受键/值结合的方式cookie.Values.Add("Name","7bm");cookie.Expires=DateTime.Now-AddYears(I);把cookie加如当前的页面的Response对象里面Response.Cookies.Add(cookie);Response.Redirect("mail.l63");)else(Response.Write(cookiel.Values"Name");)Ch叩04参考答案一、填空题1、System.Web.ULWebControIs2 .设置是否自动向服务器发送数据false用户单击此控件时并不导致向服务器发送页面。3 .编程方式运行时更改页面中的文本4 .标头标题链接链接5 .图像作用点控件的集合二、1.D2.B3.D4.C5.D三、上机操作题1、在ex4jLaspx文件中代码如下所示:< %PageLanguage="C#"AutoEventWireup="true"CodeFile="ex4_l.aspx.cs"Inherits="ex4_l"%>< !DOCTYPEhtmlPUBLIC,W3CDTDXHTML1.0TransitionalEN",:/w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd"><htmlxmlns=":/w3.org/1999/xhtml"><headrunat="server"><title>演示ComboBox控件的运用<title><head><body><formid="forml"runat="server">请选择您的登录方式:<asp:DropDownListrunat="server"ID="DropDownUstl"AutoP

    注意事项

    本文(ASP NET动态网站开发基础教程习题答案.docx)为本站会员(p**)主动上传,第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知第壹文秘(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 1wenmi网站版权所有

    经营许可证编号:宁ICP备2022001189号-1

    本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第壹文秘网,我们立即给予删除!

    收起
    展开