Data dodania Pytanie
2017-01-17 21:01 Send multiple files using ASP.net core web api »
I need to send multiple files to ASP.net core webApi method.I have tried as shown below.But it always shows as 0 files.Can you tell me why ? [Route("...
(1) odpowiedzi
2017-01-16 21:01 asp.net mvc : disable mvc form »
I have an application in which an user can edit a form. This is my code : Controller and ViewModel : public class HomeController : Controller { ...
(2) odpowiedzi
2017-01-16 17:01 What is equivalent of HostingEnvironment.ShutdownReason in ASP.NET Core? »
In old ASP.NET I could tell why my app stopped by looking at HostingEnvironment.ShutdownReason. In ASP.NET Core, this doesn't exist. Where can I get ...
(1) odpowiedzi
2017-01-16 15:01 How to access client side scripts from Source View smart tag designer by using GetClientScriptsInDocument »
I am trying to get the Script node block of ASP page and modify it dynamically, through code implementation. In order to do that I have a custom wizar...
(0) odpowiedzi
2017-01-16 12:01 Where can I log an ASP.NET Core app's start/stop/error events? »
In old ASP.NET, in the Global.asax.cs class, I would log when the app starts, stops and throws unhandled exceptions: Application_Start() Application...
(1) odpowiedzi
2017-01-16 11:01 HTTP Post from angular2 to .NET web api doesn't work »
I'm building a site with an angular2 frontend and .NET backend, the GET calls to the backend have been working flawlessly. Now I want to POST some s...
(1) odpowiedzi
2017-01-15 17:01 how to create websocket controller similiar to api controllers »
I am using asp.net core to make a webapi + websocket server. I have create a websocket middleware to check if each incoming request is a websocket r...
(0) odpowiedzi
2017-01-14 17:01 Error while installing package in ASP.NET core app »
I am using VS 2017 to create ASP.NET Core Web app. While installing Sendgrid package, I am getting following error. Package Sendgrid 8.0.5 is not ...
(2) odpowiedzi
2017-01-14 12:01 web api private chat message filter asp.net »
I would like to create message filter between 2 users. What i mean by filter is that those 2 users will only see their messages and not others just to...
(0) odpowiedzi
2017-01-14 03:01 Generate predicates from Json »
I have a WEB API done in Asp.Net that returns some points of interest in JSON. In prolog I obtain it by doing this: poi(X):- http_client:http_get('ht...
(1) odpowiedzi
2017-01-13 00:01 Security for two websites talking to each other »
I have two websites (one a new MVC app, and the other an older WebForms app). I need them to be able to communicate with each other. I'm looking at i...
(1) odpowiedzi
2017-01-12 14:01 call property to populate in model »
Hey all new to the MVC world so I'm sure I am not doing something correct here. I am trying to call a function from the model page from my view index ...
(4) odpowiedzi
2017-01-11 12:01 Store List in memory accessible to all users »
So I want to keep a list in memory, with a get and post method. All users must be able to post and read from the same list. I've looked into HttpC...
(2) odpowiedzi
2017-01-11 08:01 How to generate new CSRF token per request/Form in ASP .net »
How to generate new CSRF token for each request or for each form in a session. I Have tried below code where it generates CSRF token per session. But ...
(0) odpowiedzi
2017-01-11 06:01 How to generate Asp.net User identity when testing WebApi controllers »
I am using Web API 2. In web api controller I have used GetUserId method to generate user id using Asp.net Identity. I have to write MS unit test for...
(1) odpowiedzi
2017-01-11 05:01 Jquery DataTable pagination Not working when postaback »
Jquery DataTable Pagination is not working I have 13 paginations i am selecting 5th pagingwhen i click edit button in my gridview the page will postba...
(1) odpowiedzi
2017-01-10 18:01 'Enable SSL' not visible in ASP.Net Core project properties »
Following this tutorial, I'm trying to set up social logins for my ASP.NET web application. The option enable SSL, however, is not visible in my proje...
(0) odpowiedzi
2017-01-10 16:01 Net core custom user property »
I'm using the default authorization in my .NET Core project. I want to check if an user is admin so in ApplicationUser.cs model I've added this: pub...
(2) odpowiedzi
2017-01-10 15:01 Getting PUT and DELETE verbs in WebAPI2 to work on IIS 8.5 »
I am attempting to publish code to my company test web server and I'm getting a multitude of errors returned from IIS when attempting to call any meth...
(2) odpowiedzi
2017-01-09 18:01 Authentication not working in subdirectories of Wordpress blog installed in IIS8.5 »
I have a Wordpress blog installed in a IIS 8.5 machine and I'm using forms authentication using the following: <authentication mode="Forms"> ...
(1) odpowiedzi
2017-01-09 17:01 Fiddler doesn't send Authorization header? »
I'm using WEBAPI (asp.net) with vs2015. In my web.config I have this rewrite url rule which redirects HTTP to HTTPS (I know I can do it via HSTS but...
(0) odpowiedzi
2017-01-08 17:01 Reusing The dbcontext »
I have seperated my business logic classes from the controllers so that controllers contain as little business logic as possible. But since I want to ...
(1) odpowiedzi
2017-01-08 15:01 How create custom authorization attribute for checking a role and url path in Asp.Net Core? »
I want to create a custom authorization attribute for checking the role and url path. I've find the way for doing it in the Asp.Net Core using the Po...
(1) odpowiedzi
2017-01-08 15:01 Model emptied after returning view »
I'm new to ASP and programing in general, so I'm probably doing something fundamentally wrong but here it goes: Everytime I return a View in my contro...
(2) odpowiedzi
2017-01-08 10:01 How to render Html.BeginForm output unescaped »
Antalis RazorEngine is used in MVC4 application to inject markup into Razor View. Output from @Html.BeginForm("UploadDocument", "Detail", new{a=1,b=...
(0) odpowiedzi
2017-01-07 20:01 Bulk data insert from SQL to Oracle using C#.NET »
The following code snippet for for bulk insert of data from SQL DB into Oracle database. I have used stored procedure in oracle database with 2 para...
(1) odpowiedzi
2017-01-07 17:01 ASP.net webgrid loses jquery hover after sort »
I have a WebGrid object, using Razor C WebPages, that when sorted loses the jquery toggleClass declaration. Here is some sample js code to help. func...
(1) odpowiedzi
2017-01-07 15:01 How to pass clicked Jquery Datatables row to controller asp.net mvc »
I need to send send the whole row (and its data) to the controller method on clicking of some button in the row. I am newbie to asp.net mvc. That my ...
(1) odpowiedzi
2017-01-06 01:01 Passing views with ASP.NET core & Razor »
I'm new to trying out MVC and Razor. Currently using Visual Studio for Mac preview to develop a website to try out the technology. My biggest concer...
(2) odpowiedzi
2017-01-05 04:01 HttpClient PutAsync to update a field using RestAPI »
We have a third party API which has both the GET and PUT methods on it.The third party API returns response and accepts only in XML. The api looks lik...
(1) odpowiedzi
2017-01-05 01:01 Set text inside @html.Textareafor »
I am using asp.net core razor engine. I am trying to set text inside of my text area. I looked on stack and followed previous answers, but nothing s...
(2) odpowiedzi
2017-01-04 17:01 Summing values of two textboxes in Asp.net MVC »
Im new to ASP .NET MVC Web Aplications and i please need some help. I need to summ two values ("Cena" and "Kolicina") and save into textbox "Znesek". ...
(1) odpowiedzi
2017-01-04 15:01 ASP.NET Web API Globalization Input Format »
ASP Web API and ASP Controllers have auto conversion for inputs: [HttpGet] public IActionResult Get(decimal? money, DateTime dateTime){ // some l...
(1) odpowiedzi
2017-01-03 15:01 Cookies created by Javascript not seen by C# (ASP.NET Razor) »
I'm setting a cookie in Javascript: document.cookie = "lang=" + lang + ";path=/;domain=" + window.location.hostname + ";"; If I check the cookies i...
(1) odpowiedzi
2017-01-02 14:01 IIS 8.5 single worker process vs Web Garden performance »
I have simple ASP.NET application that just resizes images with ImageResizer and does nothing else. For testing purposes I disabled disk caching, so i...
(1) odpowiedzi