CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 7/7/2005 2:34:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 82 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
bmains
Asp.Net User
User Control Personalization7/7/2005 2:34:11 PM

0/0

Hello,

I have a user control that is a search form.  Within this user control, I have a radiobuttonlist that will most likely select the same value every time.  Can I tie that into personalization through code, or somehow within the user control, maybe through a custom property?

Thanks.
Brian

"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
JoeBerg
Asp.Net User
Re: User Control Personalization7/20/2005 11:50:03 PM

0/0

You can implement the IPersonalizable interface and manage your custom properties in those functions. Here's a basic example:

using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace CustomControls
{
    public class SimpleIPersonalizableWebPart : WebPart, IPersonalizable
    {
        private TextBox txtBox;

        public SimpleIPersonalizableWebPart()
        {
            txtBox = new TextBox();
            this.Title = "Default SimpleIPersonalizableWebPart Title";
        }

        protected override void CreateChildControls()
        {
            txtBox.ID = "txtId";
            txtBox.Text = "Default textbox Text";
            Controls.Add(txtBox);
        }

        void IPersonalizable.Load(PersonalizationDictionary state)
        {
            if (Controls.Count == 0 || state == null)
                return;

            PersonalizationEntry entry = state["TextBoxTextValue"];
            if (entry != null)
            {
                object obj = entry.Value;
                if (obj.GetType().Name == "String" && Controls[0].GetType().Name == "TextBox")
                {
                    ((TextBox)Controls[0]).Text = (string)obj;
                }
            }
        }

        void IPersonalizable.Save(PersonalizationDictionary state)
        {
            foreach (Control control in Controls)
            {
                if (control.GetType().Name == "TextBox")
                {                
                    PersonalizationEntry entry = new PersonalizationEntry(((TextBox)control).Text, PersonalizationScope.User);
                    state.Add("TextBoxTextValue", entry);
                }
            }
        }

        bool IPersonalizable.IsDirty
        {
            get
            {
                return true;
            }
        }
    }
}

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
The Human-Computer Interaction Handbook: Fundamentals, Evolving Technologies, and Emerging Applications Authors: Andrew Sears, Julie A. Jacko, Pages: 1358, Published: 2008
Electronic Publishing '01: 2001 in the Digital Publishing Odyssey : Proceedings of an ICCC/IFIP Conference Held at the University of Kent at Canterbury, Kent, United Kingdom, 5-7 July, 2001 Authors: Arved Hübler, Peter Linde, John W. T. Smith, International Council for Computer Communication, International Federation for Information Processing, Pages: 319, Published: 2001
Electronic Government: 4th International Conference, EGOV 2005, Copenhagen, Denmark, August 22-26, 2005 : Proceedings Authors: Maria A. Wimmer, Roland Traunmüller, Ake Grönlund, Kim V. Andersen, Pages: 316, Published: 2005
Beginning DotNetNuke Skinning and Design: Skinning and Desing Authors: Andrew Hay, Nina Meiers, Shaun Walker, Pages: 432, Published: 2007
Sexual Interactions: The Social Construction of Atypical Sexual Behaviors Authors: Andreas G. Philaretou, Andreas, G. Philaretou, Constantinos N. Phellas, Constantinos, N. Phellas, Stavros S. Karayianni, Stavros, S. Karayianni, Pages: 240, Published: 2006
On the Move to Meaningful Internet Systems 2005: OTM 2005 Workshops : OTM Confederated International Workshops and Posters : AWeSOMe, CAMS, GADA, MIOS+INTEROP, ORM, PhDS, SeBGIS, SWWS, and WOSE 2005, Agia Napa, Cyprus, October 31-November 4, 2005 : Proceedings Authors: R. Meersman, Pages: 1228, Published: 2005
24/7: How Cell Phones and the Internet Change the Way We Live, Work, and Play Authors: Jarice Hanson, Pages: 153, Published: 2007
Real World ASP.NET: Building a Content Management System Authors: Stephen R. G. Fraser, Pages: 522, Published: 2002
Mastering IBM WebSphere Portal: Expert Guidance to Build and Deploy Portal Applications Authors: Ron Ben-Natan, Richard Gornitsky, Tim Hanis, Ori Sasson, Pages: 552, Published: 2004

Web:
User Control Personalization - ng.asp-net-forum ... User Control Personalization, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp. net.web_parts_and_personalization, Date: 7/7/2005 2:34:11 PM, ...
ASP.NET 2.0: Personalize Your Portal with User Controls and Custom ... Using Web Parts to create modular Web portal applications; Personalization and customization features; Using custom user controls as Web Parts ...
User Control Personalization - ASP.NET Forums Can I tie that into personalization through code, or somehow within the user control, maybe through a custom property? Thanks. ...
Personalizing a web application by Creating User Controls in .NET The Personalizable attribute is added to the custom control that is created to control personalization. Since a User Control is also used as web part ...
Walkthrough: Implementing Web Parts Personalization with a User ... This walkthrough shows you how to create an ASP.NET user control that relies on Web Parts personalization to provide user-specific default values on a Web page.
Scrutability, User Control and Privacy for Distributed Personalization information for personalization services. The layer between. these and the user model is critical for privacy and control. of personal information and the ...
Automatically Personalizing User Interfaces scalable approaches to personalization. Interfaces should au- ... and rob the user of control. Thus, the challenge is to develop ...
Personalizing the user experience on ibm.com As can be seen in the table, user control of personal. data was the most valued personalization function. Participants saw this policy as essential for ...
How (Not) to Personalize Content Presentation in Museum ... A major question is how directive personalization should be. ... information service system, recommendation system, profiling, user control ...
Personalized Search Brouhaha Feb 7, 2007 ... Personalization is inevitable. User Control: If I have a quibble with what Google is doing, it's in the taking control from the hands of the ...

Videos:
FERNANDES GUITAR VERTIGO ELITE User Review FERNANDES GUITAR VERTIGO ELITE Find more video product reviews in the Music & Videos or Musical Equipment categories at www.expotv.com ...
Tellabs DynamicHome Solution The age of personalized television is upon us, as consumers demand video services that offer rich, personalized content, as well as more control ...
E-mail Marketing Center Application (www.newmediagateway.com) Email Marketing Center - Quickly create high-impact emails using Flash, HTML, video, audio and more. Even the best ...
Southwing SH241 Bluetooth Headset SouthWing SH241 Bluetooth® Headset Available Exclusively in US at AT&T SouthWing, a world leader in feature-rich Bluetooth® headsets ...
Disney Princess Alarm Clock User Review Disney Does It Again! Find more video product reviews in the Baby & Kids or Other categories at www.expotv.com Videopinions are Expo TV ...
ATM2 (Active Therapeutic Movements) An ATM (Active Therapeutic Movements) based treatment is a combined clinician/patient effort to manage and control musculoskeletal pain and is ...
Motorola Razr V3 Cellphone User Review Clark reviews his love for the Motorola Razr V3 Cellphone Find more video product reviews in the Electronics or Cell Phones categories at www ...
Ektron Content Management System Features Users talk about the features they like about Ektron's CMS400.net Content Management Software. Ektron CMS400.NET provides a complete platform ...
Dell DJ User Review 1020 Review of the Dell DJ Find more video product reviews in the Electronics or MP3 Players categories at www.expotv.com Videopinions are Expo ...
Biolock DB Fingerprint door lock http://www.akmelock.com http://www.fingerprintdoorlocks.biz http://thumbprintdoorlocks.com How often do you see someone forget or, worst case ...




Search This Site:










unable to upload large file

is it possible to have a unique role auto assignment for individual pages?

sql statement in vb.net

should we move from 3.0.12 to 3.1 now.

membership.updateuser

force logout on machine1 when user logged into another machine

complie asp.net project

is dotnetnuke made for my project ? (high traffic)

detecting when a user is leaving a page

web admin tool

i need help! i have page contain the concept of photoalbum - urgent plz

making a better content management system (cms)

vertically align content

user.identity

treeview with xml file

problems getting the parent node

problem w/ editurl in html of user control

knowing which page you're on with a wizard control

sql server express rejected by webhosts ....

how are forums usualy created?

bind profile custom properties (from web.config) to gridview or formview

oo questions

overcoming layout limitations

connection pool errors

dropdown and selected item

setting form focus...

forms authentication timeout redirection not working ...

partially trusted callers exception

more free skins

remember login.

 
All Times Are GMT