コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             city.CityId = int.Parse(Request["CityId"].ToString());
             DataSet ds = new DataSet();
             ds = city.ShowCityInfoById();
             DataRow dr = ds.Tables[0].Rows[0];
             txtName.Text = dr[0].ToString();
             txtDesc.Text = dr[1].ToString();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }