More in this section

Forums / Developing with Sitefinity / passing object data between user controls?

passing object data between user controls?

2 posts, 0 answered
  1. Jome Akpoduado
    Jome Akpoduado avatar
    16 posts
    07 Jan 2010
    17 Jan 2010
    Link to this post
    Is there a way to pass object data between posts in Sitefinity. Let's say I create an object in a user control and I want to consume its member data in another control, how would I go about this without using query strings?
    I tried using Session variables to pass the data, but it seems the variable get lost at the target page.
    Please please, any help would be appreciated.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    17 Jan 2010
    Link to this post
    Hi Jome Akpoduado,

    The session should work for your case. Another option is using cookie, QueryStrings or finding the control from your previous page and reading someone of its properties where you keep your data. The last one will result in page performance.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered