How to use FormView in my webForm ?
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
hi i want using FormView in my webForm, for update my Data, but when i load data into my FormView and click Update linkButton, nothing occured(nothing postBack occured). how to use FormView for update data ?
-
well, if u r using VS.NET 2005 u can do it in a very simple way by using an SqlDataSource object. You can configure the SqlDataSource object by appropriately selecting the server name, the database and the table u want to add the data. Then it automatically generates the SELECT,INSERT,UPDATE,DELETE statements or u can use ur own stored Procedures to do them. then drag n drop a formview on to the application and set it's datasource to SqlDataSource. e.g: FormView1.DataSource = SqlDataSource1; FormView1.DataBind();