That would be fine, the issue I am having is passing (or retrieving) the value from the nested gridview.
Main Topics
Browse All Topicsok, I am pretty close to what I want but just missing that last little bit. Basically, I have an image button in a nested gridview and I want to do an update statement when that button is hit. The values that will be passed are going to be a session variable and the current date and time. They will be passed into the record corresponding to the current row in the nested gridview.
My plan is to have the Modal panel act as the confirm and when the user selects OK, the update will fire.
Make sense?
Ok, here is what I have so far in the code behind.
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.
Imports System.Web.UI.HtmlControls
Imports System.Data.SqlClient
Partial Public Class sdb_Default
Inherits BasePage
Protected Sub gvCustomers_RowCreated(ByV
If e.Row.RowType = DataControlRowType.DataRow
Dim ctrl As SqlDataSource = TryCast(e.Row.FindControl(
If ctrl IsNot Nothing AndAlso e.Row.DataItem IsNot Nothing Then
ctrl.SelectParameters("SDB
End If
End If
End Sub
Private Shared ReadOnly conString As String
Private sID As String
Private vby As Int16 = Session("USERID")
Shared Sub New()
conString = WebConfigurationManager.Co
End Sub
Protected Sub btnVerifyComponent_Click(B
Dim gvOrders As GridView = CType(gvCustomers.Rows(0).
Dim con As New SqlConnection(conString)
Dim cmd As New SqlCommand("UPDATE SDB_COMPONENT SET VERIFY_BY = @verby, DATE_VERIFY = GETDATE() WHERE SERNO = @serNO")
Dim SerialNo As String
For Each row As GridViewRow In gvOrders.Rows
Dim iSN As Label = CType(row.FindControl("lab
SerialNo = iSN.Text.ToString
Next
cmd.CommandType = CommandType.Text
cmd.Parameters.AddWithValu
cmd.Parameters.AddWithValu
End Sub
End Class
And the page:
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks to your suggestion, I solved the problem!
I changed the image button to have a command argument and the code behind to receive the command arguments from the image button. Then I just put the confirmButtonExtender on the button.
Here is the code in case anyone else needs it.
I gave you the points since that put me on the right track.
Thanks!
c
Business Accounts
Answer for Membership
by: srivatsavayePosted on 2008-04-29 at 08:15:31ID: 21463058
why not use a plain javascript confirm dialog box?