+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / how user controls communicate to each other

how user controls communicate to each other

4 posts, 0 answered
  1. Stephen
    Stephen avatar
    70 posts
    Registered:
    09 Jun 2009
    10 Mar 2011
    Link to this post
    I created a sitefinity page and drag two user controls on it. I just need to know how I can approach from usercontrol2 to a variable from usercontrol1? The findcontrol method seems not working. If you can provide some simple code, it would be great. Thank you.

    Stephen
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Mar 2011
    Link to this post
    Hi Stephen,

    You can pass/read the data using QueryString, session or cookies.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Omar
    Omar avatar
    11 posts
    Registered:
    23 Mar 2011
    28 Mar 2011
    Link to this post
    Hi Stephen and Telerik team,
    There is no other way to communicate between controls? i'm migrating one of our sites to SF, this site has a heavy load and we use server.transfer to use context to communicate parameters between pages. Change this behavior to use "Session" instead "httpcontext" may could have some impact in the performance because probably i have to use an SQL as repository.

    Thanks!
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Mar 2011
    Link to this post
    Hi,

    I do not think that server.transfer will work, since we work with dynamic pages.

    Regards,
    Ivan Dimitrov
    the Telerik team
Register for webinar
4 posts, 0 answered