Security :: Re-direct Particular Page After Login?

Sep 28, 2010

how to redirect to particular page after login. I have login,EDetails,home page..

1.If the user login very first time(suppose he does not have any personal details) he should be directed to EDetails.aspx

2.User who submitted the personal details already should be redirected home.aspx page.

I have 2 tables later i will add more,1.login table,2.employee detailed table.I am using Login control for login page

I am using Version ASP.Net3.5 with MySql database, Code where i am redirecting in login page

Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login1.Authenticate
If YourValidationFunction(Login1.UserName, Login1.Password) Then
Login1.Visible = False
Session("UserName") = Login1.UserName
Response.Redirect("EDetails.aspx", True)
Else
e.Authenticated = False
End If
End Sub

View 5 Replies


Similar Messages:

Security :: How To Direct User When Login By Roles

Jan 27, 2011

How to Direct Users to specific Page By roles?

View 10 Replies

Security :: Prevent Direct Access To Embedded Page?

Oct 15, 2010

Im using an aspx page as the srcl for an image in the host page to serve a dynamically generated image to the user based on parameters they supply

ie

<img alt="" src="generateimage.aspx" id="imagegen"/></div>

Id like for people only to access the content via default.aspx and not the dynamically generated content generateimage.aspx. Any attempt to browse here directly should be redirected to an error page

View 1 Replies

Security :: Re-direct Logged In Users To Another Web Page In Visual Studio?

Apr 1, 2010

In the web.config file i have put some code in so that when users log in they will be re-directed to another part of the website which only registered users can access. for the admin part only the admin can log in and it takes him to the admin section and that works fine. it is only this that is causing me problems.

the code i inserted for which the user needs to be diverted to is:

<location path ="UserLoggedInFindUs.aspx">
<system.web>
<authorization>
<deny users ="?"/>

[Code]....

View 11 Replies

Security :: Direct Access To The Page Using Role & Membership Provider?

Feb 15, 2011

I have a web app developed using role & membership provider...

this is my web.config file

<authentication mode="Forms">
<forms loginUrl="Forms/LogIn.aspx" name=".ASPXFORMSAUTH" defaultUrl="Forms/main.aspx" timeout="30"></forms>
</authentication>[code]....

So i would like that the page "pag1.aspx" is reached bypassing the "main.aspx" so If I try to digit directly on the server http://localhost/forms/pag1.aspx?C=159 ......correctly appears the login page....and the URL became..

http://localhost/Forms/LogIn.aspx?ReturnUrl=%2fForms%2fpag1.aspx%3fC%3d151&C=159 and after login I can see correctly the page1.aspx . when I try to reach the page from my browser..I digit

http://myserver/forms/pag1.aspx?C=159 .... the login page appears...but the url became..

http://myserver/Forms/main.aspx

and after login I cannot see the page1.aspx....but main.aspx

View 1 Replies

Security :: After Login To New Page And Moving Back To Login Page And Getting Resource Not Available

Jan 11, 2011

I am using Visual Studio 2008 Express and created a login page using the ASP.net web site Adminstration tool security to generate users and passwords.

After login, a new page appears. I have a button to go back to the login page to allow a user to relogin. When I try loging in again as a different user or the same, I get an error saying the resource that I am looing for was not available.

I have a button on the page after login (one this one page will occur) and I am using on on click event to do the following:

FormsAuthentication.Initialize()
FormsAuthentication.SignOut()
Response.Redirect("~/Login.Aspx")

After clicking on this button, the Login page appears again. How can I release everyting to allow it to work like when I first open the application.

This is the error message I get:

Description:
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /MyFirstSite/default.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

Server Error in '/MyFirstSite' Application.

The resource cannot be found.

View 4 Replies

Security :: Login Sql Statement / Tier Project A That Required A Login Page>

Jan 11, 2011

i doing on a 3 tier project a that required a login page, Im not sure how the flow go for the 3 tier...This is my BLL

[Code]....

This is my DAL

[Code]....

And lastly here is the aspx page

[Code]....

When i try to insert my NRIC and password, it's like not passing through the statement, it just say login sucessfully eventhough i put the wrong NRIC/Password/Not valid..

View 3 Replies

Security :: Catch A Failed Login Attempt (Windows Auth) And Redirect To A Forms Login Page?

May 26, 2010

I need to create an application with Forms Authentication and/or Windows Authentication. If the application is set to use mixed authentication (Forms + Windows Auth) and the user don't have a Windows user account, the login will fail and he must be redirected to a forms login page. How can I do this?

Are there any different way to provide mixed authentication?

View 1 Replies

Security :: Make Login.aspx Called By A Form At Page Load And Return To It After Successful Login

Apr 12, 2010

A Login.aspx has been created to enforce security on several forms of a web site.How can it be best called by each form at page load and return to that form after succesful login? How could that requirement be declared in web.config?

View 3 Replies

Security :: Cannot Login And Always Remain In Login Page

Mar 11, 2010

In debug mode in VS 2008, the login page can go to the default page.

But now when deployed to IIS in windows 7, the login page cannot go to the default page and remain in login page after login.

I don't know why there is different behavior between these two.

In web config,

<authentication mode="Forms">
<forms name="FormsAuthDB.AspxAuth" defaultUrl="~/Default.aspx" loginUrl="~/Login.aspx" protection="All" timeout="20" path="/"/>
</authentication>

View 1 Replies

Security :: Denying Direct URL Access?

Jun 28, 2010

I need to restrict access to pages based on permission given to roles based user .Roles created dynamically so that i can't restrict thru the WEB config file .i am using the custom sitemap so menu is showns correctly based on roles , but if we enter direct url in address bar we can access that page although its not permitted for the user .is there any other way to redirect to common access restrict page .

View 3 Replies

Security :: Used Security In Login Page Which Restricts All Users Who Have Not Logged In To All Pages?

Jun 23, 2010

i used security in login page which restricts all users who have not logged in to all pages. I need to restrict specific users to specific pages. I'm not using AspSqlService provider. So i cannot create roles and restrict automatically. And the pictures i use in login page are not visible @ runtime.

View 1 Replies

Security :: Deny Pages From Direct Access?

Dec 28, 2010

I have certain pages in my application that are designed to be accessed only by redirect from other pages, and not directly(i.e they must get a query string from other page, otherwise there is an exception).

So I want to prevent users from accessing them by typing the URL, but I want them to be available by redirect.

View 1 Replies

Security :: Restrict Pages Direct URL Access?

Mar 17, 2010

I have a security issue in my web application where user can enter malicious data/can change the page path directory. To avoid these i want to restrict the user by accessing/typing in the URL.

View 5 Replies

Security :: Disallow Direct Access To Files?

Aug 19, 2010

Here is my dilema, on my site i have a WordPress Audio player (http://wpaudioplayer.com/standalone) that plays my mp3's.

It loads the Mp3's in by javascript...example below:

AudioPlayer.embed("audioplayer_7", { soundFile: "/Files/Music/[name of file].mp3" });

This file name is clearly visible in the browser source. Not a problem, however this means that any user can legitimately browse to the file directly and download it.

Now i still need the mp3 player (which is flash) to have access to the file but if a user was to try accessing the file directly, they would not be allowed access to it.

I am not sure how to go about this, i am circling the idea of a httphandler but not sure if this is sufficiant to stop the direct access to the file.

View 2 Replies

Security :: Show Image With Direct Path?

Nov 22, 2010

I am trying to put SSL on my website.

My problem is that my site dynamically loads different images and CSS from other URL's. These URL's are also hosted on my dedicated server.

To avoid the popup on the sicure site (ssl) that there are some not sicure elements on the page, I would like to make a direct path to the images (d:inetpubanothersite.comwwwrootimagesmyimage.jpg) instead of <img src = "http://www.anothersite.com"

View 2 Replies

Security :: Redirect To Main.aspx After Successful Login Attempt In Login.aspx Page

Apr 25, 2010

I'm trying to develop a simple web application where I need to redirect to main.aspx after successful login attempt in login.aspx page.However,it is redirecting the page to defualt.aspx... Is there a way to redirect my application to main.aspx??

View 3 Replies

Security :: Login Form Rejecting Valid Login With Forms Based Security And Membership Service

Jan 21, 2010

I've set up a system with forms based authentication and using the asp:Login control. When I put in an invalid password I get the approriate invalid password message. However when I put in a valid password, it does nothing...just returns to the login page again. I'm triple checked the login info. There is no error message, and the invalid attempts counter doesn't increment. When I put a break point in the Login_LoggedIn event of the Login form, it hits it, but User.Identity.IsAuthenticated is false. I'm not 100% sure it should be true at this point, as I'm pretty new to .NET but it seems kind of odd.

My user database is stored in a sqlserver 2005 db that already existed. I've added a new connection for it.In the authorization I have

<authorization>deny
users="?"/><authorization>

View 2 Replies

Security :: Preventing Direct Access To Non .aspx Pages In Protected Folder?

May 24, 2010

In one of my website I need to prevent direct access to non .aspx pages in a protected folder. Authentication works fine if I am going to [URL] but in one case my users are uploading html pages in that folder and if somebody cut and paste [URL]the page can be seen without the authentication process to be activated.

View 6 Replies

Security :: Redirecting Users From Forgot Password Page To Login Page?

Feb 7, 2011

I have created a forgot password page with a PasswordRecovery control in it.

<asp:PasswordRecovery ID="PasswordRecovery1" runat="server"
BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="0.8em" Height="210px"
onsendingmail="PasswordRecovery1_SendingMail" Width="491px">

I want to redirect the user back to the login.aspx page once the user clicks the Forgot Password button.

View 2 Replies

Security :: Login Page For Whole Application With Master Page?

Apr 1, 2011

I have searched hours but fail to solve my problem. I have got the following issue,

I have created a login page on my web based application, which works fine, I want if user manually types different page or bypass the login page then it should redirect to the login page.

The problem is I have use Master Page and when I do the following code; it went into the loop, because when page load the session value is null.

How I can exclude my login.aspx and Error.aspx pages from this Check.

[Code]....

View 2 Replies

Security :: Create Registration Page And Login Page

Aug 22, 2010

I have design form layouts for signup and login pages

provide me the step by step code for sign up and login pages using c# with validation.

View 1 Replies

Security :: Go To A New Page After Login?

Aug 11, 2010

1. Should I have a default.aspx page if everyone who goes into the site has to have a valid login & password? I tried creating a default.aspx page that was just a login page but got an error that I had to have a login.aspx page.

2. Is it possible to direct the user to a new page after logging in, based on their role?

3. Will the page correxpond to the page for the first listed role for a user if they have more than one role?

4. I have several roles, each with a different access to pages on the site and each with a different home page (dashboard). How can I set up the site so that I don't have to have multiple copies of the same pages? I have put <deny users="*" in the web.config but, once logged in, will everyone be able to access any page in the root directory of my site? I can control which pages are available by adding or deleting links to pages in each user's home page.

View 8 Replies

Security :: Login Page In Mvc Using Linq To Sql

Jan 22, 2010

I am trying to create for Login page with registration page with specified fields in mvc using linq to sql. Only the registered users should access the login.

View 2 Replies

Security - How To Create A Login Page Using C#

Jul 1, 2010

As the title says, if I'm using SQL parameters, ie

SQLCommand cmd = new SQLCommand("select * from users where username = @user and password = @pass limit 1", Cxn);

cmd.Parameters.Add("@user", SqlDbType.VarChar):
cmd.Parameters.Add("@pass", SqlDbType.VarChar):

Can I just enter the parameters value as the direct entry from the input?

cmd.Parameters["@user"].value = txtBxUserName.text;
cmd.Parameters["@pass"].value = txtBxPassword.text;

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved