これに戻って最初からやり直す必要があります...ログインしているユーザーに基づいてViewModelを介してコンボボックスに値をロードしたいです。FAを使用しています。これが最良の方法ですか?ViewModelから直接Cookieにアクセスできますか?
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1,
user,
DateTime.Now,
DateTime.Now.AddDays(30),
false,
"Role One",
FormsAuthentication.FormsCookiePath);
// Encrypt the ticket.
string encTicket = FormsAuthentication.Encrypt(ticket);
// Create the cookie.
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName,
encTicket));
// Show the Silverlight control
Response.Redirect("Default.aspx");