一些不常用的代码汇总(不断更新)
生活随笔
收集整理的這篇文章主要介紹了
一些不常用的代码汇总(不断更新)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<table cellspacing="0" cellpadding="0"> cellspacing ? 單元格之間的距離 cellpadding ?單元格和外邊框之間的距離 Drop_Station.Items.Insert(0,?new?ListItem("請選擇",?""));? Response.End();
?
網絡URL編碼
JS : encodeURIComponent(names.val())
CS: tt.UserName = HttpUtility.UrlDecode(context.Request.QueryString["userName"].ToString());
?
前臺 可以用屬性綁定(value)
? ? <asp:LinkButton Text="刪除" runat="server" ID="DeleteBtn" OnClick="Delete_Click" OnClientClick="return confirms()" value='<%#Eval("ID") %>' class="publica"></asp:LinkButton>
后臺獲取
protected void Delete_Click(object sender, EventArgs e)
{
string DID = ((LinkButton)sender).Attributes["value"].ToString();
}
轉載于:https://www.cnblogs.com/Rock-Lee/archive/2013/05/08/3067706.html
總結
以上是生活随笔為你收集整理的一些不常用的代码汇总(不断更新)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CPP第四版第五章:位操作符、sizeo
- 下一篇: c# treeView 取消选择事件