Data dodania Pytanie
2017-09-17 21:09 Cannot use a leading .. to exit above the top directory (with tilde) »
Error The page is a layout page (_layout.vbhtml) -- The error description: Cannot use a leading .. to exit above the top directory. ...
(1) odpowiedzi
2017-09-17 17:09 'HtmlHelper<Game>' does not contain a definition for 'DropDownListFor' »
For some reason, DropDownListFor doesn't work for me, and I can't find a reason why. My game model: public class Game { public virtual int GameI...
(1) odpowiedzi
2017-09-16 01:09 How to Use TagHelper to Replace PageData for setting PageWidth in Razor »
I have an Asp.NET 4.61 app in which I set the width of the page by setting the setting a variable in the page as follows: @{ PageData["WidePage"]...
(0) odpowiedzi
2017-09-16 01:09 MVC Pass multiple parameters to controller including a list from the model »
I'm trying to pass a list from the model and a string from my view to my controller. I get the data from Home controller to the Dashboard.cshtml succ...
(1) odpowiedzi
2017-09-15 23:09 Change Title and Add Facebook OG Meta in Razor »
Blog posts for the 2sxc Blog App are not shared with proper titles by Facebook share buttons. Currently blog post Razor handles title-change with java...
(1) odpowiedzi
2017-09-15 11:09 MVC PartialView is not populated with model details »
I intend to display a list of employees with about five columns on the left side of my razor view, and on selecting any employee (row), display detail...
(1) odpowiedzi
2017-09-15 05:09 ASP.NET Core 2.0 Razor vs Angular/React/etc »
My team and I have received funding to start developing an Enterprise level web application (won't go into details of what it does). The application ...
(0) odpowiedzi
2017-09-14 13:09 How to call a css style in content page using ASP.NET MVC? »
I have created a master page for my application and then the master application has been displayed in every page, but I have created a content page an...
(1) odpowiedzi
2017-09-14 12:09 Interrupting calling data-url-action in Razor View from javascript »
In application we are handling button actions by putting action name and controller name in data-url-action attribute in Razor Views like below: <...
(1) odpowiedzi
2017-09-14 08:09 Access a viewbag property in reactjs »
i am developing a web application , where i am using reactjs and MVC c#. I would want to know if jsx is included in a cshtml , is it possible to acc...
(1) odpowiedzi
2017-09-13 20:09 ASP.NET MVC5 Dockerized throws COMException when Bundling with Razor »
We are trying to dockerize our ASP.NET MVC5 app and got the following error at Line 9. We ran into the same issue before when dealing with bundling, b...
(1) odpowiedzi
2017-09-13 18:09 Getting error foreach statement cannot operate on variables of type '' because '' does not contain a public definition for 'GetEnumerator' »
I am getting an error here in my razor view: foreach statement cannot operate on variables of type 'Project.Model.ResultsClass' because 'Project...
(3) odpowiedzi
2017-09-13 15:09 Compiling views on build in asp mvc using custom ViewEngine »
In project we have implemented custom view engine inheriting from RazorViewEngine to solve custom views locations and logic behind choosing them. The...
(1) odpowiedzi
2017-09-12 21:09 Kendo Pie Chart won't render (remote data) »
This is just one example of the many iterations I tried. Essentially, I want to show a pie chart with job types by cost amount. I am able to connect t...
(1) odpowiedzi
2017-09-12 16:09 remote Layout cshtml »
In ASP.NET MVC one can use following property to assign a local layout page: @{ Layout = "~/Views/Shared/_Layout.cshtml"; } With local I mean t...
(1) odpowiedzi
2017-09-12 12:09 Conditionally unobtrusive validation mode »
I'm developing an ASP.NET MVC 5 application with Razor, C# and .NET Framework 4.7. I want to disable some input fields on a table depending on a mode...
(1) odpowiedzi
2017-09-11 14:09 Current culture - display euro symbol (€) instead of EUR string »
With current culture set to "sk-SK" (Slovakia with currency - euro) I want to show euro symbol (€) instead of "EUR" string when displaying price as ...
(1) odpowiedzi
2017-09-11 13:09 Using 5th overload of Html.DropDownList causes exception. (does not contain a definition for 'DropDownList' and the best extension method overload..) »
I have a model with this property public List<System.Web.Mvc.SelectListItem> ResponseTypes { get; set; } And in my view I have this on my vie...
(1) odpowiedzi
2017-09-11 12:09 Set razor view variable according to checkbox checked »
I am working on an online library using ASP.NET MVC. This is my view model for the library management page: public class ManageViewModel { public...
(1) odpowiedzi
2017-09-10 23:09 Null Entry for NonNullable Type in ASP.Net MVC 5 project »
I have a property in Model which needs to be Non Nullable. When submitting a Form if model state isinvalid, I want the user to get redirected to the s...
(1) odpowiedzi
2017-09-10 22:09 VS2017/Resharper2017 "cannot resolve tag" for custom angular2 components in cshtml pages »
I am creating my first Angular2 (4) app in Visual Studio 2017 Community Edition with Resharper Ultimate 2017.2. I have created a number of custom an...
(0) odpowiedzi
2017-09-10 05:09 What is reason of getting "There is already an open DataReader associated with this Command which must be closed first" in ASP.Net MVC 5 project »
I am a beginner and learning Asp.Net MVC 5 web development. In one of my views I am getting exception as {"There is already an open DataReader ass...
(1) odpowiedzi
2017-09-09 20:09 asp.net MVC - using list of strings in a DropDownListFor »
I am trying to use Html.DropDownListFor with the list of strings from a ViewBag. Basically I got a ViewBag with a list of string like "Adam","Tom","M...
(1) odpowiedzi
2017-09-08 18:09 Best way to insert data into multiple tables ASP.NET CORE? »
I believe I have the correct approach but, I am unable to get it working. I am using the code first approach. I have three tables. Next, I made a vi...
(0) odpowiedzi
2017-09-08 12:09 How to view the source html of Razor @RenderBody()? »
I am using the @RenderBody() directive on the _Layout.cshtml page. Clicking view page source from a browser window only shows me the _Layout.cshtml s...
(0) odpowiedzi
2017-09-08 03:09 Visual studio 2017 line breaks in cshtml »
I have some annoying situation: When I'm typing code and opening braces Visual studio insert double line break. Like this: function a(){ } I nee...
(1) odpowiedzi
2017-09-07 20:09 Fresh Xamarin WebView Razor Template does not compile »
Fresh WebViewApp (Android) Template out of the box won't compile. Why does VS2015 not find the references? Do the referenced dlls even contain the req...
(0) odpowiedzi
2017-09-07 19:09 Razor view stops working after encapsulating attribute »
So I have this C# MVC project with some views in Razor. If I change an existing field in my model to a property or vice-versa, any Razor view that re...
(1) odpowiedzi
2017-09-07 11:09 Render <li> tags if string is not null or not empty with Razor »
I want to display some li tags only if the strings received from the model contains text. Right now my list looks like this: ul class="ul-with-bullet...
(1) odpowiedzi
2017-09-06 15:09 MVC Razor View - nested foreach displays the correct info but on a different line »
In View have the following foreach loop to display links: @model List<IGrouping<string, FileInfo>> @{ ViewData["Title"] = "Index"; ...
(3) odpowiedzi
2017-09-06 08:09 create array in javascript with Html.action »
I'm trying to create an array of strings in javascript by calling a function in my MVC controller and passing back an array of strings. This pretty si...
(1) odpowiedzi
2017-09-06 04:09 How to make edit and delete POST Request in same page in my ASP.Net MVC 5 application »
I am a beginner in ASP.Net MVC Web Development. And I am stuck at one place where I need to have POST request For EDIT and Delete Requests in the same...
(1) odpowiedzi
2017-09-05 23:09 How to append the success data in an element as URL action with parameter »
I have an ajax call and I get a list of properties. How can I append one of the list items as a href with post method to Action controller in MVC? ...
(1) odpowiedzi
2017-09-05 21:09 Confirmation dialogue on button click for jQuery »
This might be a duplicate, but I couldn't find an answer. I have a button which is making an ajax call and doing the functionality on click. But I nee...
(4) odpowiedzi
2017-09-05 20:09 Splitting one view model across multiple forms on one page »
I've got an ASP.NET MVC 5 app that uses more of an MVVM approach to MVC: it has "view models" (VM) for the Entity Framework models. Our scenario: ...
(1) odpowiedzi