Ejemplo n.º 1
0
 private void getdanwei()
 {
     TextBox2.DataSource    = data.GetDataReader("select distinct code from  wfshengqing where IsChk='否' ");
     TextBox2.DataTextField = "code";
     //TextBox2.DataValueField = "id";
     TextBox2.DataBind();
 }
Ejemplo n.º 2
0
    protected void Password_type(String val)
    {
        String text = "";

        TextBox2.TextMode = TextBoxMode.SingleLine;
        TextBox2.Text    += val;
        TextBox2.DataBind();
        text = TextBox2.Text;
        TextBox2.TextMode = TextBoxMode.Password;
        TextBox2.Attributes.Add("value", text);
    }