Solved

Create Session in xaml page.

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

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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