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


Similar Messages:

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 :: 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

Avoiding The Page Refreshing To Store The Value To Database Once Again

Apr 5, 2010

i am using simple form in that i put 3 upload option when i click the upload button the 3 files are stored in to unique directory. but when i refresh the page once again again it store the file once again to the directory . how to fix this problemin asp.net C#

View 5 Replies

State Management :: Avoiding Timeouts With Very Long Page Processing?

Apr 7, 2010

I have an asp.net page that will be doing some processing that may take a very long time to complete. I cannot just set the page timeout value since this is going to be in a hosted environment and the timeout values that I set in my web.config are overridden by the server host. What I'm doing is taking a file from a FileUpload control and doing some web requests to a 3rd party service for each line in the file, all of which may take a very long time to process a large file. I'm talking on the order of, say, 30 minutes, and there's just no way to optimize this any further to cut down on the processing time. Is it possible to even do such a lengthy page request in asp.net? Can someone give me a pointer in the right direction here to make this happen? Is my only hope to create an async page? It seems that doing an async page is the way to go if I have a potential for a lot of lengthy requests, but really this massive of a request is going to happen VERY rarely so this is not an issue of running out of thread pool since most of the time this particular request will be completed relatively quickly, but on occasion it may receive a very large file it will need to process and will take a very long time. So what is the best way to handle that case?I'd also like to update the client with the processing status as the processing is going on. I'm familiar with doing client ajax calls via jQuery to a page webmethod so if there is some clean way to update the client as this long processing

View 7 Replies

C# - Avoiding Deadlocks And TimeOuts When Processing Huge Data?

Oct 14, 2010

I have code in an ASP.NET form that needs to, depending on user entry create messages in the database. We are speaking of potentially thousands of db entries. How do I protect against deadlocks, I mean apart from using Transactions and setting IsolationLevel to Serializable, as well as using WITH(NOLOCK) statement on my select statements since I don't mind a dirty read.

Event code: 3005 Event message: An unhandled exception has occurred. Event time: 10/13/2010 10:12:14 PM Event time (UTC): 10/14/2010 3:12:14 AM Event ID: a565c58a7f844692859aa21303447c7c Event sequence: 206 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/610100832/Root-12-129314933998593750 Trust level: Full Application Virtual Path: / Application Path: D:Websitesadmin.beta.sharedTime.com Machine name: SHAREDTIME Process information: Process ID: 3440 Process name: w3wp.exe Account name: NT AUTHORITYNETWORK SERVICE Exception information: Exception type: SqlException Exception message: Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. Request information: Request URL: http://beta.admin.sharedTime.com/admin_text_mass_send.aspx Request path: /admin_text_mass_send.aspx User host address: 69.211.10.138 User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITYNETWORK SERVICE Thread information: Thread ID: 10 Thread account name: NT AUTHORITYNETWORK SERVICE Is impersonating: False Stack trace: at mtNamespace.mt.createmessage_queue(String phone_number, String text_message, DateTime send_on, String system_name, Double user_no, Double send_priority, String message_type, Boolean returnqueue) in http://server/App_Code/mt.vb:line 1509 at ASP.admin_text_mass_send_aspx.save_user_values(Object sender, EventArgs e) in http://server/admin_text_mass_send.aspx:line 103 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details:

View 1 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 :: 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

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 :: 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 :: 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 :: 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

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 :: 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

Forms Data Controls :: (Grid View Union Gridview) - (Gridview Intersection Gridview) - Avoiding The Duplicates

Jul 19, 2010

I have two gridviews, say 'A' and 'B'...I want to add all the rows of 'A' to 'B' while avoiding the duplicates....For eg:

View 10 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

Avoiding Comma Separator For The Last Value?

Jan 18, 2011

I am generating an output on a webpage in a format like this

({"1":"Jeff","2":"Tom","3":"Michael",})

For this, basically this is the code I am using

Response.Write("(" + "{");
//
for (Int32 i = 0; i < k.Length; i++)
{
Response.Write(Convert.ToString(k.GetValue(i)) + ",");
}
//
Response.Write("}" + ")");

Notice my output, after Michael" there is a comma which I do not want since this is the last vaue but this is appearing since , is in the for loop. How to prevent this/remove this last comma from appearing?

My output should be ({"1":"Jeff","2":"Tom","3":"Michael"}) (There's no comma after last value here)

View 8 Replies

Security - Avoiding Session Hijacking?

Feb 24, 2011

I recently read an article on making ASP.NET sessions more secure here and at first it seems really useful.

Previously I had been storing the user's IP address in the session, then making sure in every subsequent request that the requesting IP was equal to the stored IP.

The code in the article also protects the session by checking the IP address, except it stores a hashed message authentication code containing the user's IP as part of the session cookie. It creates a hashed MAC twice every request, which I imagine would slow things down a little.

I can already see a potential flaw in their code: if you were to somehow get a hold of the key used to generate the MAC, you could then generate a valid MAC with your own IP - you wouldn't even have to fake the IP the session was started on.

It seems like an overly-complex solution to a simple problem which not only incurs a larger overhead but also is more susceptible to attack than the trivial method - unless I'm completely missing the point.

So, why would this approach be any more secure than the more simple approach that I had been using?

As a slight aside, the author also states that you shouldn't use the whole IP address in the comparison, as some user's IPs change every request if they are behind a proxy. Is this still the case if you check X_FORWARDED_FOR?

View 1 Replies

Avoiding Application Pool Warmup In IIS?

Jan 31, 2011

I'm having issues with an ASP.net site (framework 3.5, IIS6 ) having very slow 'first hit' response times. I'm guessing that the issue is to do with the app pool recycling and having to warm up.

I got to thinking. As part of the site I have a HTTP module that spins up a 'never ending loop' on a separate thread which periodically (every 5 seconds) calls an sproc on SQL to make sure the database is still there. I'm wondering if a similar approach might work to get the site to make an HTTP request to "itself" as a keep alive.

My question is, before I go and do this, can anyone think of any reason why it won't work? For example, something like "oh no... ASP.Net will figure out that you're playing with yourself and not go through the whole page lifecycle... etc etc".

View 1 Replies

AJAX :: Avoiding Postback Using Updatepanel?

Sep 24, 2010

avoiding postback using updatepanel

View 4 Replies

Avoiding Submit On Click Of ENTER?

Feb 19, 2010

I have a button in my page. If i click enter in the page the button click event is getting fired. How can i avoid this?

View 9 Replies

Avoiding The Use Of The Viewdata Enumerable Object In Controller?

Mar 23, 2011

I have 2 points for today I. I have a controller in which i have a public static method for getting the details for a checkbox like

[code]....

is it ok for me to use this same function like this one in the view, so that I do not need to use the viewdata object,

<%: Html.DropDownList("country", new SelectList(UserController.GetCountryLists(), "value", "countryname", "0"))%>

Also i have another query, when i use the same id & name for the radiobuttons, validation at the client side is working fine.If I use the same condition for a group of checkboxes, i get do not get the checkboxes highlighted during client validation and only during server validation, i get the error message, but the controls [checkboxes] do not have a red border indicating the error.I have used my own html helper to generate the checkboxlist as per [URL].

View 1 Replies

Avoiding Cookies While Requesting Static Content?

May 31, 2010

I just did an audit of one of my web application page (built using ASP.Net and running on development server) using Google chrome's developer tool. One particular warning caught my eyes:

Serve static content from a cookieless domain (5)!

Here is my screen shot [URL] as well. I would like to know is it possible to avoid cookies for these kind of requests. I see that there is no cookie requests for javascript files as well. I it possible to avoid cookies in the header for these files as well? and why didn't the browser attach cookies for javascript files and attach for CSS and image?

View 1 Replies







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