Tag Archives: DynamicHyperLink

[RESOLVED] Add link to report on Details.aspx

<asp:FormView runat="server" ID="FormView1" DataSourceID="DetailsDataSource" OnItemDeleted="FormView1_ItemDeleted" RenderOuterTable="false">
                    <table id="detailsTable" class="DDDetailsTable" cellpadding="6">
                        <asp:DynamicEntity runat="server" />
                        <tr class="td">
                            <td colspan="2">
                                <asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit" />
                                <asp:LinkButton runat="server" CommandName="Delete" Text="Delete"
                                    OnClientClick='return confirm("Are you sure you want to delete this item?");' />
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/RptArcs.aspx?ContentShtNum={0}">Report</asp:HyperLink>

Could you give a little more information?  What is your question?



First can't I just vent about how frustrating it is when you post from one forum and it gets posted in another forum. I was in the Dynamic Data forum when I posted this. I must be missing the field that lets you specify what forum to post the thread in.

I'm using DYNAMIC DATA \ Entity Framework and I want to add a link to the Details.aspx page which uses the ID passed (in this case the field: ContentShtNum) to access a report for that id\record.

have you tried to do this

<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# string.Format("~/RptArcs.aspx?ContentShtNum={0}", Eval("ContentShtNum"))%>'>Report</asp:HyperLink>

Thank you perper, That works! A happy ending on a Friday afternoon - love it!

glad to hear it help you..happy weekend.. please mark the appropriate post as answer that helped you..