locked
changing wss3.0 .aspx programmatically RRS feed

  • Question

  • Hello all,

    I'm new to WSS3.0

    I want to change the look in wss3.0 pages for example when you go to my settings section you have a form, how can I change this page programmatically (change name of fields or add/delete fields) this page is userdisp.aspx

    I don't know how I have to change a .aspx page accoutding to my requarements. I need some simple samples to show how I can play with wss3.0 .aspx page and I'm using visual studio 2008.

    I have googled in this regard but haven't found any useful link to help me

    any help in this regards will be appreciated

    Thanks to all

     

     

    Friday, April 17, 2009 10:53 AM

Answers

All replies

  • userdisp.aspx is application page of sharepoint.

    There are two type of pages in sharepoint 1. Site page 2. Application Page

    You can customize  Site Pages, application pages cannot be customized. If your are using MOSS the you can store more information about users using user profiles but not is wss, so you can add/delete fields for user information in wss

    Friday, April 17, 2009 11:46 AM
  • I don't mean to change the default page.
     it should be possible to create a new aspx page and then link to the new page created!!

    As I said I am using WSS3.0 and visual studio 2008, i'm looking for a tutorial to show the proccess from scratch to get some idea about it.



    thanks
    Friday, April 17, 2009 11:53 AM
  • You can add an option to welcome user control, so when user clicks on it user is redirected to your custom page where user information is display. This url can help you in adding another option to welcome user control drop down: "http://avinashkt.blogspot.com/2009/01/customize-welcome-username-control-in.html"
    Friday, April 17, 2009 12:06 PM
  • -If you are new to Sharepoint, I would recommend this excellent book that will give you the necessary background to understand the difference between site page and application pages and how they work.
    -Now to create an application page from scratch (and therefore to change an existing one), you can follow this article from Ted Pattison.
    Serge Luca; blog: www.redwood.be
    Friday, April 17, 2009 4:12 PM
  • Check out these following cool blog posts from Zac Smith, this is what all you need to do to have your own user display form,  but I'll suggest that you follow the link provided by Serga Luca also, as you need to some understanding of how these pages work before you create your own.


    http://www.trinkit.co.nz/blog/archive/2007/10/14/how-to-customize-the-user-profile-display-page-part-1.aspx

    http://www.trinkit.co.nz/blog/archive/2007/10/15/how-to-customize-the-user-information-page-part-2.aspx

    http://www.trinkit.co.nz/blog/archive/2007/10/29/how-to-customize-the-user-information-page-part-3.aspx


    Thanks,
    Suhaib Khan

    Friday, April 17, 2009 7:44 PM
  • You can hide existing links and put links pointing to your pages using CustomAction and HideCustomAction of features. Check this link for more info: http://msdn.microsoft.com/en-us/library/ms465980.aspx

    Saturday, April 18, 2009 5:41 AM
  • Thanks Serge Luca and Suhaib Khan for useful links ,and  thanks to others too,

    now I can understand the procedure for creating an application page,

    I have a question for example in our profile page we have some fields like Phone number,Name,E-mail  and so on.
    if I want to edit these names or add/delete  fields what should I do?? how these fields are created!!?

    i have deployed the  sample code which is provided in Zac Smith posts ,which file creates the form?? I cant open the design part of the files since it says Error creating Control!!
    to change the look of the form ,is it done with drag and droping the items from Toolbox?!



    Thanks again

    Monday, April 20, 2009 1:28 PM
  • The profile page is display the User Profile Properties.  You can add or edit these in Central Administration > Shared Services Admin > User Profiles and Properties.

    Dave
    My SharePoint Blog - http://www.davehunter.co.uk/blog
    Monday, April 20, 2009 2:01 PM
  • I'm using WSS3.0.
    I think User Profile Properties is in SharePoint not WSS3.0!
    Monday, April 20, 2009 2:11 PM
  • In WSS 3.0 the user information is stored under hidden list which can be accessed from SiteUserInfoList (a property of SPWeb object)  which is actually return "User Information List" list, once you have this list you can update email, phone number etc.,  take a look at the following URL -


    http://www.zimmergren.net/archive/2008/06/25/sharepoints-hidden-user-list-user-information-list.aspx


    "User Information List" is unique to SPWeb it belongs to so if you have two web sites A and B and you update "User Information List" on "A" then don't expect to see your changes on "B" also.


    Thanks,
    Suhaib Khan

    • Proposed as answer by Suhaib.Khan Monday, April 20, 2009 2:49 PM
    Monday, April 20, 2009 2:49 PM
  • googling and reading different blogs , I see that in sharePoint we canDisplay an AD group in a SharePoint DataView . which is uesd to have a contact book and have the user information from AD
    is it possible to do so in WSS 3.0 with using Visual Studio 2008 or 2005?

    I have to create a contact book which should have the user information such as name and email address from active directory,  i tryed to change the

    user-profile-display-page.aspx but its very complicated and moreover i found it risky to change it!!

    Any simple or better solution in this regards?


    Thanks

    Tuesday, April 21, 2009 1:00 PM