Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridView
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
GridView
Miscellaneous
Thread ID:
01170002
Message ID:
01170002
Views:
52
Hi All,

In my GridView I have a field that I converted to a Template Field. In EditItemTemplate I added a link button (lbDocumentDate) and trying to add some Java Script to it. I addedd the following code to the Grid View RowEditing event:
Dim myLinkButton As LinkButton
myLinkButton = grvFinanceReviewChecklist.Rows(e.NewEditIndex).Cells(5).FindControl("lbDocumentDate")
myLinkButton.Attributes.Add("onclick", "some java")
This code failes because lbDocumentDate is not found. Does anyone know why ?

Thanks,
Daniel
Reply
Map
View

Click here to load this message in the networking platform