revstudio
asked on
Adding EVAL to asp:HyperLink NavigateUrl Tag
I want to do this
<asp:HyperLink runat ="server"
NavigateUrl="javascript:va r w=window.open('fbtro.aspx? doff= <%# Eval("lngDoffID") %>','', 'width=625,height=500,scro llbars=0,r esizeable= 0')"
ID="Hyperlink1">
<%# Eval("lngDoffID") %>
</asp:HyperLink>
and NavigateUrl doesn't like the embedded <%# Eval("lngDoffID") %>
If I do this...
NavigateUrl="javascript:va r w=window.open('fbtro.aspx' ,'', 'width=625,height=500,scro llbars=0,r esizeable= 0')"
it will open fbtro.aspx just like I want but with the Eval in there I get a 'server tag not well formed'
I can't figure out how to "form" it ?
Thanks in advance.
<asp:HyperLink runat ="server"
NavigateUrl="javascript:va
ID="Hyperlink1">
<%# Eval("lngDoffID") %>
</asp:HyperLink>
and NavigateUrl doesn't like the embedded <%# Eval("lngDoffID") %>
If I do this...
NavigateUrl="javascript:va
it will open fbtro.aspx just like I want but with the Eval in there I get a 'server tag not well formed'
I can't figure out how to "form" it ?
Thanks in advance.
HI
Bellow Url give some Information
http://www.velocityreviews.com/forums/t107890-asp-hyperlink-databinding.html
Bellow Url give some Information
http://www.velocityreviews.com/forums/t107890-asp-hyperlink-databinding.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<script type="text/javascript">
function showDoffDetails(doffID) {
window.open("fbtro.aspx?do ff=" + doffID, "",
"toolbar=0,width=800,heigh t=600,scol lbars=0,re sizeable=0 ");
}
</script>
<%# Eval("lngDoffID") %>
function showDoffDetails(doffID) {
window.open("fbtro.aspx?do
"toolbar=0,width=800,heigh
}
</script>
<%# Eval("lngDoffID") %>
Maybe you could try something like this:
<asp:HyperLink runat ="server"
NavigateUrl="javascript:va
ID="Hyperlink1">
<%# Eval("lngDoffID") %>
</asp:HyperLink>
It might happen that you have to change a little bit, but something like that could help you.