?? cargo_open.aspx.cs
字號:
?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;
using System.Data.SqlClient;
public partial class Cargo_open : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
SqlConnection strcon = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["strcon"]);
strcon.Open();
SqlDataAdapter sda = new SqlDataAdapter("select * from tb_Cargo where id=" + Request.QueryString["id"], strcon);
DataSet ds = new DataSet();
sda.Fill(ds, "tb_Cargo");
DataRowView rowview = ds.Tables["tb_Cargo"].DefaultView[0];
LBLCargoName.Text = rowview["CargoName"].ToString();
LBLCargoWeight.Text = rowview["CargoWeight"].ToString();
LBLCargoPrice.Text = rowview["CargoPrice"].ToString();
LBLCargoDate.Text = rowview["CargoDate"].ToString();
LBLStart.Text = rowview["Start"].ToString();
LBLWhither.Text = rowview["Whither"].ToString();
LBLLinkman.Text = rowview["Linkman"].ToString();
LBLTel.Text = rowview["Tel"].ToString();
LBLEffectDate.Text = rowview["EffectDate"].ToString();
LBLBewrite.Text = rowview["Bewrite"].ToString();
ds.Clear();
strcon.Close();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -