Hi, I am trying to load data in Asp.NET MVC using JsonResult as return type to load rows in jQuery datatable server-side processing, but I am getting this error
This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet.]
So why I am getting this issue and how can I resolve it?
Here is my partial C# code
...Hello, I am using Visual Studio and I was constantly adding "/bin/projectname.dll" files on GitHub until now, but now I want to ignore these .dll files. So How can I ignore these build files and push only files like .cs, .html,.js ,.css etc to GitHub Repository.
...When I am trying to return JSON data to my jQuery Datatable(Ajax based), It is working in some cases, but it is throwing below error in some cases
...I am calculating distance between two Latitude and long
one is the current location of the user and another from the database, I want here if the lat-long distance is between 4km then show data
how can I do it using C#?
...I have just started using Cloudinary to upload images for my client's project there & I was trying to upload an image using explanation provided here https://cloudinary.com/documentation/dotnet_image_upload but it's not working for me, can you explain a complete example of this? Or any link of tutorial will also help, thanks.
...I am currently using Entity Framework in my ASP.NET MVC web application, I would like to use windows authentication in SQL Server string, so how can do it?
Currently, I have web.Config configuration using username/password of SQL Server in the connection string as below
...I Have populated the DropDownList with the roles from the AspNetRoles, when I am registering a new user and allocating a role an error is thown
"There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'Name'."
My AccountController :
...How can I delete (remove) single record from database table using entity framework in asp.net MVC Controller?
please note I want to delete row of selected Id from the database permanently(Not to make a column
IsActive
and set it as false
)