Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...
- string loginstatus = null;
- string userrole = words(0);
- string[] words = myClient.Split(".");
- if (Information.IsNumeric(words(0)))
- {
- string userID = words(1);
- if (userrole == "1")
- {
- NavigationService.Cookies("logincookie").Value = userID;
- NavigationService.Navigate(new Uri("/myprofile.xaml?ID=" + userID, UriKind.Relative));
- }
- else if ((userrole == "2" | userrole == "3" | userrole == "0"))
- {
- login_lblerror.Text = "Please Login via Website (HEA, Alumni and Admin)";
- }
- else
- {
- login_lblerror.Text = loginstatus;
- }
- }
- else
- {
- login_lblerror.Text = loginstatus;
- }
- }
- //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement