All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
收集ASP转ASP.NET过程典型问题_[Asp.Net教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/1/30 1:36:58 Browse times: 297 Comment times: 0

收集ASP转ASP.NET过程典型问题_[Asp.Net教程]


Head photo

Go homepage
Upload pictures
Write articles

收集ASP转ASP.NET过程典型问题_[Asp.Net教程] 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文件中的配置节

demo:


providerName="System.Data.SqlClient" />


1 引用using System.Web.Configuration命名空间

2 string connectionString =ConfigurationManager.ConnectionStrings["dbConnectionString"].ConnectionString;




There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.