473,403 Members | 2,354 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,403 software developers and data experts.

WebParts Question

I have an INTRAnet site that need to add some content management
feature. And I thought that I can use the WebParts.

Since this is an internal site, I use Windows authentication so the use
don't have to logon. But for authorization, I uses an EXISTING
corporate database (nothing to do with aspnet_Membership etc.). In
short, I created GenericIdentity and GenericPrincipal for the
application so the security part works well.

Now my trouble is how can I integrate WebParts personalization.
Following are something with the EXISTING db.
1. Applications table - It contains all application the company
developed. Not just web applications.
2. Users table - User information with the NT login as the ID.
3. ApplicationUsers (AppID, UserID) - Users who can use the
application. (Not exactly but I made up this way for simple
illustration)

My Question is how can I do the WebParts Personalization.

Any suggestion?

Thanks

John

Dec 8 '06 #1
3 1452
You can just inherit the MembershipProvider class and then override the methods
you need. For those methods that you do not need or plan to use throw a
NotSupportedException. As far as the Personalization you can use the ASP stuff
right out of the box. To create a SQLMembershipProvider see aspnet_regsql.exe
utility then just use the pieces you need.
Imports Microsoft.VisualBasic
Imports System.Web.Security

Public Class YourNewMembershipProvider : Inherits MembershipProvider

Public Overrides Function GetNumberOfUsersOnline() As Integer
Throw New NotSupportedException
End Function

Public Overrides Function ValidateUser(ByVal username As String, ByVal
password As String) As Boolean
'Your Validation Code Here.

End Function
End Class
On 8 Dec 2006 14:31:54 -0800, "Q. John Chen" <qj****@email.comwrote:
>I have an INTRAnet site that need to add some content management
feature. And I thought that I can use the WebParts.

Since this is an internal site, I use Windows authentication so the use
don't have to logon. But for authorization, I uses an EXISTING
corporate database (nothing to do with aspnet_Membership etc.). In
short, I created GenericIdentity and GenericPrincipal for the
application so the security part works well.

Now my trouble is how can I integrate WebParts personalization.
Following are something with the EXISTING db.
1. Applications table - It contains all application the company
developed. Not just web applications.
2. Users table - User information with the NT login as the ID.
3. ApplicationUsers (AppID, UserID) - Users who can use the
application. (Not exactly but I made up this way for simple
illustration)

My Question is how can I do the WebParts Personalization.

Any suggestion?

Thanks

John
Dec 8 '06 #2
I am using Windows Authentication. All the membership stuff is out of
the context.

Let me have another question. Can I do webParts personalization with
Windows Authentication?

Thanks

John

Jay Pondy wrote:
You can just inherit the MembershipProvider class and then override the methods
you need. For those methods that you do not need or plan to use throw a
NotSupportedException. As far as the Personalization you can use the ASP stuff
right out of the box. To create a SQLMembershipProvider see aspnet_regsql.exe
utility then just use the pieces you need.
Imports Microsoft.VisualBasic
Imports System.Web.Security

Public Class YourNewMembershipProvider : Inherits MembershipProvider

Public Overrides Function GetNumberOfUsersOnline() As Integer
Throw New NotSupportedException
End Function

Public Overrides Function ValidateUser(ByVal username As String, ByVal
password As String) As Boolean
'Your Validation Code Here.

End Function
End Class
On 8 Dec 2006 14:31:54 -0800, "Q. John Chen" <qj****@email.comwrote:
I have an INTRAnet site that need to add some content management
feature. And I thought that I can use the WebParts.

Since this is an internal site, I use Windows authentication so the use
don't have to logon. But for authorization, I uses an EXISTING
corporate database (nothing to do with aspnet_Membership etc.). In
short, I created GenericIdentity and GenericPrincipal for the
application so the security part works well.

Now my trouble is how can I integrate WebParts personalization.
Following are something with the EXISTING db.
1. Applications table - It contains all application the company
developed. Not just web applications.
2. Users table - User information with the NT login as the ID.
3. ApplicationUsers (AppID, UserID) - Users who can use the
application. (Not exactly but I made up this way for simple
illustration)

My Question is how can I do the WebParts Personalization.

Any suggestion?

Thanks

John
Dec 10 '06 #3
I should do some test before I post previous one.

Yes, I can do WebParts Personalization using Windows Authentication. It
will still create set of aspnet_ tables except there is no data in
membership. It will create an entry in aspnet_Users with my NT login as
the UserName.

Now I have another issue:
I also use AJAX extension and as long as there is a ScriptManager.
The page alway crashes when I (as the user) try to personalize the page
(e.g. Minimizing the part from the manual) even the personalized info
is saved. Any clue on this?

Thanks

John
Q. John Chen wrote:
I am using Windows Authentication. All the membership stuff is out of
the context.

Let me have another question. Can I do webParts personalization with
Windows Authentication?

Thanks

John

Jay Pondy wrote:
You can just inherit the MembershipProvider class and then override the methods
you need. For those methods that you do not need or plan to use throw a
NotSupportedException. As far as the Personalization you can use the ASP stuff
right out of the box. To create a SQLMembershipProvider see aspnet_regsql.exe
utility then just use the pieces you need.
Imports Microsoft.VisualBasic
Imports System.Web.Security

Public Class YourNewMembershipProvider : Inherits MembershipProvider

Public Overrides Function GetNumberOfUsersOnline() As Integer
Throw New NotSupportedException
End Function

Public Overrides Function ValidateUser(ByVal username As String, ByVal
password As String) As Boolean
'Your Validation Code Here.

End Function
End Class
On 8 Dec 2006 14:31:54 -0800, "Q. John Chen" <qj****@email.comwrote:
>I have an INTRAnet site that need to add some content management
>feature. And I thought that I can use the WebParts.
>
>Since this is an internal site, I use Windows authentication so the use
>don't have to logon. But for authorization, I uses an EXISTING
>corporate database (nothing to do with aspnet_Membership etc.). In
>short, I created GenericIdentity and GenericPrincipal for the
>application so the security part works well.
>
>Now my trouble is how can I integrate WebParts personalization.
>Following are something with the EXISTING db.
>1. Applications table - It contains all application the company
>developed. Not just web applications.
>2. Users table - User information with the NT login as the ID.
>3. ApplicationUsers (AppID, UserID) - Users who can use the
>application. (Not exactly but I made up this way for simple
>illustration)
>
>My Question is how can I do the WebParts Personalization.
>
>Any suggestion?
>
>Thanks
>
>John
Dec 11 '06 #4

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

Similar topics

1
by: Astera | last post by:
I seem to be having a problem using web parts after the beta 2 release. Any time I try to have the WebPartManager on any page, I get the exception listed below. I've gone through the steps listed...
0
by: dotnetstevo | last post by:
I have a question relating to WebParts implementation - I am trying to build a web part as a user control that can be used to manage content in a CMS. I have read a lot about the creation of web...
0
by: needin4mation | last post by:
never used WebParts and had a question. If I have three webparts on my asp.net form. And I use Atlas with them, do the different webparts act independently or will running them in succession...
0
by: arthernan | last post by:
I am trying to get a sense of what has been the webparts adoption. And maybe my question may not be the best indicator of this. In anycase, we at our company have an application that relies on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
0
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
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
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,...

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.