1
Answer

logout if the user is in idle state for some time

gopal kannan

gopal kannan

11y
1.4k
1
hi..

i am using silverlight web application with wcf service..
here when a user logged in  and keep idle for 10 minutes..
now here if the user is keep idle for 10 minutes then i need to logout automatically..
how to achieve this in silverlight with wcf service..
need ur suggestions with examples..


regards
gopal.s
Answers (1)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
You can get a string array containing the 6 attribute values using LINQ to XML as follows:

using System.Linq;
using System.Xml.Linq;
using System.IO;

// ...

XElement root = XElement.Load("maha.xml");
string[] values = root.Element("Serial").Element("Current").Attributes().Select(a => 
a.Value).ToArray();

You should find that:

values[0] will contain : 11 March 2011
values[1] will contain : 10 Rabi-Ul-Awal 1434

and so on.

It's then just a matter of assigning the appropriate values to your textblocks.