locked
webpart.Titleurl Property in sharepoint2010 RRS feed

  • Question

  • Hi Folks,

    My Requirement is when i click on webpart(name or title), i should be navigated to new window with the same webpart. How to achive this?

    I came to know from my friend by using webpart.titleURl, but i am unable to Get or use.

    Please let me Know.

    If any document or code ia there please provide it.

    Thanks in Advance.

    Thanks &Regards

    Anil

    Sunday, December 1, 2013 5:23 PM

Answers

  • I am assuming your web part is sitting on a site with other web parts and you would like to click on the web part title to go to a new page with the same web part (only web part) on that page. Correct me if this is not right.

    Create a new web part page and drop your web part on this page and configure any properties you would like.

    Now either change the Title URL and point it to the page you created above.

    If you want to do this using code then you will have to use SPLimitedWebPartManager class along with webpart class to change the title URL.

    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.titleurl%28v=office.14%29.aspx


    Amit

    Sunday, December 1, 2013 6:03 PM