Login    
 
 
 
 
Text/HTML
  
You are here :: Blogs Saturday, May 19, 2012

Search
Note: This uses the internal blog search engine. The Google search engine is also available at the top of the page.
  
Disclaimer

Please review the site disclaimer before downloading or using content found on this site

  
Categories
  
DEVSHED Blog
As always, I welcome your comments!
May 19

Written by: Steve Gray
5/19/2010 1:38 PM  RssIcon

This code example shows how to to respond to a link button placed inside of a VB.NET datagrid template column.

 

 Protected Sub grdLines_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles grdLines.ItemCommand
    Dim strCommandArgument As String = e.CommandArgument
    Dim lblMasterNumber As Label
    If strCommandArgument = "CreatePO" Then
        'get a reference to a control
        lblMasterNumber = CType(e.Item.FindControl("lblMasterNumber"), Label)
        Session("MasterNumber") = lblMasterNumber.Text
    End If
End Sub

Tags:
Categories:
As always, I welcome your comments!
  
 
 
Home | Products | Blogs | Contact Us | Links | God's Plan
Privacy Statement | Terms Of Use
 
Copyright 2011 by Devshed.us