10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
saifullah khan
1.7k
335
281.4k
statemanager is not saving userid after deploing the website
Mar 12 2014 3:42 AM
Hi everyone!
i have developed an asp.net application. in my login page(asp.net memebership) i have assigned the userrole to statemnager. here is the code in my login page
if (!User_Exist1(StateManager.UserId))
{
e.Authenticated = false;
return;
}
else
{
e.Authenticated = true;
var CurrentCompany = string.Join(",", Roles.GetRolesForUser(CurrentUser.ToString()));
StateManager.UserRole = CurrentCompany.ToString();
Response.Redirect("Default.aspx");
}
For testing purpose i have assigned the StateManager.UserRole to a label in my default.aspx page
Label8.Text = StateManager.UserRole.ToString();in my un deployed version this is working fine. but when i deploy it. i does not work.
Can somebody please tell me whats wrong
thanks in advance
Reply
Answers (
0
)
latitude and longitude
Highlight Datarow in gridview