1-888-365-2779
+1-888-365-2779
Try Now
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
    Registered:
    07 Jan 2010
    17 Jan 2010
    Link to this post
    Hello
    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.

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 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