locked
Insert Data to database Controls RRS feed

  • Question

  • User-829096311 posted

    Is there an easy way to insert data into the database.
    I only know one method to insert data into formviiew ,listview .. etc.
    for Example:

             

                Dim txt As Text = FormView1.FindControl("TextBox1")
                SQLDataSource1.InsertCommand = "INSERT INTO Table01(Counter) VALUES ('" & CInt(txt.Text) +1 & "')"
                SQLDataSource1.Insert()
    ' 😵

    Thank you in advance




    Tuesday, June 9, 2015 6:26 PM

Answers

All replies