由於不確定新注音的讀音,於是用「輸入法整合器」去查詢拼法
OK, 確認是「ㄋㄚˇ」... 但是照拼音卻找不到字,這時能確定新注音中有,只是要去哪開啟!
開啟罕見字的方法
- 語言列上右鍵→點「設定值」
- 選好「新注音」→再點「內容」
- 在「一般」的頁籤下方,接近底部有個「字元集設定」
- 將最後一列「允許使用中文標準交換碼全字庫 (CNS11643)所定義的字根輸入」勾選後點確定就完成了
protected void Button1_Click(object sender, System.EventArgs e) { //Get the button that raised the event Button btn = (Button)sender; //Get the row that contains this button GridViewRow gvr =(GridViewRow)btn.NamingContainer;資料來源:Get GridView RowIndex upon button click
protected void Expo_Command(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e) { if (e.CommandName == "forCSR") { //Get rowindex int rowindex =Convert.ToInt32(e.CommandArgument); //Get Row GridViewRow gvr = GridView1.Rows[rowindex]; } }DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e) { //Get the dropdownlist that raised the event DropDownList ddl = (DropDownList)sender; //Get the row that contains this dropdown GridViewRow gvr = (GridViewRow)ddl.NamingContainer; //Get rowindex int rowindex = gvr.RowIndex; } 資料來源:What is difference between RowIndex and DataItemIndex?
protected bool isProjectStop() { string connStr = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["連線字串"].ConnectionString; string strSQL = @"產生資料集的SQL語法"; DataTable dt = new DataTable(); using (SqlConnection conn = new SqlConnection(connStr)) { //傳參數避免Injection和型態轉換錯誤 SqlDataAdapter da = new SqlDataAdapter(); SqlCommand cmd = new SqlCommand(strSQL, conn); da.SelectCommand = cmd; cmd.Parameters.Add("@變數", SqlDbType.VarChar, 12).Value =Request.QueryString["參數名"];//用「@變數」要篩選的條件 da.Fill(dt);//將DataAdapter篩選後的資料放入DataTable }
//依照欄位內容, 去回傳false, true if (dt.Rows[0]["欄位名"].ToString() == "S") return false; else return true;}if (isProjectStop()) //判斷案號是否停用, 是則導到指定頁 Response.Redirect("Default.aspx", true);