国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
web應(yīng)用
ASP.NET無(wú)狀態(tài)(做狀態(tài)管理)
Response對(duì)象:contentType獲得或指定的響應(yīng)的HTTP內(nèi)容(MIME)類(lèi)型為標(biāo)準(zhǔn)的mime類(lèi)型如text/xml或image/gif 默認(rèn)的mime類(lèi)型是text/html
Expires指定瀏覽器中緩存的頁(yè)面過(guò)期之前的時(shí)間
buffer iis緩存
cache asp。net程序緩存,服務(wù)器端緩存
redirect重定向
end 結(jié)束程序
httpcookie httpcook=new httpcookie("user","abc");
httpcookie.cookies.add(httpcook);
讀 request.cookies["user"].value;
cache["username"]="aaa";
response.write(cache["username"]);
response.filter.~過(guò)濾不文明的語(yǔ)言
response.Isclientconnected 是否連接
request.rawurl獲取當(dāng)前請(qǐng)求的原始url
response.redirect("~/default.aspx?username=abc");
request.Querystring["username"];//取的值是abc
url比較完整的絕對(duì)路徑
urlreferrer上次瀏覽的地址
request.browser 瀏覽器信息
server.mappath("~/default.aspx")//物理地址
server.HtmlEncode("<Html>");編碼后為<Html>
server.HtmlDecode("<Html>");解碼后為空
server.Transfer("~/default.aspx");跳轉(zhuǎn)
ispostback 第一次加載時(shí)不執(zhí)行,數(shù)據(jù)回發(fā)在第二次以上 !ispostback
Appliction是asp。net全局對(duì)象變量 IIS開(kāi)著就不會(huì)消失,用來(lái)網(wǎng)站訪問(wèn)人數(shù),統(tǒng)計(jì)流量
Session 會(huì)話(huà)級(jí)別的變量(默認(rèn)是20分鐘可修改)跨請(qǐng)求跨用戶(hù),用來(lái)保存用戶(hù)的信息
if (Appliction["count"]!=null)
{
Appliction["count"]=(int)Appliction["count"]+1;
}
else
{
Appliction["count"]=1;
}
session["a"]="b";
默認(rèn)為按值傳遞,復(fù)制父本數(shù)據(jù)處理后本身不會(huì)變化
ref引用傳遞 處理后本身會(huì)變化
切換到模板綁定用Bind
編譯用<%#Eval("")+""%>
可直接在<Item~><%#Eval("")+""%></Item~>中寫(xiě)
編輯:gvjobs.EditIndex=e.newEditindex;//編譯索引
gvjobs.DataBind();
更新:(Textbox)this.gvjobs.rows[e.rowindex].findcontrol("textbox1");
this.gvjobs.rows[e.rowindex].cell[0].text

//分頁(yè)存儲(chǔ)過(guò)程
declare @size int
declare @pageIndex int
declare @notCount int
declare @count int
declare @totalpage int
set @pageIndex=113
set @size=4
 
select @count=count(job_id) from jobs
print(@count)
if @count%@size>0
begin
  set @totalpage=@count/@size+1
   print @totalpage
end
else
begin
   set @totalpage=@count/@size
   print(@totalpage)
end
if @pageIndex<=0
   set @pageIndex=1
if @pageIndex>@totalpage
begin
   set @pageIndex=@totalpage-1
   print @pageIndex
end
set @notCount=@size*@pageIndex
print @notCount
if @pageIndex<=@totalpage and @pageIndex>=1
 execute('select top '+ @size+' * from jobs where job_id not in (select top '+ @notCount+' job_id from jobs)')

declare @count int
select @count=count(emp_id) from employee
exec sp_pager 10000,-100,@count,'employee','emp_id'
alter procedure sp_pager
@size int,
@pageIndex int,
@count int,
@tablename varchar(50),
@primarykeyname varchar(50)
as
declare @notCount int
declare @totalpage int
if @size<=0
 set @size=10

if @count%@size>0
begin
  set @totalpage=@count/@size+1
end
else
begin
   set @totalpage=@count/@size
end
if @pageIndex<=0
   set @pageIndex=1
if @pageIndex>@totalpage
begin
   set @pageIndex=@totalpage
end
set @notCount=@size*(@pageIndex-1)

if @pageIndex<=@totalpage and @pageIndex>=1
 execute('select top '+ @size+' * from '+@tablename +' where '+ @primarykeyname+' not in (select top '+ @notCount+' '+@primarykeyname+' from '+@tablename+' jobs)')
go

 
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
Freemarker分頁(yè) - 石礫 - JavaEye技術(shù)網(wǎng)站
s2sh 底層封裝(增,刪,改,查,分頁(yè))
jsp標(biāo)簽分頁(yè)
一次分布式架構(gòu)cms系統(tǒng)頁(yè)面靜態(tài)化模塊開(kāi)發(fā)經(jīng)歷
delphi 讀取ESET NOD32 的用戶(hù)名與密碼
PHP分頁(yè)(兩個(gè)函數(shù)配合使用)
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服