Solved

Create Session in xaml page.

Posted on 2011-02-14
5
1,095 Views
Last Modified: 2013-11-12
Hi Experts,
I am creating dictionary object in xaml.cs. The dictionary values will be used by other xaml's. How to set the session  dictianary in XAML.cs.

Kind regards,
Pooja
0
Comment
Question by:poojasureshkumar
  • 3
5 Comments
 
LVL 6

Expert Comment

by:PJBX
ID: 34893927
Try setting up the session dictionary like:

http://silverlightips.net/2010/01/25/session-in-silverlight/
0
 

Author Comment

by:poojasureshkumar
ID: 34897548
HI PJBX,
I need to create http sessions in XAML page and re use the sesssions variable in other xaml pages.

Kind regards,
Pooja
0
 

Accepted Solution

by:
poojasureshkumar earned 0 total points
ID: 34898413
Hi PJBX,
I think i figured out myself. I created the dictionary in app.xaml.vb and add the keys in xaml1 and acess the values in xaml 2. Right now this is working good to me.Thanks for your time

Kind regards,
Pooja
0
 
LVL 1

Expert Comment

by:amitpatel2005
ID: 34914009
For that thing you dont need to consider session variable becaue silver light is not directly supported session varialbe but you can use app.xaml.cs to store your global variables which can be accessed throughout the application.

Or

You can take one reference valirable as session name and that you can pass from each page as construction and when ever value chagne happen for that variable that would be apply to all relavat current open pages because of same refference.

Thanks,
Amit Patel
0
 

Author Closing Comment

by:poojasureshkumar
ID: 34936418
I created the static dictinary in app.xaml.vb and access the values through other xaml pages..
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now