上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 82 下一页
摘要: Query strings are usually used to send information from one page to another page.Example The following string might be sent:http://www.aspx?name=John&age=30 this results in the following QUERY_STR... 阅读全文
posted @ 2010-02-18 16:54 greencolor 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Hidden fields are used to store data at the page levelprotected System.Web.UI.HtmlControls.HtmlInputHidden Hidden1;//to assign a value to Hidden fieldHidden1.Value="Create hidden fields";//to retrieve... 阅读全文
posted @ 2010-02-18 16:16 greencolor 阅读(107) 评论(0) 推荐(0) 编辑
摘要: SessionID always change, on page reload / postback, next page in .NET 2.0 even for same user.However, if someone actives the session, then the SessionID will keep same the that one.for example: Button... 阅读全文
posted @ 2010-02-17 23:12 greencolor 阅读(191) 评论(1) 推荐(0) 编辑
摘要: protected void Button1_Click(object sender, EventArgs e) { //Store Student Class in View State student _objStudent = new student(); _objStudent.AddStudent(int.Parse(TextBox1.Text.ToString()), TextBox... 阅读全文
posted @ 2010-02-17 22:03 greencolor 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 进入C:\Documents and Settings\Administrator运行dir/ah 显示隐藏的文件夹和文件 或dir/ad 显示所有文件夹包括隐藏的文件夹就可发现Cookies文件夹 阅读全文
posted @ 2010-02-17 16:41 greencolor 阅读(323) 评论(0) 推荐(0) 编辑
摘要: //Creting a Cookie Object HttpCookie _userInfoCookies = new HttpCookie("UserInfo"); //Setting values inside it _userInfoCookies["UserName"] = "Abhijit"; _userInfoCookies["UserColor"] = "Red"; _userInf... 阅读全文
posted @ 2010-02-17 16:15 greencolor 阅读(291) 评论(0) 推荐(1) 编辑
摘要: class App { static void Main(string[] argv) { int len = 12; if (argv.Length > 0) len = int.Parse(argv[0]); byte[] buff = new byte[len / 2]; RNGCryptoServiceProvider rng = new RNGCryptoServiceProvid... 阅读全文
posted @ 2010-02-16 23:59 greencolor 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Configuration for SQL Server Session Modeadd <sessionState mode="SQLServer" sqlConnectionString="data source=.; user id=sa;password=sa"/>In SQL Server Session mode, we are storing session data i... 阅读全文
posted @ 2010-02-16 22:52 greencolor 阅读(368) 评论(0) 推荐(0) 编辑
摘要: New class in Asp.net locates in App_code folder, if not, the new class will be not visable in the website 阅读全文
posted @ 2010-02-16 22:18 greencolor 阅读(98) 评论(0) 推荐(0) 编辑
摘要: IsPostBack所指一般为第二次及其以后的访问!IsPostBack才为首次访问 一个页面第一次显示的时候 IsPostBack=false 然后你在这个页面上点击按钮或其它东西如刷新提交的时候, IsPostBack=true 阅读全文
posted @ 2010-02-16 20:22 greencolor 阅读(203) 评论(0) 推荐(0) 编辑
上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 82 下一页