All Questions
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({...
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 ...
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 ...
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....
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
...
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/...
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 ...
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="...
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" ...
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 ...
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
...
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....
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 ...
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 ...
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 ...