944,118 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1808
  • ASP.NET RSS
Dec 6th, 2006
0

Help with hyperlinking repeater to datagrid on same page

Expand Post »
I have a Repeater control (myrepeater) and a datagrid both bound to the same datasource:

dgMaster.DataSource = GetAuthors()
dgMaster.DataBind()
myRepeater.DataSource = GetAuthors()
myRepeater.DataBind()

Here is how it is setup in the repeater:
<asp:Repeater id="myRepeater" runat="server">
<HeaderTemplate>
<tr>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="30%"></td>
<td><%# Container.DataItem("firstdate") %></td>
<td width="30%"><asp:HyperLink ID="Hyperlink1" Runat="server" NavigateUrl='<%# "AMAuxMeetings.aspx?Seconddate=" & Server.UrlEncode(Container.DataItem("firstdate")) %>'>1</asp:HyperLink></td>
</tr>

</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:Repeater>

I tried to hypelink the Hyperlink1 in Repeater to the datagird:

<asp:datagrid id="dgMaster" runat="server" Width="100%" ShowFooter="False" HorizontalAlign="Center"
ShowHeader="false" autogeneratecolumns="False" GridLines="None">
<FooterStyle Font-Size="12pt" Font-Bold="True" HorizontalAlign="Left"></FooterStyle>
<ItemStyle VerticalAlign="Top"></ItemStyle>
<HeaderStyle Font-Size="14pt" Font-Bold="True"></HeaderStyle>
<Columns>
<asp:TemplateColumn HeaderText="Meeting Details">
<ItemTemplate>
<FONT size="2"><b>
<%# DataBinder.Eval(Container.DataItem, "firstdate") %>
</b></FONT>

I am totally confused about how to do that. Please help me
Last edited by sougataroy; Dec 6th, 2006 at 3:06 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sougataroy is offline Offline
1 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Forum?
Next Thread in ASP.NET Forum Timeline: connection string





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC