473,545 Members | 529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Membership Services Question?

I want to create an Internet application that will be accessed by several
pre-registered companies. All of those companies will be accessing the same
database and the same application but each one of them will only access the
records that belong to their company. Another complication is that not all
user of a company will access all the forms or data of her company.

For example let's suppose that the web application is call Web1 and will be
accessed by Company1 and Company2. Web1 have 2 Web Forms WForm1 and WForm2.
Company1 have two users User1 and User2. Company2 also have two users named
User3 and User4.

User1 and User3 will be able to open WForm1 and WFrom2 but users User2 and
User4 only will access WForm1. WForm1 and WForm2 are forms containing
updatable grids. They get their data from Table1 and Table2 respectively.
When a user opens any of the web form she will be able to modify and read
only the information contained in the corresponding table and only the
records corresponding to the company that the user belongs to. Any
suggestion about how to write this kind of application taking advantage of
the Membership Services in ASP.NET 2.0?
Nov 19 '05 #1
2 1382
Artificer,

Instead of confusing things by giving access to different pages based on
user name, try putting all the form information for each type of user into a
panel. Then just hide the panel based on which user it is.

You could even store which panel numbers should be show per user type in the
database.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"artificer" <ar*******@veri zon.net.do> wrote in message
news:l7******** ************@co detel.net.do...
I want to create an Internet application that will be accessed by several
pre-registered companies. All of those companies will be accessing the
same
database and the same application but each one of them will only access
the
records that belong to their company. Another complication is that not all
user of a company will access all the forms or data of her company.

For example let's suppose that the web application is call Web1 and will
be
accessed by Company1 and Company2. Web1 have 2 Web Forms WForm1 and
WForm2.
Company1 have two users User1 and User2. Company2 also have two users
named
User3 and User4.

User1 and User3 will be able to open WForm1 and WFrom2 but users User2 and
User4 only will access WForm1. WForm1 and WForm2 are forms containing
updatable grids. They get their data from Table1 and Table2 respectively.
When a user opens any of the web form she will be able to modify and read
only the information contained in the corresponding table and only the
records corresponding to the company that the user belongs to. Any
suggestion about how to write this kind of application taking advantage of
the Membership Services in ASP.NET 2.0?

Nov 19 '05 #2
Actually I am learning the use of the panel control is a carry over and
there are newer controls and methodologies that may prove better or are
better to use.

Considering the design of the application will change significantly once
Profiles, Membership and Roles are learned I would say its too early to
recommend which control to use.

For example, using Roles allow us to control which controls are rendered,
enabled, and so on. No panel required, and in many instances less code when
controls need to be referenced too.

IMO the most important response I can offer is to explain the design and
development of applications developed using ASP.NET 2.0 can require a
somewhat different approach than 1.1 or earlier. Furthermore, there are many
new features in SQL Server 2005 that can and will also affect the design of
2.0 applications

I would suggest first delving into the study of Roles and then returning to
the study and mastery of Profiles, Membership and SQL Server 2005 which I
contend will be the efficient way to get started on the right foot.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee. com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate. com> wrote in
message news:eq******** ********@TK2MSF TNGP10.phx.gbl. ..
Artificer,

Instead of confusing things by giving access to different pages based on
user name, try putting all the form information for each type of user into
a panel. Then just hide the panel based on which user it is.

You could even store which panel numbers should be show per user type in
the database.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"artificer" <ar*******@veri zon.net.do> wrote in message
news:l7******** ************@co detel.net.do...
I want to create an Internet application that will be accessed by several
pre-registered companies. All of those companies will be accessing the
same
database and the same application but each one of them will only access
the
records that belong to their company. Another complication is that not
all
user of a company will access all the forms or data of her company.

For example let's suppose that the web application is call Web1 and will
be
accessed by Company1 and Company2. Web1 have 2 Web Forms WForm1 and
WForm2.
Company1 have two users User1 and User2. Company2 also have two users
named
User3 and User4.

User1 and User3 will be able to open WForm1 and WFrom2 but users User2
and
User4 only will access WForm1. WForm1 and WForm2 are forms containing
updatable grids. They get their data from Table1 and Table2 respectively.
When a user opens any of the web form she will be able to modify and read
only the information contained in the corresponding table and only the
records corresponding to the company that the user belongs to. Any
suggestion about how to write this kind of application taking advantage
of
the Membership Services in ASP.NET 2.0?


Nov 19 '05 #3

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

Similar topics

5
2020
by: Vishal Gupta | last post by:
Hi This is Vishal this side.I have been trying to create a new sample website using the new Membership Provider Class. Now when I try to a create a new website and then hit on the Website Administrator Tool and then hit on Security I get this error "There is a problem with your selected data store. This can be caused by an invalid...
0
899
by: Sean | last post by:
Here is where I am very confused how this works even conceptually. I am building an ASP.NET application and a Windows Application both consume data from the same webservice. That part is in my domain of knowedge. Membership is fairly new to me and what I want is for the web service database to maintain membership and logins which will come...
0
6229
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc for this MS Access db. Well, microsoft offers a download sample. Instructions are below. HOW TO USE MS ACCESS DB FOR ASPNET APPLICATION...
3
1923
by: GaryDean | last post by:
I have serveral applications now running that are using the MembershipProvider classes and they are each using their own security tables in SQL Server 2005 instead of the express databases - they are all work well. Now we have a need to have many different asp.net websites and web services use a single security database because they all...
1
2366
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with...
1
2996
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with...
3
1780
by: dm3281 | last post by:
Hello -- I need to write an ASP.NET 2.0 application for our clients to use to login and verify file transmissions. Each client will need their own logon, in addition to a way to assign each user a unique customerid. All users beloning to the same custeromid would see the same information on the website. Can I easily do this using...
4
1470
by: Nathan Sokalski | last post by:
Does anybody know of any good books that are specifically on ASP.NET Membership and the Login controls? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
8
3737
by: Nick | last post by:
Hi there, Membership.GetNumberOfUsersOnline() works great the first time, then jumps up to the number of users registered in the system. I have tried enumerating through each user individually and checking IsOnline which done likewise, first result was 4, then 22 every time after that and it's only be debugging locally using VS. Either...
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.