摘要: 如用户登陆成功后,跳到这个页面using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page {... 阅读全文
posted @ 2009-12-26 22:31 ^特殊П佀命^ 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 设计如图:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/... 阅读全文
posted @ 2009-12-26 22:29 ^特殊П佀命^ 阅读(208) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebContr... 阅读全文
posted @ 2009-12-26 22:22 ^特殊П佀命^ 阅读(507) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebContr... 阅读全文
posted @ 2009-12-26 22:17 ^特殊П佀命^ 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <以用户登陆为例>using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.... 阅读全文
posted @ 2009-12-26 22:06 ^特殊П佀命^ 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Data.SqlClient;using System.Configuration;/// <summary>///DBHelper 的摘要说明/// </s... 阅读全文
posted @ 2009-12-26 21:54 ^特殊П佀命^ 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 在VS2008配置文件中,找到Ctrl+F找到<connectionStrings/>把它去掉,然后再找到<appSettings/>把这段代码写在<appSettings/>后面 <connectionStrings> <add name="connectionString" connectionString="server=.;databa... 阅读全文
posted @ 2009-12-26 21:43 ^特殊П佀命^ 阅读(2485) 评论(0) 推荐(0) 编辑
摘要: 拖一个FileUpload控件,设计如图:查看源:<body> <form id="form1" runat="server"> <div> <asp:FileUpload ID="UploadFile" runat="server" /> <br /> <asp:Button ID="btnSave" runat="server"... 阅读全文
posted @ 2009-12-26 19:46 ^特殊П佀命^ 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 拖一个DropDownList到内置aspx中,设置属性AutoPostBack为true,在设计中双击控件<body> <form id="form1" runat="server"> <div> <asp:DropDownList ID="ddlGetId" runat="server" AutoPostBack="true" onselectedin... 阅读全文
posted @ 2009-12-26 14:26 ^特殊П佀命^ 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 拖一个DropDownList到内置aspx中,设置属性AutoPostBack为true,在设计中双击控件<body> <form id="form1" runat="server"> <div> <asp:DropDownList ID="ddlGetId" runat="server" AutoPostBack="true" onselectedin... 阅读全文
posted @ 2009-12-26 14:20 ^特殊П佀命^ 阅读(340) 评论(0) 推荐(0) 编辑