473,387 Members | 1,650 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,387 software developers and data experts.

add user name wia web.config??

I think I can do this but can't seem to get it to work.

Can I add a few lines to my web.config to allow username ABC to login with
password QWERTYU$$ and role Administrator?

I'm using authentication mode="Forms"

Thanks
Nov 4 '08 #1
2 3779
On 4 Nov, 19:40, "AAaron123" <aaaron...@roadrunner.comwrote:
I think I can do this but can't seem to get it to work.

Can I add a few lines to my web.config to allow username ABC to login with
password QWERTYU$$ and *role Administrator?

I'm using authentication mode="Forms"

Thanks
Try the following

<authentication mode="Forms">
<credentials passwordFormat="clear">
<user name="ABC"
password="QWERTY$$$$"/>
</credentials>
</authentication>
Nov 5 '08 #2

"Ilyas" <il***@igsoftwaresolutions.co.ukwrote in message
news:e7**********************************@c2g2000p ra.googlegroups.com...
On 4 Nov, 19:40, "AAaron123" <aaaron...@roadrunner.comwrote:
I think I can do this but can't seem to get it to work.

Can I add a few lines to my web.config to allow username ABC to login with
password QWERTYU$$ and role Administrator?

I'm using authentication mode="Forms"

Thanks
Above, I should have written:
I think I should be able to do this...
Try the following

<authentication mode="Forms">
<credentials passwordFormat="clear">
<user name="ABC"
password="QWERTY$$$$"/>
</credentials>
</authentication>

authentication mode required the forms tag so I left the one I had:
<forms loginUrl="Login\Login Etc.aspx" protection="Validation" timeout="300"
>
<credentials passwordFormat="Clear" >

<user name="ABC" password="QWERTY$$$$"/>
</credentials>

But this did not let me log in.

Also, what do I do about setting the role for ABC?


Nov 5 '08 #3

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

Similar topics

5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
4
by: Nick | last post by:
I'm developing an intranet app, and want to get the current user name for logging purposes. I've turned off anonymous access, and turned on windows authentication in the IIS config. The apps...
11
by: Jason Shohet | last post by:
How can I get the current logged in user on the computer? We're all Active Directory here -- Netbios is not turned on however. I need to get the name the user logged in as, when he started up...
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...
0
by: Nenad Dobrilovic | last post by:
Hi all, I have a really strange situation, but I believe that there is someone else who has already experinced the same, and is willing to help me! I made an application using VS 2005 in C#,...
3
by: gordon | last post by:
Hi I am looking to store some details about a user's configuration choices, in particular the place where they have installed some data files, the OS that they use, and their Windows user name. ...
1
by: Matt F | last post by:
Two of the projects in my solution that both need to use a common user.config file. This is a data application - the executable that is created with the first project is the primary executable...
2
by: antonyliu2002 | last post by:
I am testing ASP.NET 2.0 Forms athentication with user credentials in SQL Server 2005. I don't want to put user credentials in web.config, so the credentials section is commented out. The...
0
by: silpa | last post by:
Hi, I am doing a sample VS 2008 project. I have added a dbml file.On the designer,I have dragged a table "emp" from a database "Employee" which is in my server(for example Server1). It...
3
by: Piotrekk | last post by:
Hi I have a problem connected with user.config file. I am using default settings.settings . To settings.settings I am adding one user scope string and one application scope string. Thus...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.