![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET
ITAnnie
这个作者很懒,什么都没留下…
展开
-
SqlParameter
SqlParameter parameterBody=new SqlParameter("@Body",SqlDbType.VarChar,2000);parameterBody.Value=sBody;myCommand.Parameters.Add(parameterBody);SqlParameter parameterLeavewordID=new SqlParameter("@Leave原创 2006-10-09 17:13:00 · 910 阅读 · 0 评论 -
datakeyfield
asp:datagrid id="VoteList" runat="server" showheader="False" autogeneratecolumns="False" datakeyfield="VoteID"Int32.Parse(VoteList.DataKeys[item.ItemIndex].ToString())原创 2006-10-17 23:51:00 · 596 阅读 · 0 评论 -
Int32.Parse(string)
Int32.Parse(UserList.SelectedValue)原创 2006-10-09 17:29:00 · 698 阅读 · 0 评论 -
Response.Write
Response.Write("alert(/"please input UserName/")")原创 2006-10-09 17:28:00 · 625 阅读 · 0 评论 -
Attributes.Add
deleteBtn.Attributes.Add("onclick","return confirm(are you sure?);");原创 2006-10-09 17:22:00 · 726 阅读 · 0 评论 -
替换换行符/n为
public string FormatBody(string sBody) { return(sBody.Replace("/n","")); }原创 2006-10-09 17:10:00 · 656 阅读 · 0 评论 -
UnicodeEncoding HashAlgorithm CryptoConfig BitConverter
using System.Text;using System.Security.Cryptography;public static string Encrypt(string password) { Byte[] clearBytes=new UnicodeEncoding().GetBytes(password); Byte[] hashedBytes=((HashAlgorit原创 2006-10-09 17:34:00 · 825 阅读 · 1 评论 -
(int)parameter
return (int)parameterUserID.Value原创 2006-10-09 17:32:00 · 637 阅读 · 0 评论 -
ListBox.DataBind
ListBox.DataSource=dr;ListBox.DataTextField="UserName";ListBox.DataValueField="UserID";ListBox.DataBind();dr.Close();原创 2006-10-09 17:25:00 · 672 阅读 · 0 评论 -
try...catch...throw
catch(Exception ex){throw new Exception(ex.Message,ex);}原创 2006-10-09 17:18:00 · 592 阅读 · 0 评论 -
item.FindControl
foreach(DataGridItem item in VoteList.Items) { CheckBox check=(CheckBox)item.FindControl("VoteCheck"); if(check!=null) { if (check.Checked==true) { vote.UpdateVote(Int32.Parse(原创 2006-10-17 23:52:00 · 706 阅读 · 0 评论