从ASP转到ASP.NET过程中常见问题收集
- 做了2年多asp。09打算转向.
NET先将
学习过程中遇到的
问题和解决的办法写出来提醒自己和后 来者少走弯路 1、Q:请问在asp.net中路径中 "~" 波浪号表示什么含义? A:是你的虚拟目录的根 . 比 如 你 的 虚 拟 目 录 是 localhost/web 那 么 ~/aaa/index.html 就 是 localhost/
web/aaa/index.html 参考:topic.csdn.net/t/20060309/13/4603073.html 关键字:asp.net 路径 波浪 引擎:Google 2 使用c#给服务器控件的客户端事件绑定JS处理
程序的方法? wctl.Attributes.Add("onfocus", string.Format("this.className = '{0}';", className)); 编程html后的代码为; onfocus="this.className='className'" 18:11 2009-3-1:使用C#代码读取web.config文件中的
配置节 demo: 1 引用using System.Web.Configuration命名空间 2 string connectionString =ConfigurationManager.ConnectionStrings["dbConnectionString"].ConnectionString; 资料引用:456mifeng 369mifeng