收集ASP转ASP.NET过程典型问题
来源:互联网 发布:广告招牌设计软件 编辑:程序博客网 时间:2024/06/05 15:28
1、在asp.net中路径中 "~" 波浪号表示什么含义?
A:是你的虚拟目录的根 .
比如你的虚拟目录是 http://localhost/web 那么 ~/aaa/index.html 就 是 http://localhost/web/aaa/index.html
2 使用c#给服务器控件的客户端事件绑定JS处理程序的方法?
wctl.Attributes.Add("onfocus", string.Format("this.className = ’{0}’;", className));
编程html后的代码为;
onfocus="this.className=’className’"
使用C#代码读取web.config文件中的<connectionStrings>配置节
demo:
<connectionStrings>
<add name="test_dbConnectionString" connectionString="Data Source=PROGRAME-8P1PK1;Initial Catalog=test_db;User ID=sa;PassWord=000000"
providerName="System.Data.SqlClient" />
</connectionStrings>
1 引用using System.Web.Configuration命名空间
2 string connectionString =ConfigurationManager.ConnectionStrings["dbConnectionString"].ConnectionString;
A:是你的虚拟目录的根 .
比如你的虚拟目录是 http://localhost/web 那么 ~/aaa/index.html 就 是 http://localhost/web/aaa/index.html
2 使用c#给服务器控件的客户端事件绑定JS处理程序的方法?
wctl.Attributes.Add("onfocus", string.Format("this.className = ’{0}’;", className));
编程html后的代码为;
onfocus="this.className=’className’"
使用C#代码读取web.config文件中的<connectionStrings>配置节
demo:
<connectionStrings>
<add name="test_dbConnectionString" connectionString="Data Source=PROGRAME-8P1PK1;Initial Catalog=test_db;User ID=sa;PassWord=000000"
providerName="System.Data.SqlClient" />
</connectionStrings>
1 引用using System.Web.Configuration命名空间
2 string connectionString =ConfigurationManager.ConnectionStrings["dbConnectionString"].ConnectionString;
- 收集ASP转ASP.NET过程典型问题
- ASP.NET 路径问题收集
- ASP.NET简单问题收集
- 从ASP转到ASP.NET过程中常见问题收集
- asp.net收集
- Asp.net资料收集
- asp.net 技巧收集
- asp.net工具收集
- ASP.net技术收集
- ASP.NET教程收集
- asp.net 资料收集
- asp问题收集
- asp.net常用语句收集(转)
- ASP.NET经典收集(转)
- ASP.NET调试过程中的离奇问题
- 典型的asp.net登陆验证代码
- ASP.Net论坛资料收集
- asp.net 題目[收集1]
- 写程序想到的
- GridView创建空白行c#代码(收藏)
- hdu 2647 Reward 拓扑排序
- 编译器的认识
- 有环单链表的一些问题
- 收集ASP转ASP.NET过程典型问题
- 批量转换文件编码
- c++primer学习笔记(二)
- char *p 与char p[] 比较
- Android源码地址
- Dreamweaver 代码配色方案 DIY
- 重新安装vc++出现无法完全安装的解决方法
- iphone实例集锦
- IDES - The SAP Model Company--Introduction