I've got a problem with showing images on a page, that i hope someone might help with.
I have two sites like this;
C:WebsitesWebsite - Main Site
C:WebsitesAdmin - Admin site for main site
There is a table in the database that has a link to an image in a folder like this;
C:WebsitesImages - image store
The problem i am having is that when i view the page, the images don't show up. But if connect to the images folder using Windows Explorer then view the page again the images are visible.
Is there a way to have an image store and then all images be availabe to both sites?
I have though about the possibility of using a structure like this; (but i'd rather not)
In my web application I have a separate folder for Images and MasterPages and I am using forms authentication. Thus if I will not allow anonymous access for Images folder the login page will not be able to show any image.
guide me if this is what we should be doing or is there any other way to handle the scenario. Also, let me know is there any drawback of this technique.
I'm trying to show images that come from a sql query into a GridView column, the problem is that the best solution found in the web searches the database twice for each row.
This solution says that we have to first create a handler (ImageHandler.ashx),
It will receive the ID of the row that contains the image, and then query the database with that ID.
Then it will finally perform something like "context.Response.BinaryWrite((byte[])dReader["Photo"]);" (in this case the handler uses a DataReader, I guess we could use another approach)
We also have to declare the image column in the markup as:
The problem is that, the Grid is bound to a SqlDataSource with a SelectCommand like: "Select ID, Name, Photo FROM Employees", that is already querying the database, then the GridView will execute the handler with the ID in it's query string, so the handler will query the database again for the same row, to extract the image.
Isn't there a way to send the image to the handler, so that it only performs the instruction "context.Response.BinaryWrite..." without having to query the database again?
I am developing a web app which uses images. Because there are lots of images, I decided to store them in a location out of the web site, maybe they can reside in a different unit (g:Pictures for example, where g: is a drive that belongs to a disk array which is part of the web site infraestructure).
At the beginning, such pictures were saved in a folder within the web site project so it was easy to show them using the asp:image control's ImageURL property but now that they are outside, things get complicated.
i hv added a treeview control on the .aspx page, when i try to browse it from web server, the image is showing as broken image, where the image link is showing like this [URL]
i have one asp.net application which has menu bar and sub menu are Horizontal. in my IE browser itz working fine.. but in google chrome itz not showing the sub menu.
I am working on URL Rewriting using RegisterRoutes.
its working fine but all css ,js and image not working when i redirect page using URL Rewrite.
my code is in global ascx is below
public static void RegisterRoutes(RouteCollection routeCollection) { routeCollection.MapPageRoute("RouteForcategory", "Product/{Cat_Id}/{Cat_Name}", "~/ProductDetailss.aspx"); }
My image path is
<img src="images/logo.png" alt="logo">
But when i run then url and image path looking like below
http://localhost:49936/Product/3/Fruits
And my image path looked
http://localhost:49936/Product/3/images/logo.png
but above is not correct path .
When I redirect page from home page to Productdetailss.aspx then images css, directory root path are changed and its also rewrite. I dont want to rewrite css,js,and image path .
I am also used resloved url code but not working .
I have for example a ASP Menu control having a static (File) and dynamic (Open, New) menu such as :
[code]....
I am able to see this menu under VS 2008 under my development PC. But when I deploy the app to a IIS server, and run the app, the whole app appeared the same. Only the Menu has "File" for selection but the submenu items (Open and New) did not appear when the mouse cursor was moved over "File". Only the Outline of the dropdown box of the submenu appeared.
I used ASP Menu Control binded to SiteMap. So I didn't used Items in Menu Control.But want to keep Images in Menu Control.For each link that appers in Menu control, I need different Image.
I am trying to implement the asp:Menu control for my own needs.What I am trying to achieve is a menu that have a different images for each menu item for the three different modes,item Image,hover Image,selected Image.Is it possible implementing this behave using ASP:MENU?
i'm trying to show data in gridview through this code but everything appears except the images. I saved the image in sqlserver2005 as Image datatype and when i try to bind the gridview to the db by wizard the images appear when i press test query but nothing when running the app
In Class Named Admin: public DataTable Select_writer(string writer_name)
A user has multiple images which is stored in database(datatype varbinary ).I want to show all the images of that particular user in gridview.Can you people guide me how to achieve this?(Asp.net with c#)
I want to make a website which showing thumbnail images be taken from local folder,say,'thumbnails' inside the root folder like listview items.Below each thumbnails,the name of the file would be displayed with check boxes for selecting any thumbnail images.Clicking on any thumbnails will redirect to another page where the thumbnails and the original image(with the same name in some other local folder say 'Original') would be displayed.
As you can see, i have two choices to go inside the root folder or inside the DHC folder. Both folders should get their images from the IMAGE/ folder inside the root.
My problem is as follows:When i'm in the root part, the images of the masterpage.master are shown, but when i'm in the dhc/ folder part the images of the masterpage.master are not shown.
I am not seeing the children controls on my web page when I hover over their parents. For example, I see the File, Edit and View menu items but I do not see the File->Open menu.
I am building a ASP Menu Control with back ground images using CSS. Problem: Images repeat even though, I have image specified only on td. I have seen several threads, but could not help me. don't recommend CSS Control toolkit. I have tried many different variations.. hard luck! let me know if I can tweak some CSS to control this behavior. Here is the code.
i have created a masterpage with menu. i add the menu item by retrieving the imageUrl ffrom the database and displaying the images instead of text and the same goes for the submenu. it worked perfectly but the problem i have is that i need to change the images of the menu on mouseover the images which i have save the URL of the images for the mouseover inside the database together with the URL of the original images of the menu.
i am trying to bind image column from database to a control (tried with gridview) to show images in one single row showing 3 images at a time with a scroll bar...can anyone let me know if there is any way of doing this with javascript but not with jquery??
We recently added a URL rewrite rule for a domain to run off of a share(actual name) directory. Well the domain share.site.com references the actual virtual for www.site.com/share as far as the url rewrite goes, because the menu and images must come from www.site.com/images and such. We were fine by adding in a base tag of <base href="www.site.com" />, but we started adding in modal popup and update panels then a bunch of javascript errors started bombarding the site. Is there a reason why the URL Rewrite doesn't use the virtual directory when the URL rewrite happens? I thought they fixed this.