locked
need help please RRS feed

  • Question

  • User373358129 posted

     I want to know how to add a image to a webpart header. that is cause i need to add some functionality to this image.

     how can i do it?


    Regards 

    Tuesday, June 24, 2008 2:39 PM

Answers

  • User373358129 posted

    thanks vinz,

     

    i solved it. :D


     protected void WebPartZone1_CreateVerbs(object sender, WebPartVerbsEventArgs e)
        {

             List<WebPartVerb> newVerbs = new List<WebPartVerb>();

            WebPartVerb verb = new WebPartVerb("wpvShow", "openCloseCollapsiblePanelExtender()");
            verb.Text = "Edit";
            verb.Enabled = true;
            newVerbs.Add(verb);
            e.Verbs = new WebPartVerbCollection(e.Verbs, newVerbs);

         }

    just placing it in the CreateVerbs eventHandler
     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 25, 2008 10:53 AM

All replies

  • User-1034726716 posted

    Use UserControl as WebPart and implement IWebPart Interface.. see below

    http://www.codeguru.com/csharp/sample_chapter/print.php/c13037__3/ 

     

    Tuesday, June 24, 2008 5:01 PM
  • User373358129 posted

    thanks vinz,

     

    i solved it. :D


     protected void WebPartZone1_CreateVerbs(object sender, WebPartVerbsEventArgs e)
        {

             List<WebPartVerb> newVerbs = new List<WebPartVerb>();

            WebPartVerb verb = new WebPartVerb("wpvShow", "openCloseCollapsiblePanelExtender()");
            verb.Text = "Edit";
            verb.Enabled = true;
            newVerbs.Add(verb);
            e.Verbs = new WebPartVerbCollection(e.Verbs, newVerbs);

         }

    just placing it in the CreateVerbs eventHandler
     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 25, 2008 10:53 AM