liucan

博客园 首页 新随笔 联系 订阅 管理

2008年12月13日 #

摘要: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { // add the UnitPrice and QuantityTotal to the running total variables ... 阅读全文
posted @ 2008-12-13 14:11 liucan 阅读(1216) 评论(0) 推荐(1) 编辑

2008年12月11日 #

摘要: 在usercontrol中的cs文件中:public string myClientID{get {return my.ClientID;} }//my为需要在客户端访问的控件名在aspx文件中:var mystr=document.getElementByID("<%uc1.myClientID%>").value; 或者直接在uc的cs文件中给出需要的控件的值,如textbox.t... 阅读全文
posted @ 2008-12-11 17:00 liucan 阅读(364) 评论(0) 推荐(0) 编辑

摘要: 在前台检测session是否有值<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" runat="Server"> <% String str = (String)Session["locationlist"]; %> <script language="javascript" src="../J... 阅读全文
posted @ 2008-12-11 16:37 liucan 阅读(2954) 评论(0) 推荐(0) 编辑

摘要: 最近学用asp.net开发一个查询系统将遇到的问题记录一下,答案来自网络,为自己以后翻阅方便而写。 阅读全文
posted @ 2008-12-11 16:35 liucan 阅读(237) 评论(0) 推荐(0) 编辑