Hi,
I have following code in my ASCX control file..
Text='<%# Eval("Cat_Name") %>' NavigateUrl='<%# string.Format("~/Coupons-Specials-Deals/Michigan/{0}.aspx",Eval("Cat_Name").ToString().Replace(" & ","-")) %>'/>
Text='<%# Eval("SubCat_Name")%>' NavigateUrl='<%# string.Format("~/Coupons-Specials-Deals/Michigan/{0}.aspx",Eval("SubCat_Name").ToString().Replace(" & ","-")) %>' />
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
Replies
Know the answer? Post it — somebody with the same question will find it here.