protected void register_btn_Click(object sender, EventArgs e) { String UserName, Password; error_lbl.Text = ""; TorrentService.MyTorrentServiceSoapClient serverHandler = new TorrentService.MyTorrentServiceSoapClient(); UserName = username_txt.Text.Trim(); Password = password_txt.Text.Trim(); // clean fields: username_txt.Text = ""; password_txt.Text = ""; if (serverHandler.checkUser(UserName, Password, "Register") == 0) { serverHandler.manageUserList(UserName, Password, 0, "New User"); error_lbl.Text = "Welcome to Torrent SK!"; } else { error_lbl.Text = "User allready exists"; } }
protected void delete_btn_Click(object sender, EventArgs e) { //MyServiceReference.MyServiceSoapClient serverHandler = new MyServiceReference.MyServiceSoapClient(); serverHandler.manageUserList(" ", " ", selectedId, "Delete"); GridView1.DataBind(); }