TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rupa
NA
1
1.8k
Accessing data field from outer repeater, Nested Repeater
Jan 29 2013 5:39 PM
Hi,
I have following code in my ASCX control file..
<div>
<ul>
<asp:Repeater ID="outerRep" runat="server" OnItemDataBound="outerRep_ItemDataBound">
<ItemTemplate>
<li>
<asp:HyperLink Font-Size="Large" Font-Bold="true" ID="lblCategoryName" runat="server"
Text='<%# Eval("Cat_Name") %>' NavigateUrl='<%# string.Format("~/Coupons-Specials-Deals/Michigan/{0}.aspx",Eval("Cat_Name").ToString().Replace(" & ","-")) %>'/>
</li>
<ul>
<asp:Repeater ID="innerRep" runat="server" >
<ItemTemplate>
<li style="background-color: AliceBlue">
<asp:HyperLink ID="hlSubCatName" runat="server"
Text='<%# Eval("SubCat_Name")%>' NavigateUrl='<%# string.Format("~/Coupons-Specials-Deals/Michigan/{0}.aspx",Eval("SubCat_Name").ToString().Replace(" & ","-")) %>' />
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
I want to generate URL as below, When i click on subcategory:-
~/Coupons-Specials-Deals/Michigan/CategoryName/SubCategoryName.aspx
But when i am writting Eval("Cat_Name") inside , InnerRep its giving me an error
Can anyone please suggest me solution on this?
Thanks!
Reply Quote Delete
Reply
Answers (
0
)
how to store textboxes value in dataset every button press
Searching anywhere within list