W
Wayne Wengert
I am using a Gridview in an ASP.NET 2.0 (VB) application. In a hyperlink
template column I want to build a url wich includes passing a couple of
query strings that I need to populate dynamically.
When that code is as shown here - it works fine:
======================
NavigateUrl=
<%#"javascript:javascriptpenWindow('ViewNominationText.aspx?id=4', 600,
400 ,0 ,0 ,0 ,0 ,0 ,1 ,10 ,10 );" %>
text="View">
======================
When I change the code to:
======================
NavigateUrl=
<%#"javascript:javascriptpenWindow('ViewNominationText.aspx?id=" +
DataBinder.Eval(Container.DataItem, "id")', 600, 400 ,0 ,0 ,0 ,0 ,0 ,1 ,10
,10 );" %>
text="View">
==============================
VWD 2005 flags the line with the error "')' expected" ?
Something about the DataBinderEval process seems to be triggering the error
and I cannot see the problem. Any thoughts will be much appreciated!
Wayne
template column I want to build a url wich includes passing a couple of
query strings that I need to populate dynamically.
When that code is as shown here - it works fine:
======================
NavigateUrl=
<%#"javascript:javascriptpenWindow('ViewNominationText.aspx?id=4', 600,
400 ,0 ,0 ,0 ,0 ,0 ,1 ,10 ,10 );" %>
text="View">
======================
When I change the code to:
======================
NavigateUrl=
<%#"javascript:javascriptpenWindow('ViewNominationText.aspx?id=" +
DataBinder.Eval(Container.DataItem, "id")', 600, 400 ,0 ,0 ,0 ,0 ,0 ,1 ,10
,10 );" %>
text="View">
==============================
VWD 2005 flags the line with the error "')' expected" ?
Something about the DataBinderEval process seems to be triggering the error
and I cannot see the problem. Any thoughts will be much appreciated!
Wayne