90.发送带嵌入图片邮件之SMTP实现和ESMTP实现

89.无法启动MSMQ服务

http://blog.csdn.net/coofucoo/archive/2009/08/27/4489598.aspx

运行下输cmd,然后再输
net stop msdtc

msdtc -uninstall

msdtc -install

net start msdtc  
就可以解决了。

88.基于声明身份验证机制

http://www.infoq.com/cn/news/2009/10/Guide-Claim-Based-Identity

87.XmlHttp 跨域的解决方案

http://www.javaeye.com/topic/15641

86.应对IE8,你的网站添加X-UA-Compatible meta标签了吗?

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />标签!

85.负载均衡
群集服务器之WINDOWS 2003网络负载均衡配置
Windows 2003实现多台服务器网络负载均衡
WEB服务器负载均衡问题的解决

84.JavaScript TimeLine
http://blog.joycode.com/kaneboy/archive/2009/09/24/115713.joy

83.对于一个不断增加值(如:文本值)的数据字段来说,这个字段的DataType最好是什么(nvarchar,还是text)

推荐一个做法,不要存在数据库里,数据库里存一个URL索引地址,把巨型文本保存到一个文件里
这个文件就可以自定义了,可以是二进制的文件也可以是文本文件


82.JS获取MAC地址
http://zhupan.javaeye.com/blog/26440
http://www.javaeye.com/wiki/topic/382042

Asp.net 随记 Part4 (71-90 )<HTML><HEAD><TITLE>WMI Scripting HTML</TITLE>
Asp.net 随记 Part4 (71-90 )
<META http-equiv=Content-Type content="text/html; charset=gb2312">
>

81.WebService IList
http://blog.csdn.net/kbynii/archive/2007/01/31/1498938.aspx
80.有关于设置CodePage,在后台取TextBox值中的乱码的解决方案
aspx 设置 CodePage=936
必须相应在设置 requestEncoding,responseEncoding的编码。不然会出现乱码的情况
如:<globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
79.有关于统计的SQL
ID CID DType uType
1 100003 1 2
2 100003 2 3
3 100004 1 2
4 100004 2 1
5 100005 1 2
6 100005 2 2

我想统计一下,按Dtype为类型统计
uType 1:需要2偶尔需求3不需要
输出结果:
DType 需要偶尔需求不需要
1          3
2 111

CREATE TABLE Skipper
(
        ID INT PRIMARY KEY,
        CID INT,
        DType INT,
        UType INT
)

INSERT INTO Skipper VALUES(1,100003,1,2)
INSERT INTO Skipper VALUES(2,100003,2,3)
INSERT INTO Skipper VALUES(3,100004,1,2)
INSERT INTO Skipper VALUES(4,100004,2,1)
INSERT INTO Skipper VALUES(5,100005,1,2)
INSERT INTO Skipper VALUES(6,100005,2,2)

--传统方法:
SELECT DType,
        SUM(CASE WHEN UType=1 THEN 1 ELSE 0 END) AS [需要],
        SUM(CASE WHEN UType=2 THEN 1 ELSE 0 END) AS [偶尔需要],
        SUM(CASE WHEN UType=3 THEN 1 ELSE 0 END) AS [不需要]
FROM Skipper WITH(NOLOCK)
GROUP BY DType
ORDER BY DType

--SQL Server 2005方法:
SELECT DType,[1] AS [需要],[2] AS [偶尔需要],[3] AS [不需要]
FROM (
        SELECT ID,DType,UType
        FROM Skipper WITH(NOLOCK)
        ) AS T
PIVOT (
        COUNT(ID)
        FOR UType IN ([1],[2],[3])
        ) AS PVT
ORDER BY DType


78.Html To PDFhttp://www.websupergoo.com/abcpdf-9.htm
介绍:WebSupergoo ABCpdf DotNET 用ABCpdf控件可以非常容易地动态生成Adobe PDF文档。你将不会相信它是多么的简单,功能又是如此之强大
序列号:341-639-358 for a Standard License or
           719-253-057 for a Professional License
例子:(http://www.websupergoo.com/abcpdf-9.htm

77.IIS7.0 检测到在集成的托管管道模式下不适用的ASP.NET设置 的解决方法

图:Asp.net 随记 Part4 (71-90 )

解决方案:在应用程序池的高级设置里有个托管管道模式,默认值为Integrated,我们将其修改为Classic,就可以很好的解决问题了。

Asp.net 随记 Part4 (71-90 )

76.用户控件(.ascx)与网页间(.aspx)如何传值的几种方法

1.aspx文件:
public void SetLabel(string str)
{
       this.Label1.Text = str; ;
}
ascx文件;
protected void Button1_Click(object sender, EventArgs e)
{
       System.Web.UI.Page p = this.Page;
       Type pageType = p.GetType();
       MethodInfo mi = pageType.GetMethod("SetLabel");
       mi.Invoke(p, new object[] { "你这个大猪猪!" });

}

2. 在自定义控件中定义这个控件的属性
public Control LabelText
{
   get{return this.Label1.Text;}
}

3用FindControl方法寻找
Label lbl = (Label)WebUserControl1.FindControl("Label1");


75.网页切换效果(Fade)

このページの構文
<meta http-equiv="page-enter" content="progid:DXImageTransform.Microsoft.Fade(Duration=3)">

Asp.net 随记 Part4 (71-90 ) 5.5~

ページ移動に指定するには、<head>から</head>までの間に下記のように記述します。
<meta http-equiv="" content="progid:DXImageTransform.Microsoft.Fade(Duration=,Overlap=,Enabled=)">

http-equiv=は切り替え区分で、下記の範囲からイベントを指定します。
page-enter(ページ表示開始時)
page-exit(ページ表示終了時)
site-enter(サイト表示開始時)
site-exit(サイト表示終了時)

Duration=は効果の時間で、下記のように秒数を指定します。
0.000秒

Overlap=は効果の度合で、下記のいずれかを指定します。
0.00から1.00までの値を指定します。

Enabled=は効果の有無で、下記のいずれかを指定します。
0(無効)
1(有効)

74.一个利用扩展方法的实例:AttachDataExtensions

http://www.cnblogs.com/JeffreyZhao/archive/2009/01/07/AttachDataExtensions.html

73.http://www.codeproject.com/KB/miscctrl/DropDownWithAutoComplete.aspx

Asp.net 随记 Part4 (71-90 )

72. MultiSelect Dropdown Controlhttp://www.codeproject.com/KB/user-controls/Multiselect-Dropdown.aspx


Asp.net 随记 Part4 (71-90 )

 

71.javascript终极屏蔽右键/禁止复制/禁止另存/禁止右键/禁止选取/禁止粘贴的方法禁止另存代码:

Asp.net 随记 Part4 (71-90 )<noscript> 
Asp.net 随记 Part4 (71-90 )
<iframe src="/*>";</iframe> 
Asp.net 随记 Part4 (71-90 )
</noscript> 

禁止复制代码:
Asp.net 随记 Part4 (71-90 )<body  
Asp.net 随记 Part4 (71-90 )oncontextmenu
='return false' 
Asp.net 随记 Part4 (71-90 )ondragstart
='return false' 
Asp.net 随记 Part4 (71-90 )onselectstart
='return false' 
Asp.net 随记 Part4 (71-90 )onselect
='document.selection.empty()' 
Asp.net 随记 Part4 (71-90 )oncopy
='document.selection.empty()' 
Asp.net 随记 Part4 (71-90 )onbeforecopy
='return false' 
Asp.net 随记 Part4 (71-90 )onmouseup
='document.selection.empty()'>

禁止右键:
>

禁止选取:
Asp.net 随记 Part4 (71-90 )<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()>

禁止粘贴:
Asp.net 随记 Part4 (71-90 )<input type=text onpaste="return false"> 


 

 

 

 

 

 

 

Asp.Net 经验系列

Asp.net 随记 Part3 (53- 70)

Asp.net 随记 Part2 (31- 52)

Asp.net 随记 Part1 (1- 30)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-01-21
  • 2021-10-23
  • 2021-06-10
  • 2021-11-02
  • 2021-05-24
猜你喜欢
  • 2021-09-17
  • 2021-07-10
  • 2021-12-20
  • 2021-10-18
  • 2021-06-13
  • 2021-11-02
  • 2021-09-28
相关资源
相似解决方案