Web Forms :: Changed Image With Same Url Is Not Reloaded In IE?
Jan 6, 2011
In my asp.net project, I have a view-image page and an upload-image page. I upload an new image and direct to the view page, the image doesn't be changed, because IE won't reload the image if the image's url remains the same.
prefer the way to ask the browser to reload the image independently without server setting or web-headers changes.
In my asp.net project, I have a view-image page and an upload-image page. I upload an new image and direct to the view page, the image doesn't be changed, because IE won't reload the image if the image's url remains the same. prefer the way to ask the browser to reload the image independently without server setting or web-headers changes.
i test it in one page it work correctly but when i want use it in product.aspx page it didn't show image i think in my page there is some code that prevent to showing image from database but i can't find it
I have a masterpage that is used as master page for all the pages in my application. I have no issues with the forms and pages. However, currently when any page is loaded master page gets reloaded. I think it is not efficient if master page is reloaded everytime the application paged are loaded. The desired behaviour is to have the master page loaded once and reload it again when a user logs in as the login/password elements are within the master page in the header section. Other than these situations I see no need for master page to get reloaded. Optimally when a user clicks on a link on the navigation bar (which is in the master page) I would like the header section in the master page to remain in the page and just the content section gets reloaded.
I am knew to CSS I never usually do it. I am creating a menu and I change the image of the button when the button is hovered over it. But when I go on the submenu the image reverts back to the original image. The code I have used is below.
I have a requirement where image has to be uploaded to a folder and show it in image control. When uploading the image i have resized the image through code and saved it in a folder. The code is as follow
I've got a working update panel which works fine when updating a label control, but I can't get it to work with an updated image (initial image loads fine - the problem is with the update). I think the problem maybe that the image name and location don't change, only the physical file. In other words, I've loaded the page, then updated the image (same name and location), but the image does not update with the label? Here's my code:
I've taken over work for the custom forums that a previous developer created at my job, and came across a minor bug. We don't allow animated GIFs as avatars in the forums. However, if someone were to take an animated GIF, rename it to imagename.jpeg, and then upload it, the forums will show the image as being animated.
It's a very odd bug as I didn't even think it played the animation if the extension wasn't .gif.
So my question is: Is there a way to check (in .NET 2.0) if an image is an animated gif, even if the extension isn't?
I have an asp.net page that sets a few session variables. On my development machine (localhost), I do a postback and the session values are still populated.
When I Reload the page by clicking on the url bar and pressing enter the session variables are still there.
However when i deploy this page to a webserver, the page still retains the session values when doing a postback, but as soon as i click the url and press enter the session values are lost (where the ispostback = false)
But when i press the refresh button the session variables are present (but i do get a popup warning me that the page data needs to be resent!)
i am running IE 7, and the webserver is iis6 what am i doing wrong?!
I have a [WebMethod] within an aspx.cs file. It seems that whenever a second call to the method is made via AJAX before the first call is fully executed, the web method completely stops functioning until the page is reloaded.
After some code change I have published my AJAXised web application to the server and the application failes to work properly - something weird is going on, as all .aspx pages are displayed as an ASPX markup text (page declaration, html controls, etc.), rather than a page is being rendered as an html. I have not changed the webconfig, only changed my pages' content/code behind.
For our ASP.NET project for school we had to build a sport event management web application.
We provide the application in three languages (English, Dutch & French) which you can switch all the time. This has worked all the time for all users, well that's what we think anyway.
Yesterday I found out that switching from one to another language isn't working for 2 of our users. So I started testing a bit and I always got this error.
I'll try to explain what happens behind the doors when changing the language:
First of all the current language is saved in a session so we don't have to check the user row every time a page loads. Besides that we save the language in the users row in the database.
I have a fileupload control in a contentplaceholder in a masterpage. I have to preview the image whenever I browse an image beside it in an imagecontrol.
My application is running on a different server .So I can't give the filepath of my local system.
Also I don't want to store the image in any location and i'm not supposed to use any session variable to pass it to generic handler.
I am trying to put a default image in an Image control in asp.net and it should show that particular image on the page when no other image is assigned or no image available in Database.
I know how to display an image in gridview from image path in database. Now, I want to display an image in an asp.net image control from image path in database. Can anyone point me to a tutorial? I haven't been able to find one that explains how to do it when I don't know what the image path will be. The images are in the root folder.
I use asp.net to download a csv file from server, like: ttp://www.asd.com.tw/files/items.csv , but when user click the link, the download file name change to items.xls. How can I let the file not to be changed?
What is the best way to get the value of a dropdownlist control before it has been changed and after it has been changed. Can it be done in one routine? In other words, if a user clicks on a dropdownlist control and changes it's value, I need to get the old value and the new value and send both these values as input parameters to a stored proc.
I have a rather short (~30 item) CheckboxList control and when it changes, I need to know which Checkbox changed.
I've got the CheckboxList set to AutoPostBack so I know only one Checkbox changed, but I don't know how to detect which one.
Unfortunately, the SelectedIndex property of the CheckboxList is useless. I'm sniffing around checking the ViewState, but I'm not sure if that'll work or how I go about that.