Data dodania Pytanie
2017-01-09 21:01 Calling an API action from another API, reading the json response and adding some extra properties to it »
I have a .netcore web api(localApi) that calls another web api(remoteApi). remoteApi returns json and my goal is to add a new property to that json an...
(1) odpowiedzi
2017-01-09 13:01 Link to related data in Group Header Razor View »
Hi I have the following list view grouped by a Name so that I can display that name in the group header. I want to be able to put a link next to the ...
(0) odpowiedzi
2017-01-08 18:01 How to use multiple GET action in a WebApi? »
Well I am actually trying to learn the WebApi and suppose if i have a scenario where i have two get methods like this CONTROLLER public class Employ...
(2) 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 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 09:01 Get data from a table after joining based on null value of joined table using LINQ »
I have some tables like "Job" "AppliedJob" "JobOffer" "Contract" "Employeer" Description: When employeer post job it is stored in "Job" table with h...
(1) odpowiedzi
2017-01-07 21:01 .NET MVC application into an N Tier application »
In either .NET MVC 5 or a .NET Core MVC application, is it possible to split your Models into a Data Transport Layer, your business logic into a Busin...
(0) odpowiedzi
2017-01-07 19:01 Razor not render my data »
Following code will never be render on my page (ViewData["ERRORS"] is not empty), I don't know why... @section scripts{ <script> $(...
(0) odpowiedzi
2017-01-06 21:01 How to get properties of items in IEnumerable<T> when that IEnumerable is in a model »
I have the following model which has an IEnumerable where T is another object/model: public class Employee { public ApplicationUser PayrollAdmin...
(2) odpowiedzi
2017-01-06 18:01 ActionLink helper in MVC navigates after second click »
I have a home page with different links inside, once I click in one of them, stay on the same page, the second click performs the redirect, why? My H...
(1) odpowiedzi
2017-01-06 11:01 Using unity DI in both web api and class library »
I am creating a new web api project. In this i am using two more class library projects apart from web api project Like this: MyBlog.API (Web API pro...
(2) 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 17:01 Select option from DropDown and automaticly set value in another TextField ASP .NET MVC »
I would like to choose an option from the dropdown menu and based on the selected option automaticly set the value in the second input field. Like th...
(3) 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 17:01 Ensure that WebAPI2 routes are matched before MVC Routes »
I have a web application which uses both MVC and WebAPI2. I would like for requests to always be matched up with WebAPI2 attribute routes before matc...
(0) odpowiedzi
2017-01-04 12:01 I Need to add comma operator for number when typing and restrict 2 decimal places »
I am trying to add $123,123.12 comma format and restrict the decimal to two places can anyone please help with regex. I have tried like this. I have a...
(1) odpowiedzi
2017-01-03 23:01 How to format dates in MVC 5 Razor »
I have a table in my razor code that loops through all of the items in the model and creates a table row for each item. I'm trying to figure out how t...
(2) odpowiedzi
2017-01-03 12:01 How can I change default ASP.NET Identity table names in .NET CORE? »
I've started with .NET Core, in MVC 5 I changed default table names for example: AspNETUsers to Users in this way and it worked perfectly: In Identi...
(1) odpowiedzi
2017-01-03 03:01 what's the issue here?? webapi + angular + post »
Something weird is happening .... and I don't really understand why.... This post works only if change the id parameter type from int to object. I kn...
(1) odpowiedzi
2017-01-02 19:01 How can I write a line for all my views using their view model? »
I am using the following line at the beginning of all my views: <script> var viewModel = @Html.Raw(JsonConvert.SerializeObject(Model)); </sc...
(1) odpowiedzi
2017-01-01 19:01 Application and User Authentication using ASP.NET Core »
Can anyone point me to some good documentation or provide good information on the best way to implement authentication and authorisation for an ASP.NE...
(0) odpowiedzi
2016-12-30 22:12 Null Object Reference when trying to consume Web Api Data In MVC »
To follow on from a previous post I have made, I am making a web ATM for a university project. For this, I have an MVC application through which most ...
(0) odpowiedzi
2016-12-30 17:12 How to initialize IOption<AppSettings> for unit testing a .NET core MVC service? »
I have a .NET core MVC rest service. I have a controller I wish to test. This controller has a constructor argument of IOptions where AppSettings is ...
(1) odpowiedzi
2016-12-30 15:12 Setting Min-Date for DateTime picker »
I am using the Bootstrap 3 Datepicker, specifically the No Icon (input field only) version. I am trying to use the minDate function so that the user ...
(1) odpowiedzi
2016-12-29 22:12 DropDownListFor method instead of property »
Is it possible to use a method in stead of a property for an This works: HTML.DropDownListFor(x => x.Book, new SelectList(...
(2) odpowiedzi
2016-12-29 17:12 How to generate API key from .net core mvc service? (with Authentication in middleware) »
I have a .NET core MVC rest service that restricts access to the API by validating a key. It uses a middleware function that inspects the request fo...
(1) odpowiedzi
2016-12-29 10:12 jquery ajax GET pass properties from razor view model »
In the editors in view i enter both name and 0 as socialsecuritynumber but wrong method in controller is called, that one with only name as parameter ...
(1) odpowiedzi
2016-12-29 09:12 pass parameter to the server using datatable url property in ajax call »
I'm using data tables and on initialization inside ajax request I'm setting url using data- attribute ... "ajax": { "url": $('#mypage')....
(3) odpowiedzi
2016-12-28 14:12 Pros and Cons of using json array and json object »
My question is little theoretical but it's interesting one. I want to know which approach is best while using web api. I've two methods One has Li...
(1) odpowiedzi
2016-12-28 12:12 How do override ASP.NET Core's controller naming convention? »
I'm using ASP.NET Core. The convention is that the routing system considers a FooController class to be a controller with the name Foo. I need to ove...
(2) odpowiedzi
2016-12-28 11:12 MVC controller multiple views and routing issue »
At the moment we have view name 'Self Deposit' and a controller to back it. The view is a stand alone page that built with partial views: Example Fold...
(1) odpowiedzi
2016-12-27 13:12 static HTML controls vs razor html helper »
i am new to asp.net mvc , as i see asp.net mvc generates @Html.TextBoxFor(x => x.Name) this type of controls. which are server side controls like w...
(1) odpowiedzi
2016-12-27 08:12 How do I add a link action inside a grid/column in MVC using Razor only »
I am using Razor grid system to show a listing. I want to make a column as a link action. But my problem is it's showing the link in the font end as r...
(1) odpowiedzi
2016-12-26 19:12 Get local datetime instead of server DateTime in server side code C# »
I am using ASP MVC 4.5. I have view to input payment details. I use C# to get current time when user input payment. But after hosting it on server, i ...
(4) odpowiedzi
2016-12-26 15:12 jquery datatable with custom object parameter »
I am working with MVC and Jquery Data table. I just want pass my own parameter as class along with jquery datatable param. Here is the code I have use...
(1) odpowiedzi