asp.net 记录速查

C#:  user control, custom control: 隐藏子控件,不要visible=false, 用display=none; 在客户端隐藏。

HttpCookie cookie=new HttpCookie("Cookie的名称"); cookie["姓名"]=“小段”;

DateTime currTime=DateTime.Now; TimeSpan ts=new TimeSpan(0,1,0,0); cookie.Expires=currTime+ts;

HttpCookie cookie=Request.Cookies["myCookie"];

Domain, Path, Secure, HasKeys

Session client only SessionId, other in Server IIS的进程中,inetinfo.exe, 存储在cookie中

Object-Oritented

VBScript <!--    --> 和C#不同:不要; 不用指定类型,Sub End Sub Function End Function, '

只有一种数据类型Variant(子类:Empty,Null, Boolean, Byte, Integer, Currency, Long, Single, Double, Date(Time), String, Object, Error)

Dim, ReDim Public, Private, 变量不能_, vbDecial等一系列常量 Mod, is, Not or eqv, and, xor imp

&字符串 if 同vb, select case end select 同VB do while loop do loop while do until loop do loop until while wend

for exit for next, for each in exit for next,  sub end sub call(可不要) subtest function()

btn_OnClick() 名btn或者OnClick="MsgBox 'aaa'">或者<Script Language="VBScript" EVENT="OnClick" FOR='btn'<!-- -->

ADO.net

string strConnectString="server=localhost;database=MyDataBase;user id=sa;password=;";

SqlConnection conn=new SqlConnection(strConnectString); conn.Open();

SqlConnection SqlCommand SqlDataAdapter SqlDataReader DataSet DataTable

ExecuteNonQuery() ExecuteScalar() EXecuteXmlReader() Repeater, DataList, DataGrid

web.config, Global.asax

global.asax 处理asp.net或者httpModule引发的程序模块的方法

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值