Return a value from sql

前端 未结 2 1962
遥遥无期
遥遥无期 2021-01-26 04:24

Im trying move my sql connection to a method in a class file and return a value to check if the username existing in the db and display as text in the page to show others that t

2条回答
  •  死守一世寂寞
    2021-01-26 04:58

    Add a label in your page and set the Text property of label to the value returned by the method.

    
    

    And than in code behind do like this

    userExists.Text = MemberDB.searchusername(UNameTxtBox.Text);
    

提交回复
热议问题