protected void Btn_registration_Click(object sender, EventArgs e) { string usrName = TxtBox_usrName.Text; string usrScdName = TxtBox_usrScdName.Text; string usrLogin = TxtBox_usrLogin.Text; string pass = TxtBox_pass2.Text; string sessionId = (string)Session["myValue"]; server = new AgregatorServerSoapClient(); int result = server.UserRegistration(sessionId, usrName, usrScdName, pass, usrLogin); if (result == 200) { Uri baseurl = new Uri("http://localhost/CollOfDishClient/"); Uri newurl = new Uri(baseurl, "(S(" + sessionId + "))/Default"); Response.Redirect(newurl.ToString()); } else { Lbl_warning.Text = "Зарегистрироваться не удалось"; Lbl_warning.Visible = true; } }