troubleshooting Question

How to use Repeater Control and Session variable to pass value from page to page

Avatar of fosiul01
fosiul01Flag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingASP.NET
3 Comments1 Solution2034 ViewsLast Modified:
Hi, Currently i am using repeater to show all the data from database. and when some one will click on data it will take to anohter page by using query string.

but is there any way to use Session with repeater control ?? ( i dont want to use query string for exposing data)
here currently i am using this code :

<asp:Repeater ID="Repeater2" runat="server" DataSourceID="ObjectDataSource2">
<li><a href="showknowledgecategory.aspx?Id=<%# DataBinder.Eval (Container.DataItem, "catid") %>"><%#DataBinder.Eval(Container.DataItem, "cat_Name")%></a></li>

Thanks for advise

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros