C# - Serving An Exe To Firefox From An Aspx. Firefox Downloads It As "Content". Incorrect Filename And No Extension?

Mar 28, 2011

I'm trying to server an exe to Firefox from an aspx page. The aspx page handles the headers and the page is launched by our Flex GUI. Flex correctly launches the link for all browsers (including Firefox) so I'm certain that's not the issue.

The problem I'm having is when I try to download the file from within Firefox, FF downloads the file fine but it names it "Content". It has no extension and the file name is incorrect. All the other browsers download it with the file name I specified in the aspx page and they all have the .exe extension. I should note that if I rename the "Content" file to "Content.exe" it runs correctly.Below is the code I'm using in my aspx page -

protected void Page_Load(object sender, EventArgs e) {
string fileName = Request.QueryString["file"];
System.IO.FileInfo fileInfo = new System.IO.FileInfo(Server.MapPath(fileName));

[code]...

View 2 Replies


Similar Messages:

Firefox - Finding Firebug Addon Automation / How To Interact With Firefox Addons

Nov 16, 2010

has any one done any automation related to Firefox - Firebug

I am trying to automate some task using C#

I found these two open source projects related to automating firefox

[URL]

how to interact with firefox addons

View 2 Replies

Custom Server Controls :: Firefox (Firefox/3.6.13 ) Not Saving Cookies For Https In Logi Report(It's A Reporting Software0?

Feb 7, 2011

I am using Logi Reports for creating reports in my application. I am passing cookies from web application to these logi reports. Cookies were workign correctly before, but after the release of this version. Cookies are not working in these logi reports.

View 1 Replies

Firefox Ask Save File Aspx Intermittent?

Dec 2, 2010

I have a project in asp.net 4.0 IIS Win 2003 Server.It's working perfectly, but after a while, certain pages are asking to save, instead of open.Ai closing the browser and open the system again, with this back to work, but it's the same problem after a while accessing.

View 4 Replies

CSS Linked To Aspx Page Is Not Loading In Firefox?

Feb 17, 2011

I am creating a aspx page using visual studio 2008. and linking it with a css via

but when i build it page opens with only html format and CSS look and feel is not applying

View 1 Replies

AJAX :: Popupextender In Tab Control - Content Visible On Page Load In IE8 / Safari / Firefox

Feb 10, 2011

I am embedding a popup extender inside a tab...simple enough - for some reason the content is visible when the page loads - it can be dismissed by selecting the button and then dismissing the popup. Everything works in compatability mode.

I can't tag the panel as visible=false as it is no longer rendered at all.

[Code]....

View 2 Replies

How To Check Filename If There Are Multiple Dots Right Before File Extension

May 17, 2010

I have a fileupload feature in my app, there are some files users upload example: varFileName = "myfilename....pdf"

how to remove those multiple dots right before extension.

View 2 Replies

Configuration :: Ock Down A Web Server That Is Only Serving MVC Content?

Apr 17, 2010

I would like to lock down a web server that is only serving MVC content. What is the best way minimize my server's attack surface?

View 2 Replies

Serving Up Multiple Content Items?

Feb 4, 2010

got a Asset Management tool which stores (in a folder("node")) an index.htm and a bunch of other asset files such as .js, .css, flv, etcHere's the problem...if I access the index.htm I get ti via it's nodeID http://site/NODEGUID/index.htm , and all compound files try and download via that GUID as well so essientially I just get index.htm content served into each request file, thus giving me an epic fail :)Is there some way in asp.net to intercept that request so I can do a lookup on the DAM and get the proper file reference and send that down instead?

View 3 Replies

Iis7 - Serving Static Content From A Subdomain Using URL Rewrite

Feb 24, 2011

I have a domain which is receiving quite a few hits per day and have been asked if I can serve the static content from a subdomain. As the site is quite extensive and already written, I was wondering if there is any way I can use URL rewriting to change:

www.example.com/image.gif
to
static.example.com/image.gif

I have a solution which works using 301 redirects but from what I understand, this is counter productive as 2 requests will have to be made per image. I don't really want to go through all the aspx pages and css to hard code the new url as it will cause problems further down the line - some parts of the site are still being developed and static content could change at any time. I tried using rewrite (as opposed to redirect) to change the url but it came out something like:

http://www.example.com/http://static.example.com/image.gif

How would you achieve this? I have full access to dns and the server (win 2008r2 / IIS 7.5) so can make any changes if url rewriting is not the answer.

View 1 Replies

Content Type When Serving A File In A Generic Handler?

Dec 10, 2010

I'm busy writing a handler to serve various documents for download or presentation in web forms pages. The documents range from various image formats, to PDF, to MS Office documents, to generic binaries. My basic draft of the download process is as below:

[code]....

However, I have some misgivings about lumping all documents together as application/octet-stream, and I would prefer, if feasible, to use a more specific content type per document type. I have a DB table for document types where I could store this. Am I going in the right direction, and if so, where can I find a suitable starting list of content types for document types?

View 1 Replies

.net - Serving An Image Stored In A Database On An Aspx Page?

Aug 23, 2010

I'm pulling back an image that is stored in a column in a SQL server database.I need to serve this up on an aspx page.

View 4 Replies

Firefox Does Not Work With IE7?

Mar 29, 2011

I am trying to implement a feature for my web site for library access. Normally users access the site with http://www.famnet.net.nz. This => a welcome/logon page, you may decide to register, etc etc. I programmed access from http://www.famnet.net.nz/library.aspx?userid=testlibrary. This URL (or one like it) is intended to be a link on a web page within a library: clicking the link opens the site with the user already logged on as "testlibrary", with some differences in function compared with an individual logon. This all works perfectly in my testing, using Firefox. However it does not work with IE7. I programmed diagnostic statements that should appear from all paths: but these don't appear with IE7 (but they do with Firefox).

View 5 Replies

C# - Web App Works In Firefox But Not IE8?

Oct 19, 2010

I've built this app that displays employee photos stored in several sharepoint folders. It also displays the employee name extracted from the file name and a previous and next button to move through the photos.

The markup is surrounded by an update panel to prevent the entire page from reloading when you click to view the next photo.

The app is working fine in firefox, but the images do not display in IE8. Can anyone tell what is causing this?

public List<string> photoFileList = new List<string>();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session["index"] = 0;

[Code]....

View 1 Replies

Ckeditor Will Not Work In FireFox?

Sep 27, 2010

I'm using ckeditor in my page and it's work fine, except when I'm sending email. The mailbody is empty in FireFox, in IE it works fine. What can it be? Here is my code

[Code]....

View 3 Replies

Firefox Won't Display All Tags?

Mar 5, 2011

I have an issue with Firefox. After creating a new template for my website using <div> tags, i noticed that not all tags are displayed when i preview the site in firefox.

I put the sample template in the following location:

[URL]

I was able to verify my CSS with the following link: [URL] and it passed without any problems. The html part is correct as well.

My question is how come two div tags: <div class="header9"></div> and <div id="sidebar"></div> are not displayed in firefox. It works fine with explorer but firefox has issues.

Also the background-color for <body> takes over in the middle, even though i've created a <div id="wrapper"> with all divs inside and background color assigned to white.

I've tried developer extension for firefox but still was not able to find the problem.

It's very annoying that simple (basic) tags such <div> could have isssues being displayed. Does anyone know what am i doing wrong and how to fix that issue?

View 7 Replies

Div Visibility Is Not Working In Firefox?

Jun 22, 2010

The Div can be visible or invisible in IE, but not in FireFox, the main purpose is: when user typing text in a password textbox, if the CAP LOCK is one, show the div:

<asp:TextBox ID="Password" runat="server" TextMode="Password"
onkeypress="capLock(event)"></asp:TextBox>
<div id="divMayus" style="visibility:hidden; background-image:url(../App_Themes/CapLockOnAtHome.png); height:25px; width:100px;">
</div>
<script type="text/jscript">
function capLock(e){
kc = e.keyCode?e.keyCode:e.which;
sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
{
document.getElementById('divMayus').style.visibility = 'visible';
}
else
document.getElementById('divMayus').style.visibility = 'hidden';
}
</script>

Have also tried: display='none', display='block' or display='inline', also not working, no I am confused which to use for both IE and Firefox.

View 2 Replies

FireFox Running Page_Load Twice?

Feb 25, 2010

I am having a problem with FireFox, I have an app using VS 2008 and it is using a Wizard control. Under IE the app only runs Page_Load once but FireFox is running it twice which would'nt be a big deal except the second time it is not going through as a post back so all of my setting are getting reset as if it was the first time through. I have see in previous post that the problem was autoEventWireup needed set to False, well mine is. I am using Ajax and UpdatePanel.

View 3 Replies

Scrollbar Not Showing Up In Firefox?

Apr 29, 2010

I know browser compatability isn't fun, but this one is odd. I have the following code:

[code].....

When the user clicks on a link in any version of IE, Chrome, or Safari, the scrollbar on the right side is there, no problem. But when they do it in Firefox, the scrollbar is missing. They can hit page down to scroll through the info, but why wouldn't the scrollbar be there as well?

View 6 Replies

How To See A Query String In FireFox

Jan 19, 2010

In IE 7, I can right click on my page and select properties and (usually) see the query string that was passed to that page.

How do I see this in FireFox? I am having a bug where I should be passing consecutive numbers in the query string, such as deal_ik=1,2,3,4,5 etc but 5 is missing. So I want to examine the query string that is actually getting passed.

View 7 Replies

RequiredFieldValidator Not Working Under Firefox

Feb 24, 2010

I use 2 requiredfiledvalidator for 2 selects, one is working but the second one (the one I need) isnt

<asp:dropdownlist id="ddlMod" runat="server" Width="235px" AutoPostBack="True" Font-Names="Arial" Font-Size="XX-Small">
</asp:dropdownlist>
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Font-Names="Arial" Font-Size="XX-Small"
ErrorMessage="Select Mod" InitialValue="00" Display="Dynamic" ControlToValidate="ddlMod">
</asp:requiredfieldvalidator>
<asp:dropdownlist id="ddlInd" runat="server" Width="235px" AutoPostBack="True" Font-Size="XX-Small">
</asp:dropdownlist>
<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Font-Names="Arial" Font-Size="XX-Small"
ErrorMessage="Select Ind" InitialValue="0" Display="Dynamic" ControlToValidate="ddlInd">
</asp:requiredfieldvalidator>

If i select the 2nd one I can see the error message for the 1st one, but I can't see any message if I dont select any or if I select the 1st one.

View 2 Replies

Fckeditor Not Working In Firefox

Jul 12, 2010

var oEditor = FCKeditorAPI.GetInstance("<%=FCKeditorSelfDocument.ClientID %>");
var oDOM = oEditor.EditorDocument;
oDOM.body.innerText = 'Hello';

it is working fine in IE and chrome but not working in firefox 3.6.4

View 2 Replies

C# - Page Working In Firefox And Not In IE

Nov 14, 2010

We were deploying our ASP.NET web app onto a new production server today. In our test server, the pages were working fine on both IE and Firefox. But now in the production server the main welcome page loads and to enter the application which has a submit/enter button in it does not work in IE and shows a page not found exception. The same link is working fine in Firefox. We are using css and JavaScript and i have read that they may cause problems. But i wonder how i did not have any issues with both IE/Firefox in my test server.

View 3 Replies

MVC's And Firefox's Cache Work?

Aug 3, 2010

I use the following code to write cache header on *.png requests:

response.Buffer = false;
response.BufferOutput = false;
// Emit content type and encoding based on the file extension and
// whether the response is compressed
response.ContentType = MimeMapping.GetMimeMapping(physicalFilePath);
if (mode != ResponseCompressionType.None)
response.AppendHeader("Content-Encoding", mode.ToString().ToLower());
response.AppendHeader("Content-Length", count.ToString());
// Emit proper cache headers that will cache the response in browser's
// cache for the default cache duration
response.Cache.SetCacheability(HttpCacheability.Public);
response.Cache.AppendCacheExtension("must-revalidate, proxy-revalidate");
response.Cache.SetMaxAge(DEFAULT_CACHE_DURATION);
response.Cache.SetExpires(DateTime.Now.Add(DEFAULT_CACHE_DURATION));
response.Cache.SetLastModified(lastModified);

But every time I refresh the page which contains the PNG URL, it will post to web server again. It seems that the cache header not work, and worse, it make the browser cache not work too. I am using asp.net mvc.

View 2 Replies

Will A Web App Designed For IE Run On Firefox Without Any Modifications

Jan 21, 2011

We have designed C# .Net our web app to run on IE.

I mean the front-end: Will the front-end be perfectly the same for all types of browsers like lE, Firefox, Chrome, Safari, Opera etc?

Or will we have to do changes and keep separate versions for each browser type? Will it be possible to use
style sheets for this without coding? If so how?

Will there be any affect on the back-end also?

Also will Firefox, Chrome, Safari, Opera etc. support Javascript, Jscript etc?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved