• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

norman

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

VS2005 使用经验积累

F1:在线帮助

Ctrl+F:查找与替换
F3: 查找下一个
Shift+F3: 查找上一个

F4:属性
Ctrl+F4:关闭当前窗体

F5: 启动调试
Ctrl+F5: 开始执行(不调试)
Shift+F5: 停止调试
Ctrl+Shift+F5: 重启调试

F6: 生成解决方案
Ctrl+F6: 生成当前项目

F7: 查看代码
Shift+F7: 查看窗体设计器

F9: 设置和取消断点
Ctrl+F9: 启用/停止断点
Ctrl+Shift+F9: 删除全部断点

F10: 逐过程
Ctrl+F10: 运行到光标处

F11: 逐语句

F12: 转到所调用过程或变量的定义

VS2005中新的存取WEB.CONFIG
    VS2003中
    System.Configuration.ConfigurationSettings.AppSettings.Set(string name,string Value)
    System.Configuration.ConfigurationSettings.AppSettings.Get(int index)
    VS2005中
    System.Configuration.ConfigurationManager.AppSettings.Set(string name,string Value)
    System.Configuration.ConfigurationManager.AppSettings.Get(int index)
    其用如下:
       ConfigurationManager.AppSettings.Set("master", "~/MasterPage2.master");
       this.TestBox1.Text = System.Configuration.ConfigurationManager.AppSettings.Get("master");

VS2005中新的服務器端注冊JS等腳本
    VS2003中
    this.Page.RegisterStartupScript(String key,string script)
    VS2005中
    this.Page.ClientScript.RegisterStartupScript(Type type,string key,string value)
    其用如下:
    ClientScript.RegisterClientScriptBlock(this.GetType(), "test", "<script language='javascript'>alert('test');</script>");


posted on 2007-06-18 17:47  strgvi  阅读(232)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3