微軟認(rèn)證綜合輔導(dǎo):C#字符串函數(shù)大全7
1、String str=Request.QueryString['變量']; 用超鏈接傳送變量。 如在任一頁(yè)中建超鏈接:點(diǎn)擊 在 Edit.aspx 頁(yè)中取值:String str=Request.QueryString['fdid'];
2、DOC 對(duì)象.CreateElement('新建節(jié)點(diǎn)名'); 創(chuàng)建 XML 文檔新節(jié)點(diǎn)
3、父節(jié)點(diǎn).AppendChild(子節(jié)點(diǎn)); 將新建的子節(jié)點(diǎn)加到 XML 文檔父節(jié)點(diǎn)下
4、 父節(jié)點(diǎn).RemoveChild(節(jié)點(diǎn)); 刪除節(jié)點(diǎn)
5、Response Response.Write('字串'); Response.Write(變量); 向頁(yè)面輸出。 Response.Redirect('URL 地址'); 跳轉(zhuǎn)到 URL 指定的頁(yè)面
6、char.IsWhiteSpce(字串變量,位數(shù))——邏輯型 查指定位置是否空字符; 如: string str='中國(guó) 人民'; Response.Write(char.IsWhiteSpace(str,2)); //結(jié)果為:True, 第一個(gè)字符是 0 位,2 是第三個(gè) 字符。
7、char.IsPunctuation('字符') --邏輯型 查字符是否是標(biāo)點(diǎn)符號(hào) 如:Response.Write(char.IsPunctuation('A')); //返回:False
時(shí)間:2013-06-21 責(zé)任編輯:admin
相關(guān)文章
無(wú)相關(guān)信息