I have three master pages in my projects. I would like to allocate each master page to each role(Admin, ValidUsers, nativeUsers). how can i do it plz any one explain me.
View Complete Post
Now I am using Form authentication for my website.
It is something like that below. But if I left the website without using it for quite some time and when I used it back, it is redirected to the login page.
The one I want to know is that it is because of session expire or cookies expire. And if it is session expired, I want to show the alert box and redirect to the login page. And one more thing is that if the user keeps on using the website, I want to extend the session expire time. If you do not mind, I want to have some references for this scenario. Thank you so much.
I have developed an asp.net project with
asp.net membership for login.
I have login control in a page and for that
I have set the property destination URL to a particular page say
It is also working fine, when I use to
login from home page.
But if i navigate to different pages of my
website say first to home page, contact us page, about us page etc. Then after
that when I click on login page and key up the login information in the login
I use to redirect to the last page which I
have visited the last. It is not redirecting to the destination page which I
have set in the login control.
What's the problem here?
Plz help me with the above issue.
Thanx in advance.
FileUpload works OK on my local site. When I moved my web application to a web host server, I tested to upload a file with this application, It's OK to upload file to the server before login. But after login, the FileUpload kept redirecting to login page without uploading. Any help? Thanks!
How would I go about to solve this:
When the user clicks a button and the user has been inactive for too long (session is gone), then redirect the user to the login page and back to the current page after logging in?
Is there a built in solution to this or do I have to do it manually? If so, how?
any body knows how to redirect to particular page in the url after login in C# ?
1) the home page is www.google.com/login.aspx it is login protected
2) in this application i have another page(post.aspx) www.google.com/post.aspx?a=25&b=35;
the user try to enter the 2nd line of the link, if the session is not valid it will automatically redirect to the first link, after enter the login id and pwd it should go directly to to the 2nd line of the link how?
expect the answer from masters.........
In logout link's click event i have written Session.Abandon() that will destroy the Session state.I am also handling Session_End event that is fired afterward (written in Global.asax). But one more thing i want is that after Session ends, login page should be redirected (opened).
For that i wrote:
Protected Sub logOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles logOut.Click
This is working fine on the surface, but after applying debugging i saw that there were unexpected number of calls to Session_Start and Session_End events for two times, then login page was opened.
Why Session_Start and Session_End was called two times ? If i left this process as it is working then may i get some serious error in future ?
I've been searching and trying to get this now for hours, so i though i'd come here.
For my website, there will be an admin site. I want to create users in my website database, i have a logins table with a hashed password column. The problem i have is making sure that every request if not already logged in send the user to the login page.
I have a page Login.aspx which i have created, but if i enter http://website/admin/news.aspx it bypasses the login screen and shows the page!!
Does anyone know how i can do this? i have created Login.aspx myself and verified that the username and password enetered are correct.
I have design form layouts for signup and login pages
Please provide me the step by step code for sign up and login pages using c# with validation.
waiting for urgent reply
I am doing my first project in .net and i have doubts with the creartion of the login page. I have writteh the code..But i am not able to acess from the data base based on the username and password enteres.
Can someone help me on this please?
}bool boolReturnValue = false;string str ="Data Source=.;Initial Catalog=AgileTool;Integrated Security=True";