?? lscdjlist.aspx.cs
字號(hào):
?using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Czy_LscdjList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//顯示臨時(shí)車登記列表
this.GridView1.DataSource = DataControl.GetData("SELECT * from 臨時(shí)車登記 where 帳號(hào)='" + Session["帳號(hào)"].ToString() + "' order by 計(jì)費(fèi)開始時(shí)間 DESC");
this.GridView1.DataBind();
if (Request.QueryString["Tag"] == "See")
{
this.Button1.Visible = false;
this.GridView1.Columns[8].Visible = false;
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//跳轉(zhuǎn)頁面
Response.Redirect("LscdjEdit.aspx");
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
string idKey = this.GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)]["臨時(shí)車代碼"].ToString();
if (e.CommandName == "Mod")
{
//傳遞修改的標(biāo)志 跳轉(zhuǎn)頁面
Response.Redirect("LscdjEdit.aspx?ID=" + idKey);
}
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
//如果有結(jié)束時(shí)間則不顯示按鈕
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[5].Text != " ")
{
((LinkButton)e.Row.Cells[8].Controls[0]).Visible = false;
}
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -