摘要: 内置对象:1、Response - 响应请求对象 Response.Redirect("Default2.aspx"); //重定向 Response.Write("<script>window.open('Default2.aspx');</script>"); 可以书写任何东西,直接输出出去 2 阅读全文
posted @ 2016-07-18 16:03 枫炎 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 简单控件: Label - 文本显示控件,虽然说属性中可以设置此控件的诸多样式,但是不建议大家使用,而是使用CSS来设置相应的样式 格式: <asp:Label runat="server" Text="要显示的内容"> </asp:Label> Literal - 用来显示文本,text中的内容会 阅读全文
posted @ 2016-07-18 15:51 枫炎 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 用户登录 用户名: 密码:&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb... 阅读全文
posted @ 2016-07-18 13:54 枫炎 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: Repeater - 重复器,用来展示泛型集合中的数据 五大模板: 1、HeaderTemplate - 头模板,加载时会在开始执行一次 2、FooterTemplate - 脚模板,加载时会在最后执行一次 3、ItemTemplate - 项模板,数据源的数据有多少条就会重复多少次 4、Alter 阅读全文
posted @ 2016-07-18 13:39 枫炎 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 简介: ASP.NET 是.NET FrameWork的一部分,是一项微软公司的技术,是一种使嵌入网页中的脚本可由因特网服务器执行的服务器端脚本技术,它可以在通过HTTP请求文档时再在Web服务器上动态创建它们。 指 Active Server Pages(动态服务器页面) ,运行于 IIS(Int 阅读全文
posted @ 2016-07-18 10:38 枫炎 阅读(854) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; ... 阅读全文
posted @ 2016-07-18 09:49 枫炎 阅读(256) 评论(0) 推荐(0) 编辑