473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

User name and password to activate buttons and hyperlinks on website

I would like to add a password and user name to my website. If the
username and password is correct than activate the hyperlinks and
buttons.

Could you please share some code how how to achieve this? I have
several buttons and links on my home page and do not want it to be
active until the user enters the correct password.

Using ASP.NET with Visual Studio 2005.

Oct 12 '07 #1
4 1772
On Oct 12, 11:59 am, jonny <nelso...@hotmail.comwrote:
I would like to add a password and user name to my website. If the
username and password is correct than activate the hyperlinks and
buttons.

Could you please share some code how how to achieve this? I have
several buttons and links on my home page and do not want it to be
active until the user enters the correct password.

Using ASP.NET with Visual Studio 2005.
Make your buttons disabled by default, and enable it only when the
username/password are correct.

if (isValidUser)
{
myButton.Enabled = true;
}
else
{
myButton.Enabled = false;
}

Oct 12 '07 #2
On Oct 12, 11:06 am, gnewsgroup <gnewsgr...@gmail.comwrote:
On Oct 12, 11:59 am, jonny <nelso...@hotmail.comwrote:
I would like to add a password and user name to my website. If the
username and password is correct than activate the hyperlinks and
buttons.
Could you please share some code how how to achieve this? I have
several buttons and links on my home page and do not want it to be
active until the user enters the correct password.
Using ASP.NET with Visual Studio 2005.

Make your buttons disabled by default, and enable it only when the
username/password are correct.

if (isValidUser)
{
myButton.Enabled = true;}

else
{
myButton.Enabled = false;

}- Hide quoted text -

- Show quoted text -
Is there a way to disable all the website links until (isValidUser).
(I am using VB.NET)

Oct 12 '07 #3
On Oct 12, 12:10 pm, jonny <nelso...@hotmail.comwrote:
On Oct 12, 11:06 am, gnewsgroup <gnewsgr...@gmail.comwrote:
On Oct 12, 11:59 am, jonny <nelso...@hotmail.comwrote:
I would like to add a password and user name to my website. If the
username and password is correct than activate the hyperlinks and
buttons.
Could you please share some code how how to achieve this? I have
several buttons and links on my home page and do not want it to be
active until the user enters the correct password.
Using ASP.NET with Visual Studio 2005.
Make your buttons disabled by default, and enable it only when the
username/password are correct.
if (isValidUser)
{
myButton.Enabled = true;}
else
{
myButton.Enabled = false;
}- Hide quoted text -
- Show quoted text -

Is there a way to disable all the website links until (isValidUser).
(I am using VB.NET)
Yes, you can. If you don't wanna manually disable each link through
hard-code, you will have to recursively iterate through all controls
in your page, and disable your links.

Search recursive find controls, and you'll get a bunch.

Oct 12 '07 #4
On Oct 12, 12:10 pm, jonny <nelso...@hotmail.comwrote:
On Oct 12, 11:06 am, gnewsgroup <gnewsgr...@gmail.comwrote:
On Oct 12, 11:59 am, jonny <nelso...@hotmail.comwrote:
I would like to add a password and user name to my website. If the
username and password is correct than activate the hyperlinks and
buttons.
Could you please share some code how how to achieve this? I have
several buttons and links on my home page and do not want it to be
active until the user enters the correct password.
Using ASP.NET with Visual Studio 2005.
Make your buttons disabled by default, and enable it only when the
username/password are correct.
if (isValidUser)
{
myButton.Enabled = true;}
else
{
myButton.Enabled = false;
}- Hide quoted text -
- Show quoted text -

Is there a way to disable all the website links until (isValidUser).
(I am using VB.NET)
By the way, I just notice that you want to disable all website
(instead of a single page) links until authentication passes. I
understand that each application is different from the other, but why
do you need to do so?

Oct 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Allan Hugo | last post by:
Not a programmin newbie, but a PHP newbie. I'm working off the user authentication and database thing off hotscripts.com. It doesn't work, yet from what I can see, it should. Maybe I've...
3
by: Maellic | last post by:
Hi, The website I am working on is built with ASP.NET and connects to a SQL Server 2000 database. The web server and database are on the same machine. I have recently tried to modify the timeout...
5
by: Irfan Akram | last post by:
Hi Guys, I've got a simple question for all of you guys. I have just noticed that I have alot of buttons on my screen. Is there any that those buttons be replaced by anything more sophisticated...
1
by: Friends | last post by:
Hi I need to set security for row level but not based on Database user's login. It should be based on the user table login. For the particular user I need to allow only the particular records to...
2
by: dominic.martin | last post by:
Hi, I'm no javascript programmer but I found a really good piece of javascript at http://www.isdntek.com/tagbot/zipzoom.htm that magnifies areas of an image. It's just what I want but their...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
3
by: daokfella | last post by:
I want to be able to store profile information for a user when they sign up for an account...but BEFORE they can log in. Can this be done using any of the built-in profile methods? Here's my...
2
by: dgbergman | last post by:
I have created a php login page in my site for my company. The goal is to get people into members area. Below is a list of steps that I take to create my login page in Dreamweaver CS3, can some one...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.