Solved

Create Session in xaml page.

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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