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
Add a label in your page and set the Text property of label to the value returned by the method.
label
Text
value
returned
And than in code behind do like this
userExists.Text = MemberDB.searchusername(UNameTxtBox.Text);