发布网友
共2个回答
热心网友
变通一下,不同的功能使用不同的参数?
<siteMapNode url="edit.aspx?fun=new" title="new" description="new" />
<siteMapNode url="edit.aspx?fun=edit" title="edit" description="edit" />
这样,在程序中也可以利用各节点的url属性中不同的字符串
可以这样做:
<siteMapNode url="abc.aspx?id=" title="new" description="new" />
<siteMapNode url="abc.aspx?id=123" title="edit" description="edit" />
在abc.aspx的Page_Load事件处理程序中判断Request.QueryString[0],如果是“id=123”就进入编辑操作,如果是“id=”就进入新建操作
在sitemap中&符号一样要用&来代替
热心网友
不要给导航url,在页面里边动态设置url