Images Are Not Appearing At Runtime?
Jul 26, 2010I have installed iis5.1,6,7 version on my computer. When ever i am exicuting my asp website i am not able to get the images in intenet explorer.
View 3 RepliesI have installed iis5.1,6,7 version on my computer. When ever i am exicuting my asp website i am not able to get the images in intenet explorer.
View 3 RepliesI'm using a masterpage on my website and the images appear correctly on all pages except the secure pages. The login page is formatted correctly, its just the page that is held in the secure folder. Both the header and footer images are either not appearing or are formatted incorrectly.
Code from the masterpage is below:
[Code]....
I have a number of images on my website (asp.net c# web.application) that are loaded on to my site. I have a specific domain that I use to load images with but I dont have it included in my markup. So at runtime I want to add this domain to the images if they dont already have it added at compile time. Whats the best way of doing this? Is it via a http module? I understand by doing this at runtime will have performance issues. Most of my images have relative paths. I cant hard code the domain as it changes by environment the application is running in.
View 1 RepliesI have a Masterpage that has Treeview. You can select some nodes there. Based on the selection you get some items in the Default.aspx's Placeholder, you get a image and a linkbutton placed in a Panel. Like this :
This code is in the Default.aspx that has the Masterpage.
[Code]....
There seems to be problem when i create the controllers at runtime, when the site does a postback, lets say if i click "Enska" in the treeview i get the results in the image above. Lets say that i then click "The Punk Panther" i get a error.
An error has occurred because a control with id 'ctl00$CPH_Main$ctl05' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
Also, how would i go by making a event handler for the linkbutton at runtime, can i make one event handler that every linkbutton uses or what ? I want the folder and the linkbutton to be clickable and link to the same place, is it simpler to make the whole Panel clickable, if so, how would i get a "OnClick" event on it ?
Can anybody let me know the activex script for detecting .net runtime and directx runtime or any other way how can I detect this in any machine by from my web page ?
View 1 RepliesI have downloaded published (code behind files are no there, combined with dll in bin folder) web application from window server 2008 where it is hosted, & open it with visual studio when i debug that application it shows following error: "Colud not load assembly because this assembly is built by a runtime newer than the currently loaded runtime" I don't know how can i solve this problem and test application locally.
View 2 RepliesI regularly (every few days or so) publish my ASP.NET web project to the local web server.
But the weirdest thing keeps happening... a file called "app_offline.htm" keeps appearing, unbidden, in my web project!
I have deleted this file several times, it is not in source control, and AFAIK nobody else is tampering with the project. But practically every time I try to publish the project, my publish fails (Unable to add 'app_offline.htm' to the Web site. The file 'app_offline.htm' already exists in this Web site.Error: The operation could not be completed. Unspecified error), I go back to look at the project, and there it is again, large as life, and I suspect if it could it would be blowing raspberries at me.
Having read up a little about this file, I gather it's meant to be an easy way to take your app offline. But I didn't see anywhere that it's supposed to impose itself on you arbitrarily for no good reason.
I installed Web Dev Express 2008 a while ago. Today I installed asp.net mvc 2, but the "New project" menu item does not appear on the File menu. I tried reinstalling both, but nothing happens. I also installed the beta of Web Dev Express 2010 but the New project menu appears there, but with no MVC template under it. I'm using the platform installer, it seems it is not installing it properly because the checkbox for ASP.NET mvc2 is never checked, which it should be because I've installed it.
View 1 RepliesI am using Entity Framework. I added a table, say Table A, to the edmx file. Since the table was modified by adding a column, say col, I had to make the changes in the edmx file also. I rightclicked the table and clicked 'Add scalar property' and added the column. But I don't know how to map it. Now an error is coming. Property 'Col' is not mapped.
View 4 RepliesI've been trying to get image caching working for the last 8 hours and I keep the same problem time and time again, I'm trying to cache Images at the moment and then when thats succesful, apply this to cache my js and css files. I have at the moment Sql Dependancy caching working on my dynamic pages but the page still takes to long due to images not caching.
What I have tried is going to IIS7 Management and adding HTTP Response Header for the images folder and setting various things for the cache control.i dont care how long it caches it on the client or on the proxy servers i just would like it to check when the file was modified and compare it with the one in the client or proxy cache and if they are different then fetch the new image which has been ftp up. i could solve this by changing the image name but the thing is the image name is generated when they are ftp'd to the site by an application and the name is a direct reference to the product so i cant change the name each time, as it would mean making a lot of otherpages accross the board.
so What i would like, is to set and expiry date of lets say 32 days or more on the images and then check to see if they have changed by date modified or some other way of checking(Etags maybe) I'm not sure, if they have changed on the server then redownload and recache them, I tried using post-check and pre-check together but that just permantly cached them, so when i change the image the only way it would display the new image is to just hit F5.
In Brief, how can i Cache images, on the client machine/ proxy cache and recache them when the modified date of the file has changed.
I added a textarea control to my page. Try to reference it in codebehind and it doesn't show in the intellisense. All other controls are though. I noticed that it also doesn't appear in the 'designer.cs' page.
[Code]....
Can you look at the page [URL] and tell me why the image at the top nav bar next to "subscribe | give a gift | customer service | " is not working? The link works, the page appears to be fine, but the image is not showing.
Here is the code (excerpt). I added the store link and image...
[Code]....
Masterpage contains submenus but they are not visible in IE8. Worked in IE6, Firefox, not so elegant in Safari. I thought ASP.NET was supposed to be browser independent?
View 6 RepliesThis is really annoying me now!! I found a lot of references to this last night but none now :-(I am attempting to use the editor control in a 3.5 site created in VS 2010 beta and whilst the control is appearing and I can use and reference it fine in code I cannot get the popups to appear for love nor money.The pop ups that I am refering to are the ones that appear to choose colour or to add a link.I am using the latest ajax toolkit available for download from codeplex, as I said VS2010 and working on the 3.5 fw
View 2 RepliesWhen I fire a get request to a view in my application for some reason my model validation messages are displaying immediately on the page even before a form submit.
View 5 RepliesI've got a page with a few labels which are affected by a SQL query on page load. For some reason the text remains invisible (or white o a white background) until I click on it or try to highlight it. I'm using 2 nested master pages and other similar pages do not have the same issue even though they use near identical code.
View 1 RepliesI have a development server, I make some changes to the .cs code behind file, and run it on my local server and it works fine.I now upload the changed files to the live server which is running an out of date file. The old .cs is overwritten with the new .cs file.The changes don't appear on the new site! SomeWhen I delete the codebehind file the page is still served on the live siteAny changes on the aspx file show on the live server, but not changes in the .cs fileI've tried restarting the server/IIS but it still serves the old fileIt's definatly in the right directory as I change the aspx file and changes appea
View 4 RepliesI have a part of my website that uses SSL, and a part that does not. I began having issues recently where the link that takes you to the https part of the site would keep getting rerouted to http. In IIS I have SSL on and required for the members directory, and the certs are all fine. My site is http://mcsd-sc.mcbarons.manheimcentral.org/. I first started by routing the pages directly to the secure part using the <meta http-equiv="refresh" content="0;url=urlgoeshere" /> on a redirect page in the /members directory and this was working perfectly. When my issues started, changed it and made the link just go directly to the members part of the site with the https included in the URL (this is how it is now). Now when you click the link it takes you to the member page without using https, thus throwing an error because I have SSL required on that part of the site. When you look at the code in IE, it just shows the direct link using plain HTTP. When I open the code directly on the server, I see the URL beginning with HTTPS. I've been having a lot of issues lately with updated content not refreshing itself, and rebooting the server does nothing. At this point I'm stumped. I think it might be something in IIS, although I haven't touched it in a long time, unless a recent security update messed it up, which is the only explanation I can think of that would screw it up all of a sudden. The site works perfectly when you manually type https. I thought it might have also been my cache, but I just tried it on a computer that I haven't ever gone to the site on before and I got the same issue.
View 5 RepliesI want to show on one of my pages a slideshow type page. Basically I want it to show a selection of images from a folder and have the images scroll from right to left.
View 8 RepliesI want to write one program by visual studio 2008 (C# and ASP) that has web application and windows application.
I want to get clients images in web app(upload) and store them in DB (mysql) then send these images to windows app via web service (so i new web service, not web site). But i have 2 problems:
I have 2 ways to store images in mysql, first i should have BLOB field in DB -that it takes more space-, second i should save just name of each image in DB(so have image in one folder) -in this way i don't know how get image from clients and store them in that folder-. which one? Or what other? How (code) can i transfer image via web service(Byte[] or? ).
how to upload images to server(application/images folder) and retrive(display) from and on client PC for asp.net. its just for uplaoding logo directly to server folder and retriving from server to client. i am not getting server path on client pc for image.
View 5 Repliesi have the following scenario, i have a column of a gridview that shows me a text telling me is the user is allowed or not to access to some page, but now i just showing allow and deny, but i wanna show images that represent me the action, how can i do that?
View 3 Replies[Code]....
i am using asp.net with c#, i have table images
shop nvarchar(50),
imgc image
imgo image
iam saving images in a database but while retreving it is showing blank images. i want to display as thumb nail images
I wanted to combine app_themes css files into one on the fly. I did so using Mads Cristensen technique. But now all elements that has background image defined through css (see picture) don't display image. I believe that is because css files are not relatively referenced anymore (../), but through axd file. I'm trying to fix this by changing reference to image files without success. I already tried background: url("~/App_Themes/44/images/myimage.gif") and this works for pages that combined css. But the problem is that there are other pages in this project that don't use this css combining and now they lost reference to background images.
View 1 RepliesWhat will happen if multiple events appear in same time ? Which will be first executed ?? Is there any some kind of "events order" ?
View 2 Replies