Sqldatasource onupdating event
Within that detailsview I have 2 dropdown lists bound from a different datasource.On update I want the text and value of each drop down list to store into the database.
The command executes successfully and I can pull the data back to confirm that the parameter was set correctly. If I manually define a default value or manually enter a value in the update statement it works fine, but if I try to set it through a command it does not work. To String();" Which I have tested and confirmed it is in fact returning "3". The problem is: when I retrieve data using Grid View. Grid View Command Event Args) Handles gv Autorizzazioni. Command Name = "Crea Autorizz") Then Dim str Per Insert As String = "" Dim index As Integer = Convert. Command Argument) Dim row As Grid View Row = gv Autorizzazioni. Protected Sub gv Autorizzazioni_Row Command(By Val sender As Object, By Val e As System. So I have my Gridview with Data Source set to a Data Table on page Load event : In the Click event of the button I want to retrieve current values of the controls, as displayed on Web page after user's actions, and pass them to my sp as a comma-separated string. Is Null Or Empty(str Add) = False Then str Per Insert = str Per Insert & str Add & "," '..so on to add values to string What to do to retrieve edited values? Find Control, I only get unedited values, those initially displayed from database, not the actual values displayed on screen. Rows(index) Dim str Add As String = "" str Add = (CType(row. Sql Data Source is intended for databinding to controls on a Web Form.It's way overkill for what you're doing, particularly when you're trying to do it manually.