导航

2011年4月7日

摘要: 1、登录 if (Membership.ValidateUser(userName, password)) { FormsAuthentication.SetAuthCookie(userName, persistent); }2、登出FormsAuthentication.SignOut();3、注册Membership.CreateUser(userinformation.UserName, userinformation.Password, userinformation.Email, userinformation.SecretQuestion, userinformation.Sec 阅读全文

posted @ 2011-04-07 17:09 yjss 阅读(275) 评论(1) 推荐(0) 编辑

摘要: 缩放及输出图像 int imageHight = int.Parse(TextBox1.Text); int imageWidth = imageHight / 50 * 300; using (Bitmap image = new Bitmap(300, 50)) { using (Graphics g = Graphics.FromImage(image)) { g.FillRectangle(Brushes.White, 1, 1, 295, 45); Font font = new Font("黑体", 20, FontStyle.Regular); g.Smoot 阅读全文

posted @ 2011-04-07 14:26 yjss 阅读(393) 评论(0) 推荐(0) 编辑

摘要: 1、配置站点地图文件<?xml version="1.0" encoding="utf-8" ?><siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="default.aspx" title="主页" description=""> <siteMapNode url="page1.aspx" 阅读全文

posted @ 2011-04-07 13:50 yjss 阅读(193) 评论(0) 推荐(0) 编辑