Detailsview itemupdating findcontrol

New Page Index Bind Data() End Sub I guess something might be getting messy with the mode changing event... But if i remove the databinding code, i get an error!

Everything seems to be working until I get the update. Command Text = "SELECT Person ID FROM tbl Link Person Scheme WHERE Link Person Scheme ID = " & v ID & "" Dim dr4 As Sql Data Reader = cmd4. Read() Dim v Person ID As Integer v Person ID = dr4.

State Private Sub Bind Data() str SQL = "Select * from v Projects" cnn = New Sql Connection(strconnection) Try cnn.

Close() End If End Try End Sub Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load Bind Data() End Sub Protected Sub Form View1_Mode Changing(By Val sender As Object, By Val e As System.

Hi While working with Details View control I have come up with few resources when you want to perform update to the data within Details View using buttons out side of Details View control.

Here is the source code to update all the columns in Details View with edited data.

Find Control("txt Planned Start Date") Dim Actual Start Date Textbox As Text Box = Form View1.

Find Control("txt Actual End Date") Dim remarks Textbox As Text Box = Form View1. To String Dim p Amount As Decimal = CDec(planned Textbox. To String) Dim a Amount As Decimal = CDec(approved Textbox.

Find Control("txtremarks") Dim fyvote Textbox As Text Box = Form View1.

And insert_reg is a stored procedure made in backend.

Which is described below Allow paging should be true.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “detailsview itemupdating findcontrol”