Data dodania Pytanie
2017-09-28 11:09 razor pages. Show changes in browser after refresh »
I am trying to develop the app with new razor pages technology. When I add any changes to cshtml I want to be able to see these changes on the page af...
(2) odpowiedzi
2017-09-28 11:09 Razor - Variable in Foreach »
In this code, I use variable num like a flag if equal 0 I use td class="row_grid_Par" else if equal 1 I use td class="text-row_grid_Dis. Why this code...
(1) odpowiedzi
2017-09-28 10:09 2sxc Pass variables from one view (js) to another view (razor) »
I need to create an app with 2 views: A view with html form for 3 selections (categories drop-down, two numeric fields), when submitted it loads the...
(1) odpowiedzi
2017-09-27 17:09 stop table column width expanding in iframe »
If i have a table in an iframe and I find that as soon start typing any text into a cell it massively expands that cell before it reaches the end and ...
(0) odpowiedzi
2017-09-27 15:09 Wrong URL at mouseover in Razor »
I have a web application ASP.Net MVC 4 in VS 2017. I made a custom helper (a link). I debugged and the custom helper outputs the correct link: Like th...
(2) odpowiedzi
2017-09-27 10:09 Nuget package install resulted in --> c# - cs7003 unexpected use of an unbound generic name »
today i was trying to add Ninect.web.common to my project but surprisingly i received a strange error for the first time: My project is running well a...
(1) odpowiedzi
2017-09-26 18:09 C# Loop through Months Of Year with format »
I want to loop through months of year with MM format , i do it but months format is 1, 2, 3, ...etc i want the format to be 01, 02, 03 how i do it ...
(4) odpowiedzi
2017-09-26 15:09 ASP.NET MVC Change Database value when checkbox is checked »
I have a really simple question. I have a form where if you check the checkbox and submit the form it changes the value to true (it's false by default...
(1) odpowiedzi
2017-09-26 09:09 Hide Bundles content from external viewing in MVC3 »
I have registered bundles in Global.asax.cs file. When I enter my domain name with bundles path in browser, I am able to view minified js,css content ...
(2) odpowiedzi
2017-09-25 23:09 Load specific resource file in Localization »
I want to load a specific resource file, without relying on the naming convention between View and Resource file. I'm looking for something similar t...
(0) odpowiedzi
2017-09-25 20:09 Razor - Apply random CSS class from array »
I have searched everywhere for an answer to this, to no avail. If already answered somewhere else, then my apologies. Here is my current code: ...
(1) odpowiedzi
2017-09-25 17:09 ASP.NET MVC 5 Editor for 2-dimensional array »
I have a model with two-dimensional array in it: public class Matrix { public ValidInt[][] Data; [Range(0, 8, ErrorMessage = "Введите ...
(1) odpowiedzi
2017-09-24 17:09 How I can check debug mode in MVC cshtml page »
How I can check debug mode in MVC cshtml page? this code not working in cshtml page.@{ bool isRelease = false;#if DEBUG isRelease = false;#else isRele...
(1) odpowiedzi
2017-09-24 10:09 Dotnet core 2.0 TagHelper is not rendered »
I have interesting problem with TagHelpers in .NET Core 2.0. Original helpers work seems right. But customs not. I wrote code inspired original Image ...
(1) odpowiedzi
2017-09-24 01:09 Boostrap Cards Loop Razor »
I'm trying to create an HTML structure using Bootstrap where I would have 4 cards per row but Without Defining the Row div more of just a container an...
(1) odpowiedzi
2017-09-23 18:09 Don't quite understand BeginUmbracoForm »
I'm following this tutorial, to create a Contact Us form using Umbraco and Mvc - and I am a bit puzzled as to why a certain thing works. Specifically,...
(1) odpowiedzi
2017-09-23 15:09 ASP.NET Core ViewLocationExpander can not find view in other assembly »
I have following solution: src /Web /Web.Admin /Controller /TestControllr.cs /Views /Test ...
(1) odpowiedzi
2017-09-22 19:09 How to clear Numeric field by Jquery in Razor View »
I have model with double type field and string as well. [Display(Name = "Amount", ResourceType = (typeof(Resources.Work)))] public double Amo...
(1) odpowiedzi
2017-09-22 16:09 send model object from view to controller method ASP.NET MVC C# »
I know there are a lot of questions about this, but not in a single one I've seen (and I've been searching for two hours now), did I see what to write...
(2) odpowiedzi
2017-09-22 13:09 Razor Checkbox calling ControllerAction in Asp.Net MVC? »
I have a Database that contains several Booleans. I'm displaying this database in my View but I want the user to be able to change the value behind th...
(0) odpowiedzi
2017-09-21 19:09 Asp.Net Core and Scaffold »
The generation of automatic scaffold to Asp.Net Razor Page is compatible to bool data types? I ask about it, because I'm following this tutorial: htt...
(1) odpowiedzi
2017-09-21 13:09 Use Razor without Microsoft.NET.Sdk.Web »
I am writing simple consoleApp (netcoreapp2.0) <Project Sdk="Microsoft.NET.Sdk"> and want to run webserver with mvc. class Program { sta...
(0) odpowiedzi
2017-09-21 12:09 Script cut last char »
In razor view I use Html.EditFor. @Html.EditorFor(model => model.Salary, new { htmlAttributes = new { id = "SalaryEdit", @class = "form-control", ...
(2) odpowiedzi
2017-09-20 16:09 How to remove the *.compiled Files from bin folder? »
I want to deploy my website with precompiled views, for performance reasons. So I have configured UseMerge and PrecompileBeforePublish. This is part ...
(1) odpowiedzi
2017-09-20 09:09 Unable to use interpolated strings in cshtml »
I am getting this annoying error when trying to use a simple interpolated string in my cshtml file: @for (int i = 0; i < ppTitles.Count; i++) { ...
(0) odpowiedzi
2017-09-20 08:09 Bootstrap-Select width in form »
I'm using Bootstrap v4 and bootstrap-select js/css (in ASP.NET MVC project) and I have a problem in my form. The select with multiple options from boo...
(2) odpowiedzi
2017-09-18 21:09 Cannot save property as decimal »
In my model I use property. [Display(Name = "Pensja")] public decimal? Salary { get; set; } In Edit Razor View I want to change value from 4000,00 ...
(3) odpowiedzi
2017-09-18 12:09 Razor: adding an @if inside a tag - Then setting an attribute »
<tr @if (-- condition --){id="x"}> I know the above line probably makes no sense. But this is just to illustrate the sort of thing I would lik...
(1) odpowiedzi
2017-09-18 09:09 Why are more attributes added from a CSHTML file when I view it after build? »
I have inherited an MVC project. I now try to understand the following issue. The code is at the beginning of a simple cshtml file: @model LIS.Models...
(1) odpowiedzi
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