c# - Manually fetch values from asp.net control -


I have a FormView control with two text boxes. Data source control is a ObjectDataSource

I want to get the two text boxes for these values, a user Create an object and pass it Objektdeta source, in which an input method that accepts a user object

I think I would do it

  safety Objektdeta source Ughrrt Insrting (object sender, Objektdetasorsav Ntargs e) {// string _ussernam = form Viuuuaiaderdayfl? // string_password = form VUUder details? User User = New User {UserName = _userName, Password = _password}; E.InputParameters.Add (user); }  

Thank you

If you control in the form, you

  TextBox myTextBox = (TextBox) can use MyFormView.Row.FindControl ( "controlID");  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -