Marchello2004
Technical User
Hi
This is really bugging me now...
I'm trying to get this opened in a pop up using the following code...
<asp:HyperLinkField HeaderText="Popup" Text="View" NavigateUrl="javascript:window.open('teaching.aspx?Staff_ID={0}',,'width=640 height=500');" />
But this won’t do a thing. Staff_ID is not even picking up the right data from the link.
This is what the original link code looks like but obviously without the popup effect...
<asp:HyperLinkField DataNavigateUrlFields="Staff_ID" DataNavigateUrlFormatString="teaching.aspx?Staff_ID={0}" HeaderText="Details" Text="View" />
Adding DataNavigateUrlFields="Staff_ID" to the popup code will send me to the completely wrong address
Any ideas where I’m going wrong here?
This is really bugging me now...
I'm trying to get this opened in a pop up using the following code...
<asp:HyperLinkField HeaderText="Popup" Text="View" NavigateUrl="javascript:window.open('teaching.aspx?Staff_ID={0}',,'width=640 height=500');" />
But this won’t do a thing. Staff_ID is not even picking up the right data from the link.
This is what the original link code looks like but obviously without the popup effect...
<asp:HyperLinkField DataNavigateUrlFields="Staff_ID" DataNavigateUrlFormatString="teaching.aspx?Staff_ID={0}" HeaderText="Details" Text="View" />
Adding DataNavigateUrlFields="Staff_ID" to the popup code will send me to the completely wrong address
Any ideas where I’m going wrong here?