Web Forms :: Creating A Personalization Provider?

Mar 8, 2010

I am tring to create a proersonalization provider that retrievs all webparts of a current page, plus, all the webparts that named "MyWebPartGroup".

[Code]....

View 1 Replies


Similar Messages:

Web Forms :: Web Parts - Personalization Provider As Oracle 10g Database

May 12, 2010

I am currently in the process of doing a feasibility study of using web parts in one of our company's intranet portal. The challenge that I am facing is that I would like to use the organization's existing oracle database as the personalization provider instead of aspnetdb sqlexpress database. I tried to looking for some sample code but we could not find any. In the MSDN, I found one article where it is using textfile as a provider, but this does not solve my purpose here. I am new to web parts. Request you to share with me some sample code to achieve this.

I am using Visual studio 2005 and Oracle 10g database.

View 2 Replies

Security :: Creating Membership Provider At Runtime?

Jan 30, 2010

Sometimes MS provides error message so silly that its hard to understnad and you feel like throwing away all things.

My Web.Config does not contain any entries of MemberShip, Role or Profile.

I want to create a membership provider dynamically through code at runtime. I wrote following code and it receives following error message. I don;t know how come machine.config error appears in my application. how annoying.

Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

Source Error:

[Code]....

Source File: C:WindowsMicrosoft.NETFrameworkv2.0.50727Configmachine.config Line: 139

Following is the CODE.

[Code]....

View 22 Replies

Security :: Creating A Custom Membership Data Provider?

Apr 18, 2010

so after a short talk with some people around ASP.NET MVC forum I took a huge step and chose to create my own Custom Membership Data provider.. so I logged into sweet google and started searching , it doesnt look that hard and seems totally possible for me , that's what i thought...

So now I opened visual studio , and started to think on few things .. So before I would start typing code , I would like to ask those questionsSo i would know better

1. when I build an SQL object , or XML or w.e object, how do I know which fields I need for my table ? should i just copy them from aspnetdb or is there somewhere it is written?

2. how the heck do I copy lines from webconfig ? and should I get those lines like "reset password" from web config or not?

3. I saw some parameters in "create User" called providerKey or something like that, and also MembershipState ? what exacly are those ?

4. last question: the functions get username , and password and stuff like that , but what If i want to create my own User Entity , is there a way to change what the function gets ? or should i just make another class that get my custom UserEntity and let the first class to send her the userentity as repository ?

View 1 Replies

Creating A Custom Membership Provider For An MVC2 Site?

Sep 25, 2010

I created a custom membership provider for an MVC2 site.My web.config has this:

<membership defaultProvider="MyProvider">
<providers>
<clear/> [code]....

This value, MembershipService.MinPasswordLength, is zero (0). Obviously, this is coming from my class. I can't have a set because the abstract class has this as a read-only property.Why doesn't the MembershipProvider read this value from the Web.Config? What am I missing?

View 7 Replies

SQL Server :: Creating Offline Cube Fail - Error Running Adodb Provider Cannot Be Found

Jan 14, 2011

This program used to work when I had VWD 2005 express and SQLSERVER 2005 express. Then we upgraded to VWD 2008 express and SQLSERVER 2008 express. Now it fails Error running adodb Provider cannot be found. It may not be properly installed. 3706 To clarify; I used to run variations of the following to create small offline cub files that I could email to remote Users:-

PROVIDER=MSOLAP;
DATASOURCE=C:TESTAMRunAdodbTestMyCube.CUB;
SOURCE_DSN=AMCubeData;
CREATECUBE=CREATE CUBE AMCubeData(
DIMENSION [Channels],
LEVEL [ALL Channels] TYPE ALL,
LEVEL [Channel Group Name],
LEVEL [Channelname],
MEASURE [Sales Val]
Function Sum
Format 'Standard');
INSERTINTO=INSERT INTO AMCubeData(
[Channels].[Channel Group Name],
[Channels].[Channelname],
MEASURES.[Sales Val])
SELECT [ChannelGroupName] AS Col1,
[channelname] AS Col2,
[Sales Val] AS Col23
FROM dbo_qryCubeDataExtra
;

in a VB6 program that ran them in a ADODB connection something like :-

Dim MyCnn As ADODB.Connection
On Error GoTo Err_ErrorHappened
Set MyCnn = New ADODB.Connection
MyCnn.Open (MyAdodbcmd)

View 7 Replies

Security :: Creating A Interface For User Role Management Based On Built In Membership Provider?

Feb 18, 2011

I am creating a interface for User Role Management based on built in membership provider.I want to display all the roles as check boxes for a selected user. I am able to display all the roles in the database, but not able to load the specific user roles. For example, I am able to publish role 1 role 2 role3 role 4 as check boxes. But if the user is already flagged as role 1 and role 3, I am not able to show that data (role1 and 3 should be checked when form loads, but right now, they are not checked)...How do I get the roles as checked boxes display on a page.I am using a repeater control to display roles as check boxes on the page..

<asp:Repeater ID="UsersRoleList" runat="server">
<ItemTemplate>
<asp:CheckBox runat="server" ID="RoleCheckBox" AutoPostBack="true" Text='<%# Container.DataItem %>'

[code]...

View 1 Replies

Security :: Built-in Membership Framework And Has Implemented Own Provider By Creating A Class That Inherits From MembershipProvider?

Jan 23, 2011

used the built-in Membership framework and has implemented his own provider by creating a class that inherits from MembershipProvider (found in System.Web.Security). I actually went ahead and created a custom provider which inherits from MembershipProvider. The problem is that there are several methods I do not really need. Also, the schema is totally different. Plus, most methods return a MembershipUser which means my User class has to inherit from it as well. So really, what benefits does the MembershipProvider and the whole Membership framework add to my system? Do these benefits justify the fact that I won't be using most of the methods on the class?

View 7 Replies

Web Forms :: How To Use Web Parts Personalization

May 22, 2010

I am working with webpart. I have developed webpart but has some issues in managing its personalization/personal settings.

For example when user A gets logged in and personalize any webpart. Then uer B gets logged so it should have default webpart setting or own personal setting webpart.

I am referring following site:

[URL]

kindly tell how to use these methods or others which are present in sqlprovider

1) SavePersonalizationBlob

2) LoadPersonalizationBlobs

Is there any tutorials or example to help me or any1 can have idea or example etc to

View 2 Replies

Web Forms :: Changing Web Parts Personalization For All Users

Sep 9, 2010

i have a situation like this, hope u can help me sort it out.

I am going to develop a portal by using all web part page and many customize web part.

BUt the personalization of the web part layout only allow modify by administrator, that means the web site is not going to personalize by public user even in drag and drop function. They just can see a normal web site..

So, in the web config file, what should i set so that the authenticate administrator can change it to effects all the user.

View 1 Replies

Web Forms :: Avoiding Personalization Data For Whole Web Page

Jul 29, 2010

I have a web parts page in which each web part has its own personalization data(list of DB table primary keys). At startup, I want to get thecombined data stored in each web part to make a query in the background. Is it possible ? Currently I have to wait for IPersonalizationData.Load for each web part to get what keys are stored by each. Is there a way to store personalization data for the whole page ? I can't use profile as this data is not per user. Worst case is write to a file which I want to avoid if possible.

View 2 Replies

Web Forms :: WebPart Personalization Resetting/Getting Lost

Mar 25, 2010

I have spent days trying to research this to figure out what is going on. I tried changing most of the settings in IE8 (both users are using IE8 but I have no idea if it does it IE7 or Firefox too) , logging in and out as different users, closing, opening, deleting internet files, and it won't break. They have the site in the Trusted Sites list. They don't have trouble with it dropping their Forms Authentication either, so it isn't losing authentication.The admin user suggested it had something to do with her having multiple tabs and sessions open. But I tried all of that, and it never broke. I have seen erratic behavior on occasion if a rogue IE8 process doesn't exit properly

View 2 Replies

Web Forms :: Access Another User's Personalization Data?

Jun 8, 2010

I have a shopping website, I want to save all the user information (e.g templates, color preferences, shopping cart data, previous page, order number etc..) in SQL server.

For this either I can create my own functionality which will log everything to some sql database table and later that table can be used to show filtered reports to the admin.

Or I can use asp.net's built-in personalization concept. But in case I am using the personalization, can I/admin fetch the presonalization data of another user for reporting purpose?

Also, is personalization is the right approach to fulfull my requirements?

View 3 Replies

Web Forms :: WebPart Personalization Buttons Disappeared?

Jan 23, 2011

I'm working with web parts in asp.net and every thing is working great in development environment,but in published environment the personalization buttons (RestoreVerb & CloseVerb & design mode) disappeared,i try it on win server 2003 and IIS6 working fine but on win server 2008 and IIS7 doesn't work.

to be more clear

on Development Environment
On Publiedhed Environment

View 1 Replies

Web Forms :: Webparts Reset All Users Personalization Settings?

Feb 15, 2011

I'm looking at asp:webpart to implement some personalization on a startpage for a insurance web app.(no Sharepoint) I have read some and made some tests but I have at least one thing that I don't understand.

In some cases I wanted to reset all users personalizations to the page default settings. So to speak, I will do it in an authoritarian way.

How can I do this? Database manipulation? Which table in the database? Or is there another way?

View 2 Replies

Web Forms :: Personalization Properties Inside User Control?

Mar 19, 2010

I have a webpart that loads in a user control programmatically. Although the webpart has personalization properties that I can use and pass to the user control, I haven't found a way for the user control to be able to update the outer webpart's properties -- the user control knows nothing of its parent webpart except what it is given. When I try to use the [Personalizable] attribute on a property inside the user control, it doesn't work; it doesn't save anything to the personalization database. In a nutshell, I need the user control to be able to personalize its properties (e.g. for a date picker within the user control where the date has to be remembered between sessions) or to somehow be able to update its parent webpart's properties.

View 3 Replies

Web Forms :: Web Parts Page Error / Personalization Is Not Enabled And Modifiable?

Mar 26, 2010

I am working on a VWD Walkthrough: Creating a Web Parts Page in VWD, [URL]Here I created a user control, DisplayModeMenu.ascx. Somehow, when running this webpage, the DropDownList of this user control showed only a Browse selection, no Edit selection. Clicking the "Reset User State" link showed the following error message.

The Walkthrough did not list any information on setting up the "ASP.NET Web Site Administration Tool" or additional tags on Web.config. How can I fix the errors?

BTW, is it true that User Control is not recommended for VS 2005/8 any more.

Personalization is not enabled and/or modifiable. The Enabled property must be set to true, and a registered personalization provider must be selected. The current user must be granted the right to modify personalization state.

View 5 Replies

Web Forms :: Checking Web Part Manager Personalization Mode In JavaScript

Mar 15, 2010

On my web part page I use a JavaScript timer to call a Page Method to check if data has changed and then only I refresh the page. Now I want to disable that JavaScript timer when the web part page is in shared personalization mode. Then when web part page is again in BrowseDisplayMode, I want to reenable the timer to poll for updates. How do I access web part manager personalization mode in the client side JavaScript ? Do I need to use a hidden file in UpdatePanel ?

View 3 Replies

Security :: Forms Authentication With AD Membership Provider And SQL Role Provider?

Jul 27, 2010

I am trying to build an application that

1. user can login by their AD account and password.

2. AD account can be assigned to different group.

I know there is a training video - [URL] to teach how to use the tool to provision the membership schema to SQL server for Forms authentication. but how can I use AD authentication with this?

View 1 Replies

Personalization Be Done Using SQL Server 2000?

Jun 29, 2010

I am using SQL Server 2000 and ASP.NET 3.5.
I want to implement WebParts in my site. But while running my code it shows me an error :

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

View 1 Replies

MVC :: How To Implement Custom Authentication And Personalization Providers

Mar 24, 2010

i am in the process of developing an asp.net mvc 2 social web app and some of the requirements have to do with users authentication and personalization. Site visitors should be able to login using credentials not only by registering to my site but also by entering external account credentials (Live ID, facebook, etc...). Also, users should have a custom profile, where they could enter personal details, preferences, etc...

Is there any good tutorial on how to implement custom membership and profile providers? The default Role provider that comes with asp.net mvc is ok and does not need to be re-implemented.

View 5 Replies

VS 2008 Implement Custom Role Provider And Membership Provider

Sep 27, 2010

I have watched the how to video on Creating a Custom Membership provider. So far it works great. My login control interacts well with it etc. Now i've created a Custom Role Provider. I've created a class that inherits the RoleProvider base class and i've added code to each Sub. My question is, what is the best way to implement the role provider, considering I get the Roles etc from the database?

View 11 Replies

Security :: Get User Info With Custom Provider - Use Provider With Profilecommon?

Apr 16, 2010

I try to get the user profile settings with this code. But all items in it are empty, in the database they are not empty. So there is going something wrong. First of oll how can i add a provider to the ProfileCommon ? Maybe i'm there then... the usrInfo is filled well...

MembershipUser usrInfo = Membership.Providers["MyMembershipProvider"].GetUser(UserName,false);
ProfileCommon prf = (ProfileCommon)Profile.GetProfile(UserName);
LitNaam.Text = prf.Voorletters.ToString() + " " + prf.Achternaam.ToString();

View 2 Replies

Security :: Implement custom Role Provider And Membership Provider?

Dec 1, 2010

i have implemented custom role provider and membership provider .

login page : SignIn.aspx

on successful login it redirects to (index-Homepage.aspx)

now PROBLEM is when it successfully logged in ,and redirects to 'index-Homepage.aspx' it gives Anornymoustemplate ..while its verifying the role correctly in index-Homepage.aspx.cs

View 1 Replies

Security :: Difference Between Role Provider And Membership Provider?

Dec 1, 2010

1 - whats the difference between Role Provider and Membership provider ??

2- If we implement Custom Role Provider or Custom Membership provider then what does this means ? and which Provider do we use when we apply custom role provider or custom membership provider

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved