上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
protected System.Web.UI.WebControls.DataGrid MyDataGrid; protected System.Web.UI.WebControls.Label lblPageCount; protected System.Web.UI.WebControls.Label lblCurrentIndex; protec... Read More
posted @ 2005-06-11 13:45 虚空境界 Views(411) Comments(0) Diggs(0)
1、使用 DataView 进行关系导航 如果 DataSet 中的表之间存在关系,则可以使用 DataRowView 的 CreateChildView 方法为父表中的行创建一个 DataView,该 DataView 包含来自相关子表的行。 关键代码: 首先要定义关系: private DataRelation 关系对象; 关系对象=数据集名.Relations.Add("关系名",数据... Read More
posted @ 2005-06-11 13:44 虚空境界 Views(1196) Comments(0) Diggs(0)
public class SubHeader : WebControl //一定要继承于WebControl且为public类 { // The URL to navigate to in case the user is not registered private string _register = string.Empty; public Su... Read More
posted @ 2005-06-11 13:43 虚空境界 Views(348) Comments(0) Diggs(0)
public class FriendsBase : System.Web.UI.Page //必须继承于Page类 { protected string HeaderMessage = String.Empty; protected string HeaderIconImageUrl = String.Empty; FriendsFooter ... Read More
posted @ 2005-06-11 13:42 虚空境界 Views(419) Comments(1) Diggs(0)
在Global.asax.cs文件中的分别输入以下代码: protected void Application_Start(Object sender, EventArgs e) { SqlConnection con; SqlCommand cmd; // Get the connection string fro... Read More
posted @ 2005-06-11 13:41 虚空境界 Views(504) Comments(0) Diggs(0)
private void btnLogout_Click(object sender, System.EventArgs e) { // Remove the authentication ticket System.Web.Security.FormsAuthentication.SignOut(); // Red... Read More
posted @ 2005-06-11 13:39 虚空境界 Views(458) Comments(0) Diggs(0)
Request->Onint->LoadViewState->LoadPostData->Onload->Event raising and handlers->OnPreRender->SaveViewState->Render->Response Read More
posted @ 2005-06-11 13:38 虚空境界 Views(400) Comments(0) Diggs(0)
using System.Diagnostics protected void Application_Error(Object sender, EventArgs e) { EventLog.WriteEntry("FriendsReunion", Server.GetLastError().InnerExcepti... Read More
posted @ 2005-06-11 13:37 虚空境界 Views(973) Comments(0) Diggs(1)
方法一、使用web.config中的节中的保存公共数据,然后使用ReadXml读取或设置公共数据(web.config的内容见1) 相关代码如: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Session("... Read More
posted @ 2005-06-11 13:36 虚空境界 Views(669) Comments(1) Diggs(0)
功能:获取DATAROW对象的数组 重载列表: 1、获取所有DATAROW对象的数组 public DataRow[] Select(); 2、按照主键顺序(如果没有主键,则按添加顺序)获取与筛选条件相匹配的所有DataRow对象的数组 public DataRow[] Select(string); 3、获取按照指定的排序顺序且与筛选条件相匹配的所有DataRow对象的数组 public ... Read More
posted @ 2005-06-11 13:33 虚空境界 Views(3238) Comments(3) Diggs(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页