예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         SearchTB.Focus();
         MyDataBind();
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["DoctorGUID"] == null)
         {
             Util.ShowMessage("用户登录超时,请重新登录!", "../Login.aspx");
             Response.End();
         }
         else
         {
             SearchTB.Focus();
             MyDataBind();
         }
     }
 }
 private TextBox Focused()
 {
     if (NameTb.Focus())
     {
         return(NameTb);
     }
     else if (ValueTb.Focus())
     {
         return(ValueTb);
     }
     else if (DescriptionTb.Focus())
     {
         return(DescriptionTb);
     }
     else if (SearchTB.Focus())
     {
         return(SearchTB);
     }
     else
     {
         return(NameTb);
     }
 }
 private void SearchTB_MouseDown(object sender, MouseButtonEventArgs e)
 {
     SearchTB.Focusable  = true;
     SearchTB.CaretIndex = SearchTB.CaretIndex;
     SearchTB.Focus();
 }
예제 #5
0
        // call it with: string repeatPassword = PromptDialog.Prompt("Repeat password", "Password confirm", inputType: PromptDialog.InputType.Password)

        // SedResult ret = SedWindow.Prompt();
        void SedWindow_Loaded(object sender, RoutedEventArgs e)
        {
            SearchTB.Focus();
        }