Checking if a session exists
hi,
i new silverlight , used create basic sites in asp.net. in asp.net remember used check on page load whether there open session. if available, allow user access particular page, otherwise redirect him login page.
the code similar this:
1 protected sub page_load(byval sender as object, byval e as system.eventargs) handles me.load 2 try 3 if not ispostback then 4 if session("userid") = nothing then 5 response.redirect="test.aspx" 6 end if 7 catch ex as exception 8 end try 9 end sub
can tell me how possible in silverlight? using vb.net code behind silverlight.
thanks
also, if not using ria services, can perform authentication using wcf , asp.net application services. here link, in c#, illustrates must authenticate user:
http://silverlight.net/learn/applications/adventureops/
thanks,
ron kanagy
Silverlight > Programming Silverlight with .NET – General
Comments
Post a Comment