asp.net 2.0 webparts

D

delebash

How do you change the minimize,close,restore function of a webpartzone.
What I want to do is only allow minimize and put the link on the webpart
zone instead of in the arrow drop down list.

Minimize
Instead of >Minimize
Close
Delete
How do you modify these in general one example I have has a Delete link the
other example does not but I cannot find where this was specified.

Thanks,
Dan
 
D

DWS

Dan delebash,

The delete link shows up when you create a webpart so you can delete it LOL.

Show verbs in titlebar with webpartverbrendermode.
<asp:WebPartZone ID="WebPartZone1" runat="server"
WebPartVerbRenderMode="TitleBar">
</asp:WebPartZone>

Disable close and delete I'm using two different methods one for close
setting properties in the webpartzone and one for delete setting properties
in the delete element of the webpartzone you decide whats best for you.
<asp:WebPartZone ID="WebPartZone1" runat="server"
WebPartVerbRenderMode="TitleBar"
CloseVerb-Enabled="false" CloseVerb-Visible="false" >
<DeleteVerb Enabled="false" Visible="false" />
</asp:WebPartZone>


Good Luck
DWS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top