摘要: 前: 编号账号真实姓名年龄 性别手机电话电子邮件 后台CS代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data.SqlClient;using System.Data;namespace WebApplication1{ public partial class... 阅读全文
posted @ 2013-09-27 18:00 笨笨丫头~双 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 前: 编号账号真实姓名年龄 性别手机电话电子邮件 后台Cs:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data.SqlClient;using System.Data;namespace WebApplication1{ public partial class... 阅读全文
posted @ 2013-09-26 20:30 笨笨丫头~双 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Literal的Mode属性,举例说明 这个属性的枚举值:PassThrough Encode Transform Mode 效果 PassThrough http://blog.csdn.net/zhoufoxcn"> Encode http://blog.csdn.net/zhoufoxcn"> Transform http://blog.csdn.net/zhoufoxcn"> ... 阅读全文
posted @ 2013-09-25 20:34 笨笨丫头~双 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 下面这个页面名字Upload.aspx 代码为%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="WebApplication1.Upload" %> 文件上传的例子 后台CS代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using 阅读全文
posted @ 2013-09-25 20:10 笨笨丫头~双 阅读(142) 评论(0) 推荐(0) 编辑
摘要: %@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationTest.aspx.cs" Inherits="WebApplication1.ApplicationTest" %> Application和Session的例子 ");Response.Write("当前页面由Session记录到的被访问了"+sessionCount+"次");%>> 阅读全文
posted @ 2013-09-23 17:32 笨笨丫头~双 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 及输出乘法表--%> 九九乘法表 *= -------------------------------------------------------------用和输出的-------------------------------------------------------------------------- 用Re... 阅读全文
posted @ 2013-09-23 11:11 笨笨丫头~双 阅读(279) 评论(0) 推荐(1) 编辑
摘要: 第十一节 10图片权限控制?用户名:密 码: ?usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Data.SqlClient;usingSystem.Data;/* 练习: 用户表增加一个级别字段,只有登妹用户才能下载images下的图片文件(session中标识是否登陆)* 如查用户没有登陆则首先重定向到登录界面让用户登录* 用户登妹成功则跳转到下载列表页面,下载. 阅读全文
posted @ 2013-07-19 19:42 笨笨丫头~双 阅读(315) 评论(0) 推荐(0) 编辑
摘要: (前台) --%> ' runat="server" Width="100px" /> ' runat="server" Width="200px" /> ' runat="server" AutoPostBack="true" Width="50px" /> ' runat="server" Width="100px" /> (后台)public par 阅读全文
posted @ 2013-07-19 19:30 笨笨丫头~双 阅读(626) 评论(0) 推荐(0) 编辑
摘要: (前台) 用户名评论内容时间 (后台)protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string str1 = @"server=Rose-PC\SQLEXPRESS;Database=New;User Id=sa;password= "; string str2 = "select * from T_discussInfo"; using (SqlConnection conn = new SqlConnection(str1)) { conn.Ope 阅读全文
posted @ 2013-07-19 19:20 笨笨丫头~双 阅读(222) 评论(0) 推荐(0) 编辑
摘要: (前台代码) 热点 国际 国内 体育 女性 教育 财经 Java 军事 娱乐 (后台代码) public static int IntSearch; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { IntSearch = 0; int n = Convert.ToInt32(Request.QueryString["ID"]); this.ddtype.SelectedIndex = (n - 1); this.bind();}protected void bind() { 阅读全文
posted @ 2013-07-19 19:15 笨笨丫头~双 阅读(179) 评论(0) 推荐(0) 编辑