.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

Basic Website Login

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net
 

Hi,

I am working on a Uni project and have created an ASP.Net (VB.net) 2010 website. I used the build-in website template which comes with home and About pages. This template also has login pages built-in. I tried using the login and it let's you create your own login and then use that login. My questions are:

1. I don't want the user to be able to create their own login and password and then use this information. I rather create this myself as the system admin and provide it to the users.

2. All my pages are 'unlocked'. How do I lock them so that a login is required before users are able to see any of the pages? In other means, first page shold be the login page and then once user has logged in, they can select anything from the menu bar. I am almost done with the project and this is the last thing left to do. All my aspx files are directly in the project folder. Built-in login pages are in the Account folder (created by the initial setup).

This is my first project so if I am doing something wrong, please let me know.

Thank you for any help.




View Complete Post


More Related Resource Links

Login database with visual studio 2010 asp website template

  

Has anyone deployed a website using the login database in the visual studio 2010 asp website template? I was wondering if I could look at someone's example to see how the integrated this into their website.


Posting data to a website (HTTPS) from a Desktop Application in Visual Basic (.Net 3.5 or .Net 4.0)

  
Hello everyone, I'm trying to create a desktop application that will update my IPv4 address to an IPv6 Tunnel broker.  I have the app running up to the point where it sends the data to the website, and then I get exceptions.  I'd like someone to take a look at my code, and tell me what I've got wrong (if anything).  Here's the code that I have (the only portion that is filled in is for Hurricane Electric) Dim strUsername As String = txtUsername.Text.ToString 'User Id supplied by the User. Dim strPassword As String = txtPassword.Text.ToString 'Password supplied by the User. Dim strPasswordHash As String = "" ' this will be created from the hashing of the password supplied by the user. Dim strTunnelID As String = txtGlobalTunnelId.Text.ToString 'Global Tunnel ID (He.net and ) Dim strUrl As String = "" ' Place holder for the URL Which will be provided after the password is hashed and specified by the tunnel broker. Dim strTunnelBroker As String = cbxTunnelBroker.SelectedItem 'Sets the Tunnel Broker to the user specified one. Dim wc As New WebClient() 'Allows for posting data to the server 'holds the server response. Dim strData As String = "" 'Provides the data for the form. Dim result As String = "" Select Case strTunnelBroker Case

>>> Open a Popup window on Successful Login if something new added to website.

  
Hi, I would like to open a Popup window in Parallel if user Login successfully. The popup will give updates to the user that what's new added to the website. The popup will open only once if user login. If he logout and will re-login then it should not popup as we'll assume that he has been notified earlier. I have users table with user id's. It is for information that I am working in Framework 2.0 and not allowed to use any third party or AjaxToolkit. Therefore javascript or any other technique will resolve the issue. Any idea with coding example would be helpful.

basic assemblies required to run a basic ASP.NET 4.0 website

  
Hi,   I am trying to figure out what are the basic assemblies required to run a basic ASP.NET 4.0 website. Say.. a website with just a label in it. I looked online and didn't find a list there. I know installing the framework 4.0 will give me all the dlls but I just need the basic ones that will make a basic site work on ASP.NET 4.0.   Thanks!

basic assemblies required to run a basic ASP.NET 4.0 website

  
  Hi,   I am trying to figure out what are the basic assemblies required to run a basic ASP.NET 4.0 website. Say.. a website with just a label in it. I looked online and didn't find a list there. I know installing the framework 4.0 will give me all the dlls but I just need the basic ones that will make a basic site work on ASP.NET 4.0.   Thanks!

Basic assemblies required to run a basic ASP.NET 4.0 website

  
Hi, I am trying to figure out what are the basic assemblies required to run a basic ASP.NET 4.0 website. Say.. a website with just a label in it. I looked online and didn't find a list there. I know installing the framework 4.0 will give me all the dlls but I just need the basic ones that will make a basic site work on ASP.NET 4.0. Thanks!

Can I have an SQL Express database open in VS2010E along with the website? "Login failed for user ..

  
Hi, as the topic says..Whenever I have my database open in Visual Studio 2010 Express, I get this error:Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.

how to get user name in window login and show in our website

  

if any one login how to get user name and show in our web page

and how to get location of client side (Physically Ex-India -Delhi-Anand Vihar)


Login from another domain to my website

  

Hello every one and thanks in advance any help is much appreciated.

I have a small website that uses the asp login control and now i want to allow a user login from another website that i have. The problem is the other website is only html not aspx and i'm not sure how to write the form to login. here is the login i'm currently using:

  <asp:Login ID="Login1" runat="server" onauthenticate="Login1_Authenticate" Width="235px">
                                    <LayoutTemplate>
                                        <table border="0" cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                                            <tr>
                                                <td>
                                                    <table border="0" cellpadding="0">
                                                        <tr>
                                                            <td align="center" colspan="2">
                                                                Customer Login</td>
                                                        </tr>
                                                        <

Password protecting entire website (that already has a login feature)?

  

Hello.

I have a website that's still in development however I've placed it up onto our new domain name to allow a few others to see what's going on with the site development.

I want to prevent anyone else from coming in to see the site just yet however, so I want to have the site redirect to a login whenever you try to hit any page within the site.  Here's the problem though....my website already has it's own login included as part of the website in order for a member to get to their account info.  So I essentially want 2 separate logins: 1 just to see the site and a 2nd one as part of my overall website user account details section.  My concern is if I develop this new login to block users to see the site, my other login may experience issues.

How can I create this login to protect my entire site while still in development and yet keep login credentials separate from my actual website's login feature?  Or even better yet, is there some 3rd party tool I can implement to do this for me?

Thanks.


unable to login into website on iis 6.0

  

I have created a website that uses the default aspnetdb.mdf database for membership and I have a login control on my index.aspx page. I have restricted access to certain pages through using roles and it all works fine. But when I deploy the website to my iis site that uses the C:\Inetpub\wwwroot i am simply unable to login. It does not come up with an error it just says my username or password were unsuccessful. I cannot find why it is not working. I believe iis is configured correctly, and I have made sure all my application names are correct as per scott guthrie's blog on the subject. My site still implements an authentication system because i cannot type in a page in the url that is restricted, its just that i cannot login myself.

 Any help would be very much appreciated i am struggling with this.

 Thanks in advance

 Callum

p.s if there is any part of my web config or anything that you need me to post please tell me.


Can't login to website from Visual Studio 2010

  

I created a local copy of my website, so I could work on it in Visual Studio 2010. I am using a SQL membership provider that is running on discountAsp.net's SQL Server 2008 R2. The website works fine online, but when I run the website from Visual Studio, I can't log in. It's strange because if I open up my website in Visual Studio I can still use my admin pages to add and delete users, view users info, change passwords, etc., but I just can't get authenticated. This just makes it hard to test my pages that are restricted to certain users and roles.

 

Anybody know what this might be? Thanks in advance.


ASP.NET Website Login

  

Hi All,

   I am using the Login Object with ASPNETDB. Very strangely, a user account will no longer be allowed to login. It returns an error message that the "login attempt was not successful". If I recreate the account in the database, it will work again. Any ideas what is going on? Looks like the user account gets corrupted.

 

Thank you in advance,


Restrict login access to website from specific machine

  

Not sure if this is the correct forum section but I need to restrict access to my website by physical PC.  When a user signs up I want to be able to restrict access to one machine for that account so it cannot be shared round, if, for example, somebody else in the same office wanted to access the system on their PC they would need a seperate sign in.

I have done some investigation and I "think" the only way is installing an ActiveX component (which isn't an issue that is restricts to IE only) and then read the users MAC address.  Am I trying to over complicate things or is that the only way?  I realise that MACS can be spoofed but this is not much of an issue.

Thanks


Login problem with multi website on a server.

  

I write 2 websites and deloy on a server, they're difference folder. A problem when I login on a website, then open 2nd site I see login cookie still keep in 2nd site. My system: Window server 2003, .Net 2.0, IIS. 

Login code:

FormsAuthentication.SetAuthCookie(dataUserName.Text, true);   
Response.Redirect("~/Admin/default.aspx"); 

Webconfig:

<authentication mode="Forms" >
<forms loginUrl="~/Login.aspx" timeout="2880"/>
</authentication> 


Creating Website for app causes login authenticaiton not to work

  

I have an ASP.NET application that uses the security created by an aspnetdb database.   The application works OK when it is running under the default web of IIS.   But I am working with my Network group and we are trying to create a simpler url for the application.  The network group asked that I create a Website for the application.  I did this in IIS 6.0 and I have the website point at the folder where the application resides.   But now the login dialog does not work right.  When I try to login using the new Website that application gives off an message that the password or login is incorrect.  This seems to be a configuration problem with the new website.  Perhaps that authentication database does not match the application name correctly.   How can I configure this new website so that the login dialog works OK.  It still works when I run the application from the old web located under the Default Web Site.  Any suggestions.

Thanks in advance,  Ed

 


Login no longer working on ASP.NET website

  

Hi there,

I recently discovered that I can no longer login to the admin area of the website I created. I'm definitely using the correct login details and haven't changed anything on the website or server that I can think of recently for it to stop working.

What is happening is that when I try to login it successfully redirects to the correct page in the admin area, but then kicks me out straight away as if I don't have permission to view the page?

Hopefully someone can help! Bit of a strange one.

Thanks,

Steven.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend