This note also posted in AJAX Control Toolkit...
After much hassling and reloading AJAX and VWD 2005 Express, I'm
back to having everything loaded correctly...I thought. I'm trying to
build an example from a book and the .cs has the following code for a
ConfirmButtonExtender example:
protected void gvItemsOnRowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
((ConfirmButtonExtender)e.Row.FindControl("ConfirmButtonExtender2")).TargetID =
((LinkButton)e.Row.FindControl("btnDelete")).ID;
}
}
When I build the page I get an error in VWD saying:
'ConfirmButtonExtender' does not contain a definition for 'TargetID'
If
I go to the .aspx page and go into source view I can add the 'TargetID'
field from Intellisense but I can't address that field from the .cs
page. I'm assuming there is a config issue with VWD. How do I fix
this?
Thanks in advance