Solved

Create Session in xaml page.

Posted on 2011-02-14
5
1,107 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can my static class become undefined?? 8 62
Where did System.Data.Objects go? 2 40
vb.net 1 month apart 11 35
location of a form 2 24
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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…

790 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