摘要: 修改页面 要修改的班级信息: 阅读全文
posted @ 2014-08-19 11:16 陌念 阅读(313) 评论(0) 推荐(0)
摘要: 1 在主窗体 弹出模态窗口2 弹出的窗体 我是模态窗体 模态窗体赶回值给父窗体 阅读全文
posted @ 2014-08-19 11:12 陌念 阅读(129) 评论(0) 推荐(0)
摘要: 1 在注册页面中调用另一个页面在注册页面中引用 2 在被打开的页面中 产品页面中 关闭页面的图标确定后关闭的确定 阅读全文
posted @ 2014-03-17 16:51 陌念 阅读(311) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace 新语法{ static class Program { static void Main(string[] args) { //2.1 调用带参数默认值的方法,编译后悔自动添加默认值到这个方法的括号中 // TestPareDafaule(); //2.2 ... 阅读全文
posted @ 2014-03-12 22:20 陌念 阅读(183) 评论(0) 推荐(0)
摘要: C 货币2.5.ToString("C")¥2.50D 十进制数25.ToString("D5")00025E 科学型25000.ToString("E")2.500000E+005F 固定点25.ToString("F2")25.00G 常规2.5.ToString("G")2.5N 数字2500000.ToString("N")2,500,000.00X 十六进制255.ToString("X")FFformatCode 是可选的格式化代码字符串。(详 阅读全文
posted @ 2014-03-09 11:30 陌念 阅读(570) 评论(0) 推荐(0)
摘要: 1 二个方法比较重要 //网站运行后只会运行一次 不管换不换浏览器都不回执行 protected void Application_Start(object sender, EventArgs e) { HttpContext.Current.Application["web"] = "我只会执行一次" + DateTime.Now;//在页面中输出的时候 Response.Write(Application["web"].ToString()); } /// /// 出现页面... 阅读全文
posted @ 2014-03-04 23:10 陌念 阅读(173) 评论(0) 推荐(0)
摘要: 1----------------------------在全局配置文件中写url重写 //命名规则 一定要以 Application_ 作为开头 url 重写 protected void Application_BeginRequest(object sender, EventArgs e) { System.Web.HttpApplication app = sender as HttpApplication; fackProcess(app); } void fackProcess(Ht... 阅读全文
posted @ 2014-03-04 23:07 陌念 阅读(637) 评论(0) 推荐(0)
摘要: 1 新建个类库 添加 system.web的应用2 实现IHttpModule的接口using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;namespace FirstModule{ class FirstModule :System.Web.IHttpModule {//为请求管道的第一个事件 ,也是就BeginRequest 的事件注册一个用户自动以的一个方法 public void Init(HttpApplicatio... 阅读全文
posted @ 2014-03-03 23:39 陌念 阅读(172) 评论(0) 推荐(0)
摘要: 1 在配置文件 2在调用的页面中 //一般一个类用一个ILog静态类实例就可以 private static ILog logger = LogManager.GetLogger(typeof(t)); //t就是所在类的类名 //GetLogger 一般传所在累的类明 //1LogManager.GetLogger(typeof(t)).Debug("我的第一条日子"); ////////////ILog logger = LogM... 阅读全文
posted @ 2014-03-02 22:08 陌念 阅读(216) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace Comp.WEB.GridView{ public partial class GridView数据员绑定数据 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ... 阅读全文
posted @ 2014-03-02 21:59 陌念 阅读(309) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示