Solved

Create Session in xaml page.

Posted on 2011-02-14
5
1,111 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 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