cs中的菜单

1.

<cs:contextmenu id="MemberContextMenu" runat="server" filename="~/Crm/Membership/MemberSearchContextMenu.config" />
<SCRIPT type="text/javascript">
<!--
function popupMenu(item, e, UserID, SearchPostsUrl)
{
window.<%=MemberContextMenu.ClientID%>.ShowContextMenu(item, e, UserID, SearchPostsUrl);
}
var actionsName = '<cp:resourcecontrol runat="server" resourcename="CP_MemberSearch_GridCol_Actions" />';
-->
</SCRIPT>

 

<a href="#" oncontextmenu="popupMenu(this, event, '## DataItem.GetMember("UserID").Text ##', '## DataItem.GetMember("SearchPostsUrl").Text ##');" onclick="popupMenu(this, event, '## DataItem.GetMember("UserID").Text ##', '## DataItem.GetMember("SearchPostsUrl").Text ##'); return false" class="CommonTextButton">##actionsName##</a>

2.
ClientPopulatedPopupMenu

3.ServerPopulatedPopupMenu

posted @ 2006-11-24 16:30  烈马狂生  阅读(280)  评论(0编辑  收藏  举报