Data dodania Pytanie
2017-06-19 20:06 Unable to start ASP.NET Core with HTTPS »
I have a WPF application, which starts a ASP.NET core WEB API application. When I start the WEB API project as the startup project with these configu...
(1) odpowiedzi
2017-06-19 15:06 Razor engine can't find my view in .Net Core class library »
I have my class library, which consists of ViewRenderService class: public interface IViewRenderService { Task<string> RenderToStri...
(1) odpowiedzi
2017-06-18 10:06 Session Variable value are not storing into MS Sql Server Database »
I am using two session variable and i assign the session variable to another variable and i display it get the value correctly from the session variab...
(1) odpowiedzi
2017-06-17 17:06 Multiple errors on _Layout.cshtml in ASP Core »
I have an ASP Core application. It builds and runs without any problems but Visual Studio is showing lots of errors: | Severity | Code | Descr...
(0) odpowiedzi
2017-06-17 14:06 Token endpoint with AllowInsecureHttp=false still accepting http requests »
Hope anyone can help me with the following highly frustrating problem. I have .NET WebApi which I secured with jwt authentication. In setting up the ...
(1) odpowiedzi
2017-06-16 22:06 ASP.NET Core giving me Code 500 on Forbid() »
I tried to solve this for hours now and I can not find anything. Basicly I have a simple controller which roughly looks like this: [Route("v1/lists")...
(1) odpowiedzi
2017-06-16 16:06 asp.net web api route for controllers with same name »
I am integrating my project with another one Multiple types were found that match the controller named 'XXXXX'. This can happen if the route that se...
(2) odpowiedzi
2017-06-16 15:06 Wrap content with link if condition = true? »
What is the best way to wrap some elements inside a link, if a condition is true? So, lets say i have this markup: <div> <h1>Header&l...
(2) odpowiedzi
2017-06-15 14:06 ASP.NET Core Route Tag Helper use Route? »
I'm kind off confused about how the asp-route-* tag helper works. What I understand is that it's kind of bound to the routing I've setup. E.g. route...
(1) odpowiedzi
2017-06-15 06:06 protect pdf file with password c# »
connetionString = ConfigurationManager.ConnectionStrings["conString"].ToString(); sql = "select Id,employeeName,employeePosition from ...
(2) odpowiedzi
2017-06-14 17:06 How to render HTML content coming from Model »
So, I have a wordpress like website in ASP.Net MVC 5, where I can create website for my customers. Now one of the customer's website needed a text box...
(1) odpowiedzi
2017-06-14 15:06 Anti Cross Site Request Forgery (CSRF) token in asp.net c# »
Our team has developed an c# asp.net application and it recently went through a security check. One of the many threats include using anti CSRF token....
(0) odpowiedzi
2017-06-13 21:06 Retrieve URL from MVC ViewData in jQuery »
Struggling with this a bit. I'm passing an absolute URL from the controller to View and trying to retrieve the URL in the jquery to pass it to an Ajax...
(2) odpowiedzi
2017-06-13 18:06 C# Insertion Order into List from Entity Framework »
I was surprised to see that I am having insertion order issues into a C# list when instantiating it from an Entity Framework Select. I am creating mu...
(1) odpowiedzi
2017-06-13 17:06 How to order a table in a specific order based on condition of the table data in asp.net? »
My Issue: I am looking to order a table which i have set conditions on to display by a type. For example, i have conditions which make a row green, a...
(1) odpowiedzi
2017-06-13 13:06 How to return a zip file via AJAX that prompts for download? »
I have an ASP.NET Core Action method that I want to return a zip file for downloading to the client and It looks like this: [HttpPost, ValidateModel]...
(5) odpowiedzi
2017-06-12 15:06 How use HttpWebResponse and WebResponse in .NET Core? »
I'm porting an old C# Shared Lib to a Standard Library. However I'm facing with a lot of System.Net.HttpWebResponse and System.Net.WebResponse referen...
(1) odpowiedzi
2017-06-12 15:06 Retrieve Xml and string data in JSON Format from WebAPI »
I have created a WebAPI which i need to convert strings and Xml data into JSON resultset for my application. But what resultset i am getting is not th...
(1) odpowiedzi
2017-06-12 03:06 .NET WebApi Async Controller Action Executes Forever »
I am having a tough time following.NET Async/Await examples, such as the official MDN tutorial. From what I gather, to make a controller action async...
(1) odpowiedzi
2017-06-11 20:06 Using ExecuteScalar() in place of ExecuteReader() »
I am learning Web API and working on a small project (I know this question is not related to Web API, but just to get to the scene). So I have this fu...
(1) odpowiedzi
2017-06-08 21:06 Unable to call @Html.Action() in jQuery »
I'm trying to get the html from one of my partial views into a div tag with the id "searchpage" in my main view. However, when I follow the syntax in ...
(3) odpowiedzi
2017-06-07 15:06 Use MSAL Auth token to consume Web API 2 »
I have an ASP.Net Web API 2 on which I implemented the following security: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-dire...
(1) odpowiedzi
2017-06-07 02:06 Razor & Null Coalescing - not working under explicit C# 6 MVC 5 project »
Current project: ASP.NET 4.6.2 MVC 5 Visual Studio 2015 Community v14.0.25431.01 Update 3 Installed the CodeDOM Providers for .NET Compiler nuget pa...
(0) odpowiedzi
2017-06-06 15:06 Failed to load resource, error 404, running with IIS Local »
Good morning, I developed a mvc 5 application, during development I used IIS Express, all the files there loaded perfectly, when I uploaded to my IIS ...
(1) odpowiedzi
2017-06-06 15:06 ASP NET MVC RAZOR Upload Multiple Images FileList »
I'm new in asp net and I have a List of images and I want to send through javascript to the controller. I'm using FileList and here is an example. .C...
(2) odpowiedzi
2017-06-05 02:06 testability considerations while creating controllers »
I am writing controllers in Web API 2, against which odata queries will be executed: [Route("", Name = "GetAccount")] [HttpGet] public async Task<...
(1) odpowiedzi
2017-06-04 22:06 Returning a view from a method by calling its method »
I have a method in a controller named AspNetAssessment_QuestionController public ActionResult Excel_Data(HttpPostedFileBase excelfile) { if ( exc...
(2) odpowiedzi
2017-06-04 16:06 When and how to use POST, PUT, and Delete method in Web API »
I am new to Web API and the tutorial I was watching uses Fiddler to sniff and send request. My question is how to use the post, put and delete method...
(2) odpowiedzi
2017-06-04 01:06 asp.net MVC - Is there a way to set a TimeSpan's max range in it's editor in a view? »
I want to set a max TimeSpan range so that only 8AM - 8PM can be selected. I'm using razor, so my html looks like this: @Html.EditorFor(model =&gt...
(1) odpowiedzi
2017-06-03 16:06 Create drop down list asp.net core »
I have two view models: public class PersonViewModel { public int Id { get; set; } public string FirstName { get; set; } public string La...
(1) odpowiedzi
2017-06-03 15:06 How can I get my javascript work in an asp.net cshtml file? »
I have a html input for uploading a picture to my ftp, and I want my JS the detect changes on my button. My cshtml is: @using (Html.BeginForm("...
(1) odpowiedzi
2017-06-01 17:06 My PartialView is causing my application to breakdown everytime »
I'm trying to load my partial view with some data from database, but I'm getting following issue when I run the application: Child actions are no...
(1) odpowiedzi
2017-05-31 18:05 How to provide extra methods for returning IHttpActionResult? »
I have an ApiController that returns OkNegotiatedContentResult<T> with a resource collection, paginated. Naturally, there will be more methods t...
(1) odpowiedzi
2017-05-31 10:05 Call JavaScript function from ASP.NET Razor »
I am writing Razor code in a view, and need to call a JavaScript function with the JSON that is rendered by the Razor code: // JavaScript function fu...
(2) odpowiedzi
2017-05-31 08:05 How to get the IP addresses of the machines are connected to my PC using without using ping methode C# »
I want to get the IP Addresses of all the machines connected to my PC using C#, but I don't want to use the Ping method because it takes a lot of time...
(1) odpowiedzi