摘要:
//查詢按鈕protectedvoidbtnQue_Click(objectsender,EventArgse){this.tableInfo.Visible=true;SqlConnectionsqlconn=newSqlConnection("server=localhost;database=db;uid=uid;pwd=pwd;");sqlconn.Open();SqlDataAdapte...
阅读全文
posted @ 2010-11-29 21:16
露水丛生
阅读(369)
推荐(0)
摘要:
//1使用REPEATER控件显示数据(指定字段显示)RepeaterBind.DataSource=ds.Tables["testTable"];RepeaterBind.DataBind();<asp:Repeaterid="RepeaterBind"runat="server"><ItemTemplate><li><%#DataBinder.Eval...
阅读全文
posted @ 2010-11-29 21:08
露水丛生
阅读(259)
推荐(0)
摘要:
//设为首页 <span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.google.cn');" style="CURSOR: hand">设为首页</span>//加入收藏 <a ...
阅读全文
posted @ 2010-11-29 21:01
露水丛生
阅读(361)
推荐(0)
摘要:
MasterPage.master<div id="menu_search"> <span class="item_title">文章搜索</span> <div id="menu_search_info" class="item_info"> <center> <asp:TextBox ID="text_sea...
阅读全文
posted @ 2010-11-28 23:08
露水丛生
阅读(284)
推荐(0)
摘要:
1. 简述 private、 protected、 public、 internal 修饰符的访问权限。答: private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 public : 公共成员,完全公开,没有访问限制。 internal: 程序集内可见。2. 列举ASP.NET 页面之间传递值的几种方式。 答: 1).使用Que...
阅读全文
posted @ 2010-11-28 23:04
露水丛生
阅读(433)
推荐(0)
摘要:
Form 表单:一个页面只能有一个 runat=“server”不是必须的,加上后,会在输出的源代码里多了一行 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGR/8ZxOm5Tn0sfHNJaqE12hKqqJTQ==" /> 嘿,这不就...
阅读全文
posted @ 2010-11-28 22:57
露水丛生
阅读(1912)
推荐(0)
摘要:
vs2005调试问题及解决方案锦集==============================================================================================1.检测到有潜在危险的 Request.Form 值2.“在没有任何数据时进行无效的读取尝试”解决办法3.数据为空。不能对空值调用此方法或属性。4.阅读器...
阅读全文
posted @ 2010-11-28 22:06
露水丛生
阅读(679)
推荐(0)
摘要:
1、在选择(SelectedIndexChanged)事件中使用 //获得被选择行的TextBox1 protected void gv1_SelectedIndexChanged(object sender, EventArgs e) { //Control c = this.gv1.Rows[this.gv1.SelectedIndex].FindControl("TextBox1...
阅读全文
posted @ 2010-11-28 21:53
露水丛生
阅读(809)
推荐(0)
摘要:
1. ORACLE SELECT * FROM TABLE1 WHERE ROWNUM<=N HQL: from table1 t order by t.createTime desc where rownum<=n2. INFORMIX SELECT FIRST N * FROM TABLE1 3. DB2 SELECT * ROW_NUMBER() OVER(ORDER BY...
阅读全文
posted @ 2010-11-28 21:46
露水丛生
阅读(979)
推荐(0)
摘要:
在引用资源的 ASP.NET 服务器控件中,可以使用绝对路径或相对路径,这一点与客户端元素一样。如果使用相对路径,则相对于页面、用户控件或包含该控件的主题的路径进行解析。例如,假设 Controls 文件夹中包含一个用户控件。该用户控件包含一个 Image Web 服务器控件,该服务器控件的 ImageUrl 属性设置为以下路径:Images/SampleImage.jpg 该用户控件运行时,路径...
阅读全文
posted @ 2010-11-28 21:44
露水丛生
阅读(387)
推荐(0)