Data dodania Pytanie
2017-08-04 23:08 How to force Visual Studio to apply HTML comments instead of Razor ones in an .cshtml page? »
I highlight a piece of html code in an .cshtml page, like <div id="locationField">. In Visual Studio, I click on the Edit/Advanced/Comment Se...
(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 19:08 Error: "Could not load file or assembly System.Web.WebPages.Razor" »
Suddenly this problem has cropped up for no reason that I can understand. My MVC application makes a call to a WCF Service. At that point it hits thi...
(1) 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 13:08 Database values with special characters, render with their HTML number, rather than with the data from database »
pretty new to angular here. I have this information that comes from the database, and parsed by a Razor view HTML page in a controller: Angular.js ...
(2) odpowiedzi
2017-08-02 13:08 Multiple content types in one template with Umbraco.ModelsBuilder »
We have multiple base content types News, Reviews. Each inherit properties from our composites: _Page & _Article. This allows us to wack all three...
(4) 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-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 Can't return data from Content Picker in Umbraco 7.6.4 »
I am currently trying to output data from the new Multinode Treepicker in Umbraco 7.6.4 here is my current setup and code: Doctype Content Node wi...
(1) 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 08:07 How to make a button display to a textbox in cshtml? »
I have a few days to figure out how to retrieve information from a textbox, click a button to save to an array, and then click a button to display it ...
(0) odpowiedzi
2017-07-30 03:07 Index was out of range when using a variable as the name of a radio button webmatrix razor »
I have this code: @{ int j = 1; int k = 1; for(int i = 0; i < 60; i++) { Respuestas[i] = Request.Form[j].AsInt(); j++; ...
(0) 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 13:07 View in class library - solution explorer show error but compiles without problems »
After a lot of difficulties I managed to get my razor views to build, and IntelliSense to work properly in my C# class library but I'm running into an...
(1) odpowiedzi
2017-07-29 12:07 ServiceStack Razor with Multiple SPAs »
I don't see an example of using ServiceStack Razor with Multiple SPAs on the internet. The reason for having multiple SPAs in my use case is because m...
(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
2017-07-28 11:07 The type or namespace does not exists in the namespace .Net Core MVC »
I have all of a sudden stumpled upon a weird error in my .Net Core MVC project. It tells me that: The type or namespace name 'Tripmetadata' does not e...
(0) odpowiedzi
2017-07-28 01:07 Nested foreach loop in ASP.NET MVC Core NullReferenceException »
I'm trying to add a navigation sidebar in a simple web app that has two primary models, and I'm running into a peculiar error when I try to use a nest...
(1) odpowiedzi
2017-07-27 16:07 Use MVC razor function inside <script type="text/template"></script> »
I am trying to solve this issue from last 6 hours, but couldn't complete it. here I have one template script in my Razor view. <script type="text...
(3) odpowiedzi
2017-07-27 14:07 Populating a DropDownList with NpgsqlDataReader - Selected Value is Empty »
I am attempting to populate my DropDownLists from a NpgsqlDataReader. These lists are coming from different tables. Page is loading a Product from the...
(1) odpowiedzi
2017-07-27 09:07 Cannot convert lambda expression to type 'string' because it is not a delegate type, c# MVC, functions in RAZOR FORMS »
I want to pass some parameter(id) to my functions in Razor forms like this: c.For(m =>@ProgData(m.Id)).Order(4); This is sample of the functions...
(0) odpowiedzi
2017-07-26 20:07 ValueTuple not working in Razor views with MVC 5 »
I have an ASP.NET MVC 5 project in Visual Studio 2017 and after successfully adding C# 7 support (which has worked for me so far), I tried using tuple...
(1) odpowiedzi
2017-07-26 08:07 How to use "RenderBody()" in partial view when the partial view is shared across layout pages? »
Following is the exact scenario in my ASP.NET MVC application: There are two layout pages which are quite identical to each other. But one is having ...
(1) odpowiedzi
2017-07-26 03:07 Fontawesome doesn't work in Html.Raw() »
Fontawesome not works in Html.Raw() function in MVC Razor view. Whats the solution for that? @Html.Raw("<i class=\"fa fa - clock - o\" aria-hidden...
(1) odpowiedzi
2017-07-25 23:07 Fetching and Adding Checkbox dynamically on selection of Dropdown boxes »
I have a form as above. I am trying to work as when user selects Table Name & Permission, it goes back to server side, fetches the columns of th...
(1) odpowiedzi
2017-07-25 17:07 Certain Razor views not publishing »
Using VS 2017 with MVC 5 Razor views. When I publish my application, a handful of specific views do not get copied over. I'd discovered several SE q...
(1) odpowiedzi
2017-07-25 09:07 ASP.NET select an item and show it's price DropDownListFor »
I'm trying to select an item to write it's price into an input so I can calculate taxes and stuff. I managed to populate the DropDownList but can't f...
(1) odpowiedzi
2017-07-24 23:07 ASP.NET SelectList obtain value and display it »
I'm trying to select an item an then display it in the view but i don't know how to pass the value to the controller. this is my code created via sca...
(0) odpowiedzi
2017-07-24 19:07 Create Record That is Tied To Another Table's ID -- Not Saving »
Trying to save a record so that this table (proposal) saves it under another table's ID (client). So the create link is on the "details" view template...
(1) odpowiedzi