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
Similar Messages:
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
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
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
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
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
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
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
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
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
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
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
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
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
Nov 6, 2010
I have a GridView where I am displaying the students List who ware absent for "ASP.Net Class" If Teacher 1 login then it is displying all the records who ware absent and same for remaining teachers. I want to display those records where TecherId matched..
I wrote query like this :
Select StudName FROM Class where Status LIKE 'ABSENT' AND Teacher Id =?
But every teachers(User) are getting everyone's data....
I am using AccessDataSource and displying in GridView....
View 4 Replies
Jul 19, 2010
I need to log every user-action taken on a database using the username of the person logged into my ASP.net application as the identifier in the log. What is the easiest way to do this? I guess that for every method call to my data access layer I need to log the parameters of that call and the username and then call a new "log event" method that writes the details of the call to a table. Am I on the right track?
View 2 Replies
Dec 2, 2013
I have create one user control of personal details, and write the geting data from database method and Load the entities in respective field,then how to bind user control in gridview and how to accecc Id of user control in aspx page.
View 1 Replies
Jan 17, 2010
I have an acess db which has primal key ID - Customer, and personal data of the customer .
In another db OR the same, to have the username and login of the customers.
I want to make a login form so if u/n & pass of a customer is correct, to have access to modify (insert, delete, update) his data of the db - his ID's only.
View 5 Replies
Jan 7, 2011
I deployed a website where a logged user or an anonymous user can select data and download a XML file. The website generate the XML file in the server and then deliver it.
It works fine in my development environment, but after deployment, the anonymous user can download the file, but the logged user receive this error:
System.UnauthorizedAccessException: Access to the path 'd:HostsLocalUserheringerwebsiteUpload20110107094051.xml' is denied.
It is weird that as anonymous i can do it.
The website server help states this:
"Grant write, modify, delete access rights on website's folder
Your website executes under unique user account that by default has full control over the website's folder.
So your application can create, open, read, write and delete files and folders inside of your root folder.
There is no need and no way to change this permissions.
If, when running ASP.Net application, you still unable to create file or update it, you have to check your Web.Config file for "<Identity impersonate..." tag and remove it.
The only exception is when the application tries to modify a file or folder in "Application_Start" event of Global.asax file. This is by design that user authenticated only after the Application_Start even. Before the user is authenticated your website runs under an identity of Application Pool which is "Network services". That account doesn't have access to the folder of your website.
To make it work you eather have to move the code that tries to modify files or folders out of the "Application_Start" event of the Global.asax file or inside the event you'll need to impersonate your user by code."
But i am not using impersonate and the tag is not in my web.config.
View 2 Replies
Dec 1, 2010
I have a database with tons of SP. Is there a way to grant a new user access to all SP so the user can execute then?If the SP inserts data in a table do I have to grant the the user that executes the SP so he/she is allowed to insert data
View 2 Replies
May 7, 2015
I want to Transfer UserId after loggin in to everypage in app till the user gets logged out...
View 1 Replies
Nov 9, 2010
I want to use a couple of instances of the same control on a page. The user control is intended to display a list of records in a repeater. The aim is that the second control will show a list excluding the IDs in the first control The control has a number of public properties, including IDsInThisList, and IDstoExclude. The query will exclude the IDs in the second property.
What I would like to do is get the record IDs from the first instance of the control (IDsInThisList), and pass them to the second contro as the IDsToExclude.
I have a test page where I am setting the properties of the controls in code. As you might guess, it's not working! The first control displays the top 3 items, as desired, but the second display the records 1-7, rather than records 4-10 because it is not receiving the IDstoExclude from the first control When I response write the IDstoExclude from the first control in my testpage, the string is empty. (if I do it from within the control, it shows the IDs)
How can I get the controls to fire in order and pass values to each other?
Screen grab of test page + uc and test page code attached
[Code]....
View 5 Replies
Jul 28, 2010
I have a requirement where i need to access the methods of one user control in another user control.
View 8 Replies
Dec 30, 2010
I have DropDownList inside User Cotrol and i use this User Cotrol in my asp Page , in my page i have method that take paramter string
now i want to access the the DropDownList SelectedIndexChange from my page to execute the method by passing the DropDownListSelectedValue
(when user selecte value in dropdown list ,when it post back i watn to excute the method depent on value of selecte value )
View 2 Replies
Oct 21, 2010
If multiple users access a web-form at the same time, how can I allow that using my code? Essentially each user reads and writes one variable in the application, and concurrent access is causing problem there.
View 5 Replies