What you are doing looks very familiar, I think I tried that and failed but
never really understood why. What I ended up doing was writing my own
function to return the entire url. Here is my working code:
<ItemTemplate >
<asp:HyperLin k Runat=server NavigateUrl='<% #
GetTicketDetail sUrl((int)DataB inder.Eval(Cont ainer.DataItem, "OutageID") ) %>'
ID="HyperlinkTi cketNumber" CssClass="Ticke tNumber"><%#
DataBinder.Eval (Container.Data Item, "TicketNumb er") %>
</asp:HyperLink>
</ItemTemplate>
OutageID is the title of the column in my DataSet that contains the unique
ID of my entry.
and then in my code behind I have the GetTicketDetail sUrl function:
protected string GetTicketDetail sUrl(int outageID)
{
return "javascript
:mWi n('" + webServerRootUr l + "Details.aspx?I D=" +
outageID.ToStri ng() + "', null,
'height=500,wid th=500,top=100, status=yes,tool bar=no,menubar= no,location=no, resizable=yes,s crollbars=yes') ";
}
I use javascript in the url because when they click on the link they get a
pop-up type window, but you could easily modify it so that it returns your
url:
return "~/EditItem.aspx?I D=" + outageID.toStri ng();
Hope that helps,
- Chase
"MasterChie f" wrote:
Thanks for the response. I do have a unique ID for each record. I am
having problems linking though. I could do it fine in ASP but can't
figure it out really in .NET. I chaged the Select button to a template
and made a postback to the edit page. Now in the .aspx code I feel like
I should be adding something but I can't figure out what. What I
thought it might look like is
PostBackUrl="~/EditItem.aspx<% eval('plan_id') %>"
but that doesn't work. Any help would be appreciated.