473,503 Members | 2,313 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 1375
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*******@verizon.net.do> wrote in message
news:l7********************@codetel.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****************@TK2MSFTNGP10.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*******@verizon.net.do> wrote in message
news:l7********************@codetel.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
2014
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...
0
896
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...
0
6226
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 ...
3
1918
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...
1
2365
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...
1
2991
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...
3
1774
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...
4
1467
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
3733
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...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
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
7267
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,...
0
7316
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...
1
6976
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...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
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,...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.