ASP.NET
  Home arrow ASP.NET arrow Page 4 - Using Web Parts in ASP.Net 2.0
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Using Web Parts in ASP.Net 2.0
By: Justin Cook
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2005-11-28

    Table of Contents:
  • Using Web Parts in ASP.Net 2.0
  • Web Parts Explained
  • Properties
  • Changing the Layout

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Web Parts in ASP.Net 2.0 - Changing the Layout


    (Page 4 of 4 )

    If you are to deliver a truly personalized experience, you should allow users to arrange the web parts however they prefer. You do this by adding the personalization provider control to the page, called WebPartPageMenu, like this:

    <asp:WebPartPageMenu text=”change this page” Font-Size=”9px”
     runat=”server” id=”myMenu”  />

    This gives users a menu with the following options:

    1. Browse this page (default)
    2. Add Web Parts to this page
    3. Design Page Layout
    4. Modify the Web Part Settings
    5. Connect Web Parts on this page

    Just as with everything else in the .Net framework, we’re not stuck with the default verbiage that Microsoft provides. In development we can redefine the verbs through the ModeVerb collection of properties.

    By selecting a different option, the users enter the specified mode. They can move the web parts around by choosing design mode. If they move a web part to a new zone, the web part inherits that zone's defined visual properties. And the beautiful thing is that when you specify a data provider, any modifications they make persist. In other words, the next time that specific user visits the site, ASP.Net serves them up their page in the way they left it. Now that’s personalization!

    Conclusion

    Web parts are big, but they’re going to be huge. They allow us as programmers to do the initial coding to get them up and running, and hand off the rest of the work to the users, who needn’t know a line of code to customize their web pages. In the near future, they will no doubt be seamlessly integrated into everything that Microsoft produces for public consumption, such as the "My Space" available through MSN Messenger. The ability to build and consume Web Parts will become a required skill for any web programmers working in a company with a .Net based intranet website. So brush up now!

    There are still three major components to Web Parts. Those are editing, the Web Part catalog, and interconnecting Web Parts. These will be the topic of a future article. For now you have enough information to keep you busy!


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · hey,Justin Cook here. Hope you enjoy the article!
       · Hi justin,I'm just a little confused with the development of web parts....
     

    ASP.NET ARTICLES

    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ

     
    Application Delivery: Everything You Wanted to Know, but Didn`t Know You Needed to Ask
    A comprehensive guide to examining the topics of Wide-area Data Services and app....

     
    Best Practices: Safe and Secure Hardware Asset Recovery
    Companies increasingly must meet EPA and local requirements for the disposal of ....

     
    Managing SSL Security in Multi-Server Environments
    Read this white paper to learn how to simplify management of your organization's....

     
    Open Source Security Myths
    Open Source Software (OSS) is computer software whose source code is available t....

     
    Power and Cooling Capacity Management for Data Centers
    This paper describes the principles for achieving power and cooling capacity man....

     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT