Web Design Forums

Other Languages

Get help with any programming languages other than the ones above.

ASP or .NET help please



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old November 4 '08, 02:36 AM (#1)
Johnny G 69 is offline
WDF Member
 
Johnny G 69's Avatar
 
Join Date: November 2008
Posts: 65
Johnny G 69 is an unknown quantity at this point
ASP or .NET help please

Hi there, I have recently been designing a website for me and my friends and i am wondering if i am able to make passwords and accounts for each of us on the website or to restrict certian pages without a password..I'm pretty sure this is an ASP and .NET issue but I am extremely unfamiliar to these and would like so help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4 '08, 05:54 AM (#2)
bfsog is offline
Coder
 
bfsog's Avatar
 
Join Date: May 2003
Location: UK
Posts: 2,354
bfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to behold
Send a message via MSN to bfsog
Sorry I do not follow

Quote:
i am wondering if i am able to make passwords and accounts
slightly contradicts

Quote:
restrict certian pages without a password
Can you clarify what you want to achieve?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4 '08, 12:19 PM (#3)
Johnny G 69 is offline
WDF Member
 
Johnny G 69's Avatar
 
Join Date: November 2008
Posts: 65
Johnny G 69 is an unknown quantity at this point
oh yes sorry, i didnt proof read that.. basically what i want to acheive is having a login system similar to like what this site has, across the top have a name and password then they can log in to the site and access other pages that normal visitors wouldnt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4 '08, 12:27 PM (#4)
bfsog is offline
Coder
 
bfsog's Avatar
 
Join Date: May 2003
Location: UK
Posts: 2,354
bfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to behold
Send a message via MSN to bfsog
Do you have any experience with ASP.NET and any Database system?

I wrote a simple script for a friend a while back which uses an SQL Server 2005 table for authentication, you could use that.

Or, if your host does not have an SQL Server database, I modified that script to authenticate against values in an array.

Choosing which route to go down is really up to you. Maintencance wise (adding/deleting users) you should opt for the Database version.

Let us know what your host supports.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4 '08, 12:39 PM (#5)
Johnny G 69 is offline
WDF Member
 
Johnny G 69's Avatar
 
Join Date: November 2008
Posts: 65
Johnny G 69 is an unknown quantity at this point
ok the site is hosted through powerpipe.. i have the basic service from them which according to their services chart supports everything except My SQL..And to answer your question i have absolutely no experience with any of this infact this website i have designed i have just taught myself everything http://www.undisputedforceclan.com
if you want to check it out i bet it needs lots of work and people have plenty of suggestions and this problem at hand is one of the suggestions i recieved
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 4 '08, 03:16 PM (#6)
bfsog is offline
Coder
 
bfsog's Avatar
 
Join Date: May 2003
Location: UK
Posts: 2,354
bfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to beholdbfsog is a splendid one to behold
Send a message via MSN to bfsog
Okay, I am not familar with Powerpipe.

If you can ask your host or confirm if you have an ASP.NET enabled host and that your host has an SQL Server database setup.

If you were to opt for the version which uses arrays then you would only need an ASP.NET enabled host.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 10 '08, 06:06 PM (#7)
matth76 is offline
WDF Member
 
matth76's Avatar
 
Join Date: November 2008
Location: West Sussex
Posts: 22
matth76 is an unknown quantity at this point
A small database would be my answer which then puts the user details into a session or cookie so it retains it throughout the site that way you are not looking up data in the database on each page. You could then use a session lookup page and use it as an include file for restricted pages and on this page do a session lookup and if the session is not found redirect the un-authorised visitor to the login page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 6 '09, 06:09 PM (#8)
zingmatter is offline
WDF Member
 
zingmatter's Avatar
 
Join Date: June 2005
Location: Glasgow
Posts: 84
zingmatter is on a distinguished road
If you're using .net and have a SQL Server database then the best thing to do is use the built in .net membership API - it's secure and has prebuilt log in, log out, password reset and the rest.

Worth looking into (plenty online to read around if you google it).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 13 '10, 06:04 AM (#9)
jamesparker100 is offline
Account Closed
 
jamesparker100's Avatar
 
Join Date: March 2010
Posts: 14
jamesparker100 is an unknown quantity at this point
Yes you can make login and password for asp.net web application. Also you can restrict the pages with without the password. This can be handle with Session, as server side state management. You need to login once after then you store that variable in session and compare the dedicated pages if (Session["username"]=="James") then disable certain options over the menu.

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 13 '10, 05:28 PM (#10)
zingmatter is offline
WDF Member
 
zingmatter's Avatar
 
Join Date: June 2005
Location: Glasgow
Posts: 84
zingmatter is on a distinguished road
With .Net membership, if you keep role specific pages in distinct directories then you can use a web.config file in each directory to control access rather than relying on sessions to enforce security.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » Other Languages

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime ASP Includes (Implementation) Shadowfiend Other Languages 2 August 16 '05 10:26 PM
ASP .Net --> PHP echoSwe PHP 4 November 6 '04 06:12 AM
Need an asp host hoda For Sale / Advertising 0 October 2 '04 06:19 PM
Need an asp host bfsog Server Administration Help 1 August 23 '04 07:34 PM
ASP home based servers? DanielGibbs Other Languages 5 June 11 '04 09:10 PM

 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 01:56 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164