Skip to main content

All Questions

Tagged with
6,020 questions with no upvoted or accepted answers
8 votes
2 answers
5k views

how to return partial view as html using ajax

i want to return partial view as html so i can render in div as html, but its not working, i don't able to find the issue why its not working, here is my code. function getPartial(id) { $.ajax({...
Ethan's user avatar
  • 163
7 votes
1 answer
205 views

common practice to dynamically alter css in MVC(4)

what I'm used to do up until now, when there's need to dynamically set html elements style, (using web forms), I was setting hidden input(s), passing data from code behind and using jQuery to ...
RonenMaziner's user avatar
6 votes
0 answers
1k views

Dropzone Not Recognising File Or MIME Type Request Header. MVC .NET

I am using Dropzone.js to upload a file with an .msg extension and a MIME type of application/vnd.ms-outlook. When I select a file with a .msg extension the file type is empty. This can be fixed by ...
clD's user avatar
  • 2,553
6 votes
0 answers
2k views

Blank PDF when returning it as a byte array in a HttpResponseMessage from web API

so I am having this weird issue where I am trying to display a pdf that I am receiving from my web API, but the pdf shows blank in the new browser tab in Chrome (IE is showing nothing, but it console....
Shawn's user avatar
  • 2,425
6 votes
0 answers
2k views

WebKitFormBoundary on ajax file upload

I'm having some trouble with uploading files via ajax. Whenever I try to upload it appends extra lines that corrupt the file when its being saved. Like this ------WebKitFormBoundaryR4wrAzWF9BYdge12 ...
Josh's user avatar
  • 61
6 votes
1 answer
2k views

Exception while binding jQuery datatable to gridview

I am trying to bind jquery datatable to gridview. It throws exception. "The table must contain row sections in order of header, body, then footer. " Steps 1) JavaScript call <script type="text/...
James123's user avatar
  • 11.5k
5 votes
1 answer
246 views

How to make Browser Icon Flash in TaskBar on certain event in WebApplication

I am Working with SignalR in a Web application and i want to flash the browser icon to orange in the taskbar when client gets message from Hub. Code inside Hub. public void PrivateMessage(string ...
Divya's user avatar
  • 1,213
5 votes
1 answer
2k views

Modify download file name in html5 audio tag

I am working with an audio tag whose source can be one of several types but called from an ashx file, as I am dynamically loading the stream. <audio id="audio" controls="" autoplay="" download="...
Bauer's user avatar
  • 327
5 votes
0 answers
227 views

implementation of: ajax post - upload files + upload.onprogress using FormData

i am trying to implement an upgraded Ajax.post using javascript FormData i have posted files to dedicated Controller and successfully saved it to file system. so i have a controller - "UploadFiles" ...
Avia Afer's user avatar
  • 866
5 votes
1 answer
81 views

Link not opening after streaming data of the document down

I think I am missing some code on the JavaScript side. I am downloading the documents for each request. When the user clicks on the link, I go get the document data and stream it down. I see on ...
georges's user avatar
  • 51
5 votes
1 answer
2k views

MVC - Loading screen / disable button before and after downloading a file

So i have a button to download a csv file. The button simple does: $("#btnExportToContactList").click(function (e) { window.location.href = '/Home/ExportList'; }); My action simply returns a ...
Wheels's user avatar
  • 155
5 votes
1 answer
2k views

How do I call http api in https site?

How do I call http api in https site.My site is using HTTPS. I am using JS files like: //ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js I want call below api in javascript code: http://api....
Faiyaz's user avatar
  • 135
5 votes
3 answers
2k views

How to get selected drop down values from Controller MVC

The Following is the View : <div class="editor-label"> Select Currency : </div> <div class="editor-field"> @Html.DropDownList("CurrencyId", new ...
ujjaval's user avatar
  • 1,523
5 votes
1 answer
326 views

random ordered request for jQuery Autocomplete on C# IHttphandler

I've got a autocomplete textbox requesting an IHttphandler via IIS7 written in C#. But the requests that get to the webserver seems to arrive unorder. Here is an example of the log I get from the ...
Pitming_Reloaded's user avatar
4 votes
0 answers
1k views

CORS in Ajax request against asp.net webforms with Identity Server 4 authorization

I'm currently working on a site that uses a number of ajax requests and iframes to load and search data. It was built using C#, ASP.Net webforms and jQuery (mainly used for the AJAX requests) and acts ...
MJTechnoSol's user avatar

15 30 50 per page
1
2 3 4 5
402