Advertisement
f0rkB0mb

Noratiqah Basri Chomel's code

Jul 27th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. //...
  2. string loginstatus = null;
  3. string userrole = words(0);
  4. string[] words = myClient.Split(".");
  5.  
  6. if (Information.IsNumeric(words(0)))
  7. {
  8.     string userID = words(1);
  9.  
  10.     if (userrole == "1")
  11.     {
  12.         NavigationService.Cookies("logincookie").Value = userID;
  13.         NavigationService.Navigate(new Uri("/myprofile.xaml?ID=" + userID, UriKind.Relative));
  14.     }
  15.     else if ((userrole == "2" | userrole == "3" | userrole == "0"))
  16.     {
  17.         login_lblerror.Text = "Please Login via Website (HEA, Alumni and Admin)";
  18.     }  
  19.     else
  20.     {
  21.         login_lblerror.Text = loginstatus;
  22.     }
  23. }
  24. else
  25. {
  26.     login_lblerror.Text = loginstatus;
  27. }
  28. }
  29. //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement