摘要:
<1>为什么要使用ASP.NET 1.ASp.NET是一个统一的Web开发模型 2.继承了微软的2大核心技术,ACtive Server Pager 和 .Net<2>Web控件主要类型 HTML服务器控件 Web服务器控件 验证控件 用户控件<3>Web控件的特点 表单在服务器端运行 表单输入域的信息可以保留 所有的输入域都是控件,并且控件具有强大且丰富的属性和方法 对输入信息的验证能力 智能的数据显示控件<4>Web的基本控件 <asp:Label/>标签控件 <asp:TextBox/>文本控件 <asp:Ch 阅读全文
posted @ 2011-03-29 21:54
志神Soft
阅读(243)
评论(0)
推荐(0)
摘要:
<1>设置全局主题 在Web.config中设置<Page them="主题名"><2> 在页面禁止主题 EnableTheming=false 阅读全文
posted @ 2011-03-29 21:38
志神Soft
阅读(128)
评论(0)
推荐(0)
摘要:
<1>添加模板列 1.在模板列中 HeaderTemplate总拖个普通的html checkbox控件 id设置为ckall onclick="CheckAll()" 2.在ItemTemplate中拖个服务器控件 3.写Js脚本 <script language="javascript"> funcation CheckAll(){ var id=document.getElementById("ckall"); var Na=document.getElementByTagName("input 阅读全文
posted @ 2011-03-29 21:34
志神Soft
阅读(252)
评论(0)
推荐(0)
摘要:
<1> PostedFile类 得到在对话框选择的文件路径 FileUpLoad1.PostedFile.FileName 必须Server.MapPath()把选择的文件上传 FileUpload1.PostedFile.SaveAs(Server.MapPath(路径)); 阅读全文
posted @ 2011-03-29 21:16
志神Soft
阅读(185)
评论(0)
推荐(0)
摘要:
<实现鼠标滑过背景色改变> RowDataBound事件 if(e.Row.RowType==DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover","c=this.style.backgroundColor;" +" this.style.backgroundColor=='pink';"); e.Row.Attributes.Add("onmouseout","this.style.backgroun 阅读全文
posted @ 2011-03-29 21:12
志神Soft
阅读(206)
评论(0)
推荐(0)
摘要:
<1>购物车泛型集合实现 public Dictionary<int,CartType> ShoppingCart { get { if(Session["cart"]==null){ return null; }else { return Session["cart"] as Dictionary<int,CaryType>; } set { Session["cart"]=value; } }<2>点购买事件 CartType c=new CartType(); c.ID=0; c. 阅读全文
posted @ 2011-03-29 20:43
志神Soft
阅读(605)
评论(0)
推荐(0)


浙公网安备 33010602011771号