How to hide any node (and it's child nodes) based upon roles without configuring the SiteMapProvider to enable security or securityTrimmingEnabled="true" .
Is there a way to display an image within a sitemap node, so that the image will display in my menu? I have a series of nodes that open external webpages, and I would like to display a small icon next to the text of that node so that a user knows that link will open a new window. I've seen this done on other sites using aspx, but can't figure out how it's done.
I have a menu in my application (created from the sitemap) which I want available to two user roles. However, there are items on that menu, I want available only to one role or the other. So I have created the following in my sitemap.
[Code]....
Essentially, I want employees with the "TimeUser" role to see the "My Profile" link that goes to the EmpProfile.aspx page, but not the link to the client profile page. However, when an employee logs in, they see both. I am guessing this may be because the "My Account" node which contains them allows both roles. Is there a way around this without duplicating the "My Account" node?
I have a few items apart of my Web.sitemap file that rely on querystring or session variables. I do not want these items to appear in my menu. Is there a way to hide it from the menu, but still be in the sitemap (for sitepath control).
We have a dynamic sitemap and all nodes in the sitemap display a breadcrumb. Is it possible to have the breadcrumb still showing, but make the link in the sitemap invisible or non-clickable? Reason for this is that... we dont want users to select some pages from the sitemap (becasue they need to conduct a search first to populate a datagrid) and clicking on the link will only take them to an empty page. I tried just removing the url, or having a blank title, but that didn't work.
I am using asp.net2.0 , C#. I am binding menu control with sitemap to display menus and submenues. Which also restrict access and display of menu or submenu based on user's roles. I want to know Is it Possible to show/ Hide submenu based on sql tables with existing sitemap method
I have a code that load hierarchy( nodes) into trew view.. by selecting different date, the hierarchy result from SP will show in the treeview..
the problem is even though I select a different date.. the result( node) of previous date is still showing in addition to the new hierarchy result...
it;s like the new result node is appended to existing node.. instead of refreshing the node and showing only the new result. How can I clear out the treeview nodes before adding new nodes from different date?
In my XML, it's possible for an apostrophe to appear in a node's value:
[Code]....
If I have controls bound to this XML:
[Code]....
I've noticed that the text is correctly displayed in the asp:TextBox but not in the INPUT element. I'm assuming that it's because server controls correctly escape the apostrophe. To work around this, I tried changing the Description node in the XML to the following:
[Code]....
Again, this displayed correctly in the asp:TextBox, but not in the INPUT element.
My next attempt was to wrap the node's value in a CDATA:
[Code]....
Finally it was displaying correctly in the INPUT element, but now the asp:TextBox displayed the two "& # 3 9 ;". I've even tried "& a p o s ;" but the result is the same.
I've created a custom implementation of SiteMapNode. I've attached it to Menu and it works ok. I've attached it to TreeView and it shows only nodes of one level. If I specify at SiteMapDataSource's ShowStartingNode==true, then I will see only root node and no expand buttons, if I specify ShowStartingNode==false, then I will see root's child nodes and no expand buttons also. What's wrong?
I have an xml file like this.I wnat to display a gridview when i click on the EX_ACK_PEN i want to display a gridview with fields Tag,Value,Name.How can i get the childnode values .
I have a treeview and all nodes are check box, when user clicks on a button, how can I get all the checked child nodes belongs to specific parent? I wanna something better...
the problem is actually in the subject. I have custom control that uses treeview. The control is added dynamically. Nodes for this treeview are populated on demand. Treeview nodes can be checked. I recreate this control on page load event, but still CheckedNodes is empty if checked nodes were added dynamically (added on demand).
We are getting this error message when we try to click the link in the menu to go to Report Server:
Source Error: Line 31: <siteMapNode title="Reports" description="Reports"> Line 32: Line 33: <siteMapNode url="https://ffxsqldgc01.ffx.co.fairfax.va.us/Reports/Pages/Folder.aspx?ItemPath=%2fDPZ&ViewMode=List" title="View Reports" description="Click here to view the reports" /> Line 34: </siteMapNode> Line 35:
I tried to add after the &, as it was suggested on one of the forum but it did not work. Any other ideas.
I have a issue, and i need your opinion how I can do it. May be someone from you did the same.
for example, we have structure of property address what stored in database:
0. Property type
1. Region
2. Postal Code
3. City
4. Street
5. List of properties
I need to build SiteMap with work with SiteMapPath.
If we have small count of records in database this is not a problem but what I need to do if in database present extrimally big count of element for each node (from 0-5) ?
make query to each element and build site map this is not good for two reason perfomance and count of queries to DB.
i want to build dynamic sitemap from database..even my menu items are also dynamic...and i want do display sitemap having categories and related menu items from database..
so i dont know how to build dynamic site and create dymanic links of that menus and categories..
I have a tree view which I am populating from active directory. I am trying to implement search in tree view , its returning null while its already fill with Active directory data ...