Data dodania Pytanie
2017-08-09 19:08 Asp.Net MVC using Tilde in href attribute for relative paths »
Using MVC5 and razor. Case #1: var url='~/path'; <a href='@url'>test</a> WRONG I get: http://www.example.com/~/path Case #2 var url...
(1) odpowiedzi
2017-08-08 16:08 Populating Dropdown with a CSV File using MVC »
I'm working with MVC for the first time, and I'm having a little trouble populating a dropdown list with values from a csv file. The csv file is two c...
(2) odpowiedzi
2017-08-08 13:08 Dynamically update part of Cached Page in MVC »
In my MVC project, there is page which has static content except that it show the current time(which is dynamic).I want to Cache this page but due to ...
(1) odpowiedzi
2017-08-08 00:08 Add static segment to route to make pagination more friendly asp.net core »
In my website I made my urls in general more friendly by using slugs. I would like to make the url information related to paging more friendly too by ...
(2) odpowiedzi
2017-08-07 22:08 How to retrieve POST parameters from AuthorizeAttribute in Web Api .Net? »
I am working on an authentication method using a token for me Web Api .Net project, so I am overriding some methods like this: public class Authorize...
(1) odpowiedzi
2017-08-07 19:08 Pass two parameters to controller, syntax error »
I have a dropdown list. I want to click any item then redirect the view by parameters. $(document).ready(function () { $("#Languages").change...
(3) odpowiedzi
2017-08-07 17:08 .net mvc send json with mixed types from controller »
So I have this JsonResult: [HttpPost] public JsonResult getJsonInvoicesClient(int id_client) { var a = db.invoices .Where(x => x.id_cl...
(1) odpowiedzi
2017-08-07 14:08 Where is Request.Unvalidated on asp.net-core? »
I have noticed that in classic ASP.NET MVC there is an Unvalidated property on Request which allows Access to raw values provided by the current reque...
(1) odpowiedzi
2017-08-07 13:08 How to display image from SQL image table that has imagepath »
I am working on my MVCOnlineShop Project, i made a product list page, now i want to show an image for each product, so i made an image table in SQL, i...
(1) odpowiedzi
2017-08-06 16:08 how to get a value from textbox and pass it from actionlink to controller »
I'm working on an ASP.NET MVC application and i need to pass TextBox value from view to controller this TextBox is in table and i need get the input v...
(1) odpowiedzi
2017-08-06 15:08 Is it Possible to Dynamically Create Input Fields from ModelMetaData.Properties? »
I am iterating around ViewData.ModelMetadata.Properties to render some inputs for these properties: @foreach (var property in ViewData.ModelMetadata....
(1) odpowiedzi
2017-08-06 15:08 How to save checkboxlist (Components) for each item from another ListBox(Analysis)? »
I am binding a table with some data on click of the data in the table, I want to load checkbox list corresponding to the item clicked and save it on...
(0) odpowiedzi
2017-08-06 10:08 No parameterless constructor was found on 'ApplicationDbContext'. in Asp Core »
i create this for Initial Database in ASP Core . i using this : dotnet ef migrations add InitialCreate but it show me this error : No parameter...
(3) odpowiedzi
2017-08-05 21:08 mvc Api optimization: return ihhtpresult from a custom class to api action »
I am working with C#, MVC , ASP.Net Web API and I realized that I have code that is repeated in my API controller. public IHttpActionResult PutSometh...
(3) odpowiedzi
2017-08-05 19:08 C# MVC Razor form with a dynamic array of objects »
So I'm trying to create a Invoice form. In this form I want to fill in some customer details and add products, all in the same form. I created a stati...
(1) odpowiedzi
2017-08-05 15:08 File Upload with AngularJS and ASP.NET MVC »
I am new to ASP.NET MVC and AngularJS, How can I Upload file (Image/PDF/Doc) to server Folder By AngularJS Controller with ASP.NET MVC Controller ...
(1) odpowiedzi
2017-08-05 00:08 MVC Custom View Engine FileExists always returns false »
I am trying to implement a Custom ViewEngine that inherits from RazerViewEngine: public class MultiTenantViewEngine : RazorViewEngine { public Mu...
(0) odpowiedzi
2017-08-04 19:08 MVC .net core is not displaying special characters correctly »
I have a very simple view in an MVC .net core web site. @model MvcSearch.Models.SearchModel @{ ViewData["Title"] = "Index"; } <h2>Buscado...
(1) odpowiedzi
2017-08-04 10:08 Positioning elements with CSS »
I know it is dumb question, but i am struggling with following problem It is one of my menu buttons. I want div the represents icon (marked red with...
(3) odpowiedzi
2017-08-03 13:08 Redirect Admin into layout after login in mvc »
I am beginner in MVC and trying to redirect Admin into _Layout - admin.cshtml after login successfully, because I have different options in admin navb...
(2) odpowiedzi
2017-08-03 10:08 How to pass ViewBag value to java script function in razor? »
I need pass ViewBag value to java script function in razor. ViewBag filled by string and I use this code but get error that : Uncaught ReferenceE...
(1) odpowiedzi
2017-08-02 14:08 c# mvc 5 call json web service and save on database »
Greetings i want to call a web api that returns a json string from From Controller and i want to map it on a class so i can save the data on the datab...
(3) odpowiedzi
2017-08-02 11:08 Url.Action not working on layout page »
i am making simple website and i made a menu and i want do redirect other views when i clicked links which is on menu <!DOCTYPE html> <...
(3) odpowiedzi
2017-08-02 08:08 OWIN Web API authorization in User Interface »
I prepare User Interface in MVC and Web API. Authorization in Web API via OWIN is correct. In login method you can see I just log on to Web API and I ...
(1) odpowiedzi
2017-08-01 18:08 How can I show correct 4 thumbnails in 1 row using foreach »
In result I have next view: view.cshtml <div class="row"> @foreach (var item in Model) { <div class="col-sm-6 col-md-3"> &...
(1) odpowiedzi
2017-08-01 15:08 Using tag-helper validation for list items »
I've seen this question, which seems to cover exactly what I want to do, but for some reason the solution presented there doesn't work for me. I have...
(1) odpowiedzi
2017-08-01 12:08 Deserialize model with nested string represented json data in C# »
I have a model which looks like that: class Nested{ public string Name {get; set;} public int Id {get; set;} } class Model{ [JsonProperty] p...
(2) odpowiedzi
2017-07-31 14:07 Assign Viewbag to js variable throws an exception »
I want to assign viewbag to my javascript variable to compare some value from model <script> var uid = "..."; // this retrieves some varia...
(2) odpowiedzi
2017-07-31 12:07 Pass a Model property as a parameter to an Url.Action »
I'm developing an ASP.NET MVC 5 app with C# and .NET Framework 4.7. I'm having troubles trying to pass parameters with Url.Action. When I use this: ...
(2) odpowiedzi
2017-07-31 09:07 ASP.NET MVC Razor-DropDownList Width »
@Html.DropDownListFor(model => model.MainAD, DepartmentList, new { htmlAttributes = new { @class = "form-control", @style = "width:80px" } }) Why...
(1) odpowiedzi
2017-07-30 18:07 Reusable partial view with Jquery data table with Edit button? »
I have created a partial view with Jquery data table. I simply pass GridResulViewtModel to partial view where ever I need Jquery data table grid. It w...
(1) odpowiedzi
2017-07-30 02:07 ASP.NET MVC return View() hangs »
Hello everyone I am trying to fix an annoying issue that I am having with ASP.NET MVC. I have created a new web application and I am noticing that ev...
(0) odpowiedzi
2017-07-29 19:07 Cshtml View wont Stay the same size after i click on a button »
I have a google maps piece of code that gets my current location to a fixed destination but the width and height of the view wont stay the same after ...
(0) odpowiedzi
2017-07-29 14:07 The anti-forgery cookie token and form field token do not match when using WebApi »
I have a single-page app (user loads a bunch of HTML/JS and then makes AJAX requests without another call to MVC - only via WebAPI). In WebAPI I have...
(1) odpowiedzi
2017-07-28 22:07 Url.Action can't find controller »
I have an Html helper that defines a textbox used to feed a jquery-ui autocomplete. @Html.TextBox("txtSearchArg") The javascript is in the /Script...
(1) odpowiedzi