
asp.net
文章平均质量分 80
长沙大东家
这个作者很懒,什么都没留下…
展开
-
asp.net 获取获取客户端IP,名称等地址
Public Shared Function GetIPAddress() As String Dim _IPAddress As String = Null.NullString If Not HttpContext.Current.Request.UserHostAddress Is Nothing Then原创 2009-10-23 20:10:00 · 814 阅读 · 0 评论 -
数据库连接字在web.config里的用法_asp.net技巧
在asp.net中的WEB程序的设置中我们必须用到Web.config来存储数据库连接字.事实上这是个很好的做法,因为可以省去我们很多的麻烦还可以帮助我们避免不必要的错位,是的很多情况下我就是这样做.它通过XML来记录这些信息.具体的是在....这个标记中来记录的.这里请看一个ORACLE的例子如下: Persist Security Info=False;Passwor转载 2010-01-27 09:05:00 · 575 阅读 · 0 评论 -
ASP.NET中连接数据库的各种方法
今天,学习了ASP.NET中连接数据库的各种方法,这是我自己的一个小总结,不一定完全正确,仅供参考! O(∩_∩)O~ 连接SQL数据库的方法:(一)、在Web.Config中创建连接字符串:1、2、3、(二)、在aspx.cs中获取连接字符串:1、string strCon = System.Configuration.ConfigurationManager.Conn转载 2010-01-27 08:55:00 · 1391 阅读 · 0 评论 -
Using connection strings from web.config in ASP.NET v2.0
ASP.NET v2.0 has a couple new ways to reference connection strings stored in the web.config or machine.config file.A typical web.config file in v2.0 could have the following section which is pla原创 2010-01-27 09:30:00 · 596 阅读 · 0 评论 -
AppSettings In web.config
Posted by scott on 2005年2月13日 In this article we will review a couple of pratices to keep your runtime configuration information flexible.ASP.NET provides a configuration system we can原创 2010-01-27 09:13:00 · 989 阅读 · 1 评论 -
C# MVC中返回JSON 对象
public class JsonNetResult : ActionResult { public Encoding ContentEncoding { get; set; } public string ContentType { get; set; } public object Data { get; set; } public JsonSerializerSettin转载 2014-12-09 00:36:50 · 4183 阅读 · 0 评论