How To Force Browsers To Reload The Site's CSS
Oct 15, 2010
I have run into the problem where my css files are being cached in browsers. This is a fairly common problem, and a common solution is to simple add a version number in the url to the css file. Example: MyCSS.css?ver=1.12
However, I'm using a custom skin for DotNetNuke which forces the usage of the file: skin.css
I don't have a way to point browsers to skin.css?ver=1.12 (or at least I'm not aware of a way)
Are there any tricks I can play with IIS, DNN, or ASP.NET (default.aspx file for DNN perhaps?) to force clients to reload CSS?
View 1 Replies
Similar Messages:
Jan 19, 2011
I've seen "What is an elegant way to force browsers to reload cached CSS/JS files?" but the answer there uses PHP and it doesn't address the fact that the CSS is injected dynamically by an ASP.Net Theme.
View 2 Replies
Jan 15, 2013
I've been playing around with a .NET ActiveX control in a web page as a possible solution to a particular situation. I set up a .NET user control project, added some UI controls, and eventually got the DLL to load in Internet Explorer and run. However, I've run into two problems.
1) I've tested it on two Win XP PC's, one with IE7 and the other with IE8. Everything works fine in IE8, but I get various permissions errors in IE7. Both machines have the same security settings in IE (it's in the trusted site zone, all ActiveX relating settings are the same, etc.). Does IE7 somehow interact with .NET differently then IE8? So far I've only been able to test it on the two machines.
2) Is there any way to force IE to reload the .dll from the server? I've tried everything I know (F5, Ctrl-F5, Ctrl-Refresh Button, Alt-D Enter, etc.), but it seems like IE randomly loads different versions of the .dll. Closing IE and restarting usually gets it to load the latest version, but that's not very convenient when making mods and testing them.
View 1 Replies
Jan 13, 2010
I have a gridview control where clicking on a specific row saves an ID number to session("ReportID") and then brings up a popup window. The popup window checks session("ReportID") on load and then displays the correct report information. This setup seems to work fine in Firefox and Safari, but for some reason IE is not refreshing the popup window. I'm trying to figure out a way to force IE to refresh/reload the popup window like it does in firefox/safari. If the popup is not refreshed then it won't update the information on page_load. Code below:
[Code]....
I thought that window.open should automaticly reload the page in the called popup window as this is what FF and safari seems to do, but maybe not. I think that the javascript .reload() may force IE to refresh the popup, but I don't know what the correct syntax would be.
View 9 Replies
Dec 18, 2010
I have a grid where user will click on a button provided in each row to download the file.
After each download I want to update the download attempt.
but since I am using force download my databind method does not make any difference in the page.
View 4 Replies
Jan 25, 2011
What is the best practice to force the postback Data and ViewState data to be re-loaded on the code behind?
The reason I ask this is, i have one gridview which is generated dynamically and I when it is structure is generated the postback data is already loaded and I want to forse asp.net to reload the postback data once I have my gridView structure is generated.
How can I achieve this?
View 1 Replies
Feb 28, 2011
I have an input form on a page along with gridview and combo box. a user first select a filter combo box then click on search, to see a return values in a grid view format. then a user can enter new row once he / she cick add, i want the page to reload and the new inserted value to show in the gridview.
View 1 Replies
Aug 6, 2010
When I create a new record by submitting an .aspx page the new record is not showing up. I have to navigate away from the page and back to it for the new data to show.
How do I refresh the data up reload??
View 3 Replies
Sep 30, 2010
I want to be able to log when a user ends their session on our application and record whether it was a sign out or a the session expired. I am using
cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
to set a new sessionId on sign out, but when the session expires, the sessionId is reused if the browser instance is not closed. In my web.config I have used
<sessionState mode="InProc" timeout="1" cookieName="session" regenerateExpiredSessionId="true" />
but still get sessions reused. I can't kill the cookie in Session_end() because I don't have access because there is no HttpContext or request, so I can't reset it that way. how I can force a new sessionId from the Global.asax.cs file?
View 2 Replies
Oct 29, 2010
I get different outputs in different browsers.
[code]....
View 1 Replies
Jan 26, 2011
I have a requirement where I have to transfer a user from Web Site 1 on Server A to web Site 2 on Server B.
On Web Site 1, I have to provide controls to enter user id and password and which have to be validated on Web Site 2 on server B, after validating them I have to redirect the user to Web site 2.
what is best way fo doing it. code examples are greatly appreciated.
Note: On Web Site 2, user login functionality is already existing and it is provided by ASP.Net login control, am not sure how to handle the user login process from two different places.
or is it the best way to move Web Site 2 from Server B to Server A so that, the same login controls will be shown using Iframe on Web Site A.
View 6 Replies
Feb 18, 2011
I am trying to use domain masking to simulate multi-tenant access to my application. The plan right now is to read the subdomain portion of the domain ie: [URL] and load settings from the DB using that name.
The issue I'm having is that request.url is getting the request url - NOT the url in the browser.
So if I have [URL] forwarding to [URL] with masking, request.url is grabbing the latter, simply because of how masking works, i assume - by putting the masked site inside of a frame.
Is it even possible to read the url in the browsers address bar?
View 1 Replies
Aug 5, 2010
I am designing ASP.net Web pages and not sure if this would be the right way to do this.I am designing the web sites that will be accessed from either regular computers or mobile devices (phone).I was thinking to detect at very first page that whether users are coming from mobile browser or regular browser and direct to appropriate pages. So for mobile users, create/display separate UIs (rearrange controls to fit on mobile device) and for regular users, create/display separate UIs. The backend functionalities will be same, but just the UIs. Therefore, in this case I will create two separate projects in same solution, one for mobile UIs, and other one for regular UIs, but same code behinds.
View 3 Replies
Dec 9, 2010
I had bad problem I had table in database which display images for products the data type of model image VarBinary(Max) when I published new web site and tested the pages on sararie,firefox,IE8 the image in some of images appeared with small size from the original on image size
View 2 Replies
Jun 28, 2010
What is the best way to respond to browsers that have a small form factore (ie mobile devices)? Is there a way to have it return a different aspx page if the size is below a set number?
View 2 Replies
Sep 17, 2010
So I'd like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I'd just like to see if the user is using IE, Firefox, Safari, Chrome, or Opera; all other users go to the mobile site. My biggest problem is detecting regular Safari from mobile Safari.
View 1 Replies
Jun 12, 2010
Upon my study in ASP.net i came across something very weird. Earlier this day my application ran fine in Firefox and Internet Explorer.
When i now try to debug my application it wont pop-up in both. When looked more deeply i saw that it didnt load the right port, is there a way to fix this so i dont have to check and change it manualy all the time?
View 5 Replies
Dec 19, 2010
i'm programming an application where an action is done if i access with a version equal or higher than other and another action if i access with a lower version; but the problem is that the lines to indicate the versions doesn´t work. The code is the following:
[Code]....
As you can see, an action should be done if the version is the 9.0 or higher and other if it is lower, but these lines doesn't work and only works the detection of the web browsers (no the versions of them, action that doesn't works).
View 2 Replies
Aug 4, 2010
I realize that pages are just going to look different in varying browsers, but mine is looking awesome in Chrome, ok in mozilla, and pretty bad in IE 7.
Sadly, most people using my page will use IE.
My issue is with the borders. I have a redish border around the rows of the grid. In chrome they all appear as they should. In Firefox the bottom and top of each row are working, as well as the right and left of the outside columns, but all the inner columns do not have vertical borders.
In IE, all the borders are missing. There are simply white gaps between my columns and rows.
EDIT:
<asp:GridView ID="ProductsGrid" runat="server"
AutoGenerateColumns="False" Height="323px"
style="margin-top: 23px; margin-left: 0px;" BackColor="White"
BorderStyle="None" BorderWidth="0px" CellPadding="4"
[Code]....
View 1 Replies
Jun 10, 2010
I just ran Google's Page Speed application against our site and one of the recommendations was to Leverage browser caching. Expanding this revealed the following:
The following cacheable resources have
a short freshness lifetime:
Specify an expiration at least one week in
the future for the following resources:
<a long list of images >
<some javascript files >
How do I go about lengthening the "freshness lifetime" of particular images?
It's an ASP.NET project running on IIS7.5
View 2 Replies
Feb 18, 2010
ASP.Net Session is having same value for differnt browsers....Why is it so?
View 3 Replies
May 29, 2010
I have a Web Application and I want to get a confirmation from users when they are closing the application no matter what.
I mean I'm looking for a way to display a message touser whenever user try to close the application.
Update : I want to use my dialog box not browsers dialogbox. r at least a dialogbox which only shows my message no extra message.
View 1 Replies
Aug 19, 2010
i need a information of how to avoid the reload source editor window for after xml file save using Asp.net
View 1 Replies
Feb 24, 2010
I have a page which contains a button that perform the following code, I want to reload the page after the response end so that update a grid in that page. or suggest a way to update the grid after response end.
[Code]....
View 1 Replies
Sep 17, 2010
I have a dropdown which shows filesnames and when the index is changed, the slected file is offered for download. I also have a button which creates new files ... now after a new file was created, the new filename should also be shown in the dropdown. It works fine, when I refresh the page, but this is not what I want. I tried putting the dropdown in an updatepanel and giving it the file create button id, it failed ... is this the correct apporach or is there an easier way?
View 5 Replies