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.
How to hide any node (and it's child nodes) based upon roles without configuring the SiteMapProvider to enable security or securityTrimmingEnabled="true" .
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).
I created a sitemap that works perfectly for my menu and when rendering the sitemappath for a breadcrumb style nav on a masterpage. But when I create a page to display the full sitemap in a treeview, the title attributes do not display. Instead, all I see is the word 'sitemapnode'. Here is a snippet of my sitemap:
<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="default.aspx" title="Home" description="Home"> <siteMapNode url="EmergencyMedicalServices/services.aspx" title="Services" description="Emergency Medical Services"> <siteMapNode url="EmergencyMedicalServices/AmbulanceServices.aspx" description="Lifenet Ambulance Services" title="Ambulance Services"/> <siteMapNode url="EmergencyMedicalServices/dispatchandcommunications.aspx" description="Lifenet Dispatch and Communication Services" title="Lifenet Dispatch and Communication Services"> <siteMapNode url="EmergencyMedicalServices/emergencymedicalservices_callcenter.aspx" description="LifeNet Call Center Process" title="Call Center Process"/> </siteMapNode> <siteMapNode url="about.aspx" title="About Lifenet" description="About"> </sitemapnode> </sitemap>
Here is the code for the page displaying the sitemap:........................
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?
I have created a simple ASP.NET Website in Visual Studio 2010. I have got a Default.aspx page that contains an image. When the image is located in the Images folder it displays perfectly. When I move the image to another folder, or a sub-folder of the Images folder, it still displays in the Designer, but not in Internet Explorer. In IE, it shows nothing. When I view the source in IE the image tag is there, but nothing is displayed. I navigate to the root folder of the site (which I can do on the dev Web server), go into the Images folder, then go to the image - it displays perfectly. But when I navigate to another folder, or a sub-folder in Images, and try to go to the image, it does not display. I opened the page in google chrome, opened the dev tools, and saw that the image was there, but it was 1x1 pixel and 43 bytes, which doesn't make sense because the image is 38KB.
In my web application, i need to display Images(.jpg,.tif,.png,.bmp etc.,) and also Text Files(.txt,.doc,.xml,.html etc.,) in the web page. Can you suggest me, the best way to do this? NOTE: The Web Page should be compatible with Mobiles Phones(Iphone, Android)
In my application, in a single page i need to display small images(say some 10, i.e category wise) and if the user selects any one image then it needs to be maximized (like photo album). How I need to do this. Pls any Idea. maximized image will be displayed in the same page or another new page?
I'am developing a commercial website with asp.net 2.0 and sql server 2005, in which i want to display 5 images as a scroll according to the numbers below in which number 1 consists of first image 2 consists of second image and so on it automatically scrolls and changes
I am trying to change the Impage at certain time interval(5 images),its working fine in my system when i launched in windows server2008-IIS7.5 it is showing only one image other 4 are not displaying, i have navigated the images in root site folder but it is showing only one image other images are not.
[Code]....
Protected Sub gettickvalue(ByVal sender As Object, ByVal e As EventArgs) Dim RandomNumber As New Random() Dim n As Integer = RandomNumber.[Next](1, 5) imgBanner.ImageUrl = System.[String].Concat("/images/pcb", n.ToString(), ".jpg") End Sub
I'am developing a commercial website with asp.net 2.0 and sql server 2005,in which i want to display 5 images as a slide according to the numbers below in which number 1 consists of first image 2 consists of second image and so on it automatically slide and changes similar to the example as in website http://embassy-travels.com/
I've got a treeview inside an updatepanel. Currently I'm developing on a dev server through a remote connection, when I view the page from the dev server itself, it works. The expand/collapse images display fine. When I view the page from my machine's browser (same url, same browser) it doesn't display the images.
I've added custom images using the CollapseImageUrl/ExpandImageUrl properties, again it works from the server, but not from my machine. The actual rendered html differs. The page also contains some asp:Image controls which work fine in both browsers.
how to display images from a database cant cant seem to find quite what im looking for.
I have a site that allows users to upload their own photos, i would like to be able to display these images, with the discription of the photo underneath or on top of the photo, on the website and allow other users to comment on the photos.
The display can be every photo in the database, later ill impliment a search to narrow it by user later.
Right now I have my database table set up to take the img path, username that uploaded the picture, time it was uploaded, and a description of the photo.
How Can Secure and Hide Image Url from Users because it is personal for each user but now it is easy for One User to change fUser_ID (for example from Inspect Element in FireFox Browsers) and access to Other Users Profile Picture.What is the best way for User Security in asp.net ?
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.
Is there a way to process images once uploaded to my asp.net site, to put a watermark or some text across the image to copyright the images? I would like to do this server-side if possible.The other option I have discovered here [URL] would be to store the images as they are on the server, but to manipulate the display so it appears the image is watermarked . However, this solution is in PHP. Does anyone know a good PHP to VB.NET translator?! Or does anyone have a good suggested link, idea or code? Or can I add PHP to my ASP.NET site?
I am trying to find an efficient way of displaying images (about 140x140px) in a webform. We cannot use paging, so we need to display all these images in the same webform.I noticed that facebook (and other sites) lets you display all your images in one page. For a profile qith about 1000 photos, facebook somehow downloads only enough so that the visitor can see images on the screen. Once you scroll, it seems to only download enough so that the visitor can again see something on screen. It works like a good text editor.... instead of displaying a huge file onscreen (like notepad does) and freezing, it only displays enough for the reader to see.