Data dodania Pytanie
2017-02-14 17:02 Retrieving a subset of rows from an OData endpoint »
I've an ASP.NET Web API 2 exposing an OData endpoint. In the front-end I'm using ASP.NET MVC 5. To consume the endpoint I'm using a WCF Services Refe...
(1) odpowiedzi
2017-02-13 16:02 model item passed into the dictionary is of type 'System.Boolean', but this dictionary requires a model item of type 'MyProject.checkboxstate' »
I have a custom html helper with the last parameter as bool type. My code works fine when there is data in the database. But, without data, it throws ...
(1) odpowiedzi
2017-02-13 15:02 Jquery Datatable edit/delete icons »
I want to add 2 extra columns (edit and delete) in my datatable. each row in my datatable contains a hidden columns which is the record ID, so when us...
(1) odpowiedzi
2017-02-13 10:02 Who's responsibility should be to paginate controller/domail service/repository? »
My question might seem strange for pros but please take to account that I am coming from ruby on rails world =) So, I am learning ASP.NET Core. And I...
(2) odpowiedzi
2017-02-13 09:02 Proper Way to Create Parametrized Reusable HTML Blocks / Templates in ASP.NET MVC5 Razor »
I want to stay DRY and therefore need to reuse medium-sized HTML blocks. These blocks are not small enough for me to rely on custom Html helpers (in c...
(0) odpowiedzi
2017-02-12 14:02 Call a javascript function from anchor tag inside td inside javascript code »
Only Basic javascript knowledge is required.If anyone knows please help me. I don't know how to do it but i have tried it in many ways but still not a...
(2) odpowiedzi
2017-02-11 21:02 Securing access to .NET Web API from both MVC client app and mobile applications »
I have created a Web API application, an MVC application, and a mobile application. The Web API should be decoupled from the other two applications a...
(1) odpowiedzi
2017-02-11 18:02 consuming web api, ports on different machine »
my simple web app has web api and web mvc project. from mvc app I'm consuming web api service using ajax. Right now my uri looks like this var uri ...
(3) odpowiedzi
2017-02-11 13:02 Apply CSS class to HTML Action Link in Razor »
I have the following HTML code: <li> <a href="dashboard.html"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a> &lt...
(1) odpowiedzi
2017-02-10 21:02 How to use a view inside ASP.NET Core custom Tag Helper? »
I have been following this Microsoft article on writing custom Tag Helpers here. Every where i see code where the element markup is hard coded in C# ...
(0) odpowiedzi
2017-02-10 17:02 EmailAddressAttribute incorrectly categorizing French e-mail address as invalid »
I'm using the EmailAddressAttribute for use on my model. The problem is when I use a (perfectly valid) e-mail address of óscar@yahoo.com it says...
(5) odpowiedzi
2017-02-10 12:02 Seperate js File utf-8 not working in ASP.NET MVC Razor »
I have a textBox. When I click mybtn if myTxtBox is empty a tooltip appears and give the message which attached to 'data-original-title'. It's working...
(1) odpowiedzi
2017-02-10 08:02 Pass nullable boolean to partial view not working when value is null »
I'm trying to do this in my razor view: @{ Html.RenderPartial("_Checkbox", Model.SomeNullableBoolean); } _Checkbox.cshtml: @model bool? @if (Mod...
(2) odpowiedzi
2017-02-09 14:02 How to pass the ID of an object from a form to an action in ASP.NET MVC »
I have an ASP.NET MVC project with entities based on EF6 (model first). So my entities are all auto-generated for me. I have an entity, Site and I jus...
(2) odpowiedzi
2017-02-08 16:02 what is the maximum size of JsonResult in mvc Controller »
I have to work on the MVC with angular based application, I have to retrieve 20000 thousand data from a database to send with Angular. If I send belo...
(1) odpowiedzi
2017-02-08 13:02 How do you add extra HTML elements into a Razor ActionLink »
I have this actionlink - @Html.ActionLink("Delete", "Delete", "Admin", new { url = item.thing }, new { onclick = "return confirm('Are you sure you w...
(2) odpowiedzi
2017-02-08 10:02 How to force one method on Razor ambiguous reference? »
On one MVC 4 project, we have a lot of Pages.cshtml that receive a collection of Models (generally hundreds of rows), which we serialize as JSON via ...
(1) odpowiedzi
2017-02-08 08:02 How to stop caching while using angularjs »
I used AngularJS v1.5.7 with .net MVC WEB project, and my content is with in index.cshtml with ui-view. For an reason, I found all of my html/js fil...
(1) odpowiedzi
2017-02-07 15:02 Select2 Multiselect binding not working »
I know this question has been asked a number of times but none of those solutions seem to work for me. SO here is my code. Model: public List<str...
(1) odpowiedzi
2017-02-07 15:02 Url.RenderStyles based on height »
I am writing a shared layout page in Razor (.cshtml) that will display full screen content in 1920x1080 and 1920x1280. The approach I am currently ta...
(0) odpowiedzi
2017-02-07 10:02 How does MVC handle button clicks in the controller »
How does MVC handle the submit button in my code? I have a controller named ArticleController which should handle it, but I can't figure out how. @{...
(4) odpowiedzi
2017-02-07 07:02 Asp.Net Core redirect to action but not allow action to be called directly? »
I have a situation where I want to redirect/show to some url/action when the result is successful but return to view if there was some error. For exa...
(2) odpowiedzi
2017-02-06 19:02 How do I edit array proreprty via built-in @Html.EditorFor(..)? »
I got ProductModel with property public ProductCategoryModel Category { get; set; }. The ProductCategoryModel is obviously set of categories that gonn...
(1) odpowiedzi
2017-02-06 17:02 Show DateTimeOffset in View as normal Date Format »
I want, that my DateTimeOffset in the database outputs in the View as a normal date (for example -> 10.12.2011). But it shows the date format like thi...
(1) odpowiedzi
2017-02-06 15:02 Quotations Must Match When they Do? »
I have an ASP.NET MVC app with the following line in the markup: <i class=' fa fa-circle-thin fa-stack-2x'></i> When I build this appli...
(1) odpowiedzi
2017-02-05 19:02 Imitating Controller Context For Razor View Template »
I am trying to use the code below to render a Razor view template into a string: using (var sw = new StringWriter()) { var viewResult = ViewEngin...
(0) odpowiedzi
2017-02-05 15:02 How to properly pass json to a view »
I have a view with some javascript code for a pie chart in it. This view has an action method, where I am running some queries an converting the resul...
(1) odpowiedzi
2017-02-05 14:02 Getting reference of Startup.cs object »
Looking for an answer from a senior level ASP.NET architect who knows inner details of ASP.NET MVC. Here's the skeleton of a standard ASP.NET core ap...
(1) odpowiedzi
2017-02-05 10:02 Call .net core controller get method with an object from angular2 »
I have a angular component: import { Component } from '@angular/core'; import { Http } from '@angular/http'; @Component({ selector: 'search', ...
(3) odpowiedzi
2017-02-04 00:02 MVC 5 Razor User.IsInRole("roleName") not using custom user store »
I have an Asp.Net 5 app using Identity 1.0, and I have implemented a custom user manager that provides custom logic specifically for User Roles. All ...
(0) odpowiedzi
2017-02-03 17:02 Make Remote Email Validation work only in certain views? »
I have an email property in my model that looks like this [Required(ErrorMessage ="Email Address is required.")] [EmailAddress(ErrorMessage =...
(2) odpowiedzi
2017-02-03 15:02 How do I turn off Required validation for a field in MVC when a checkbox is checked? »
This is whats in my model: public CheckBoxListItem Same { get; set; } [Required(ErrorMessage = "* Billing Name field is required")] p...
(0) odpowiedzi
2017-02-02 20:02 Can I use a Tag Helper in a custom Tag Helper that returns html? »
I recently ran into a situation where I would like to use a tag helper within a tag helper. I looked around and couldn't find anyone else trying to do...
(1) odpowiedzi
2017-02-02 20:02 ASP MVC 5 Date Format Validation Issue »
In my ASP MVC 5 web application, I need to display a date in a specific format. When the page loads, the text is formatted correctly. But if you edit ...
(1) odpowiedzi
2017-02-02 16:02 Rendering a partial view with ajax »
Currently I have a main view called getRolesByYear.cshtml. In this view I have three buttons, each for an year. When I click a button(or on page load)...
(1) odpowiedzi