Data dodania Pytanie
2017-02-24 14:02 Passing form data to multiple actions in .NET »
I've got a form done in Razor. The user can choose between two actions to take with the data they fill in to that form, SaveCurrentProgress(User user...
(1) odpowiedzi
2017-02-24 01:02 How to inject a route parameter into _Layout.cshtml »
I am trying to create a multitenant web app using ASP.Net Core v1.1.0. A single user may belong to multiple tenants (ie - an area manager who oversee...
(1) odpowiedzi
2017-02-23 16:02 Why do I get an SQL parsing error when I use parameters? »
I'm working on a database application in Webmatrix. I have a cshtml file which is supposed to update a record in the database. Everything works corre...
(2) odpowiedzi
2017-02-23 08:02 how to replace the existing image with new image in mvc razor »
I have a task to change the existing image with the new image on clicking a link called photo, it will redirect to uploadimage view page. But when I c...
(0) odpowiedzi
2017-02-23 06:02 How to set viewbag value to input datetime type time »
I have : <input class="datefield" value="@ViewBag.SelectedFromHour" id="TimeFrom" name="TimeFrom" type="time"> My @ViewBag.SelectedFromHour v...
(1) odpowiedzi
2017-02-22 22:02 Convert integer value of hours into formatted hours in Razor View »
I'm trying to convert my integer value of hours, 0-23 into a nicely formatted one like: 15 would be represented like: 15:00 0 would be represetnted l...
(2) odpowiedzi
2017-02-22 20:02 Calling Partial Views in Razor »
I have a question that seems to be driving me mad. How can I pull a partial view from another master into my home page (which is not related to the vi...
(2) odpowiedzi
2017-02-22 07:02 In mvc5 how to show icon in navbar after the text? »
I am using: <@Html.ActionLink("logout", "Login", "Account", routevalues:null, htmlattributes: new{@class =glyphicon glyphicon-log-out, Id="login...
(3) odpowiedzi
2017-02-21 14:02 C# can't bind my model to razor TextBoxFor »
In my .cshtml file I have the following @model MyProject.MyViewModel.Range @for (int i = 0; i < Model.Range.Count; i++) { &l...
(2) odpowiedzi
2017-02-21 12:02 How to hide HTML element based on Session value »
I'm trying to hide html element based on Session Value, using razor or js but i can't. I've tried more than one solution, but no result. First attemp...
(2) odpowiedzi
2017-02-21 08:02 ng-model not working with select generated in razor »
I have some code generated in razor view. Among that code is also drop down (select) and the iENTE_KEY is connected with that select. Problem is, that...
(0) odpowiedzi
2017-02-20 22:02 Calling parents by name »
Is there a way/plugin to call $parents["ExamViewModel"] instead of $parents[2]? That would be very helpful for shared views that may show in differe...
(1) odpowiedzi
2017-02-20 15:02 mvc asp multiple bootstrap modals (opened with href="@Url.Action()") »
Introduction: Hi, I'm new to Stackoverflow, any feedback apprichiated. I'm working on a larger mvc asp project and my problem concerns Views, modals a...
(0) odpowiedzi
2017-02-20 12:02 How To Get UserId() Method From ASP.NET Identity Directly in Razor »
I've this issue with Custom Authorization some parts of my Views (which i don't want to put on PartialView), instead I am using If statement like belo...
(1) odpowiedzi
2017-02-19 23:02 Vertical text in Razor View »
I Have the following view: @model YFA.ViewModels.YoungFFSkillVM @{ ViewBag.Title = "Training for Drill"; } <div class="row"> <h2>...
(1) odpowiedzi
2017-02-19 17:02 filter the list by input search value »
I developed following list box along with search by filter keyword Razor (CSHTML) part <div class="row"> @Html.TextBoxFor(m => m.Search...
(0) odpowiedzi
2017-02-19 12:02 how to access a controller return value in javascript »
I've a java script function that is used to save a webcam Image and the code is as below. onCapture: function () { webcam.save("@Url....
(1) odpowiedzi
2017-02-18 22:02 Asp.net MVC 5 cannot use Html Helpers in a Razor view inside a class library project »
Am making a Plugin architecture application using Asp.Net MVC 5 so I created a class library project that will contains some controllers and some embe...
(2) odpowiedzi
2017-02-18 17:02 Extend Umbraco media picker to include link option »
In my custom grid editor I have a media picker which selects and image and a content picker which selects a node from the tree. The desired output i...
(1) odpowiedzi
2017-02-18 01:02 How to POST input type date to MVC controller »
I'm having trouble posting date value from MVC Razor view to MVC Controller HTML @using (Html.BeginForm("MainframeFilingDetail", "Report", FormMetho...
(0) odpowiedzi
2017-02-17 20:02 In MVC 5 - How to compare 2 boolean values and set it as a third booelan in View? »
I have View @Html.HiddenFor(x => Model.IsPersistable}) Model public class MyModel() { public bool IsPersistable{ get; set; } public bool S...
(4) odpowiedzi
2017-02-17 15:02 create a random URL with each Instance »
I'm working on the security part of one of the upcoming websites developed based on ASP mvc. Here the target is like below. I enter say localhost:123...
(0) odpowiedzi
2017-02-17 10:02 How to use C# string inside jQuery in Razor? »
I am using razor view and jQuery. I would like to write value in the razor view into header of modal dialog. (view is opening inside bootstrap modal d...
(2) odpowiedzi
2017-02-16 21:02 Angular 2 with .NET Core »
I am somewhat of a beginner and would like someone to please help me understand how Angular 2 ties into .net Core when building a web application. I ...
(3) odpowiedzi
2017-02-16 17:02 ASP.NET Core Tag Helper Intellisense in Visual Studio 2017 »
I am unable to Intellisense for all tags (e.g. asp-for asp-action, etc.) I'm running Visual Studio Community 2017 RC4. My .csproj file includes the ...
(1) odpowiedzi
2017-02-16 05:02 How to check null value within TempData Razor MVC that written inside js code »
I'm Trying to check null value within TempData Razor MVC that written inside javascript code, but unfortunately it doesn't work. whether TempData val...
(1) odpowiedzi
2017-02-15 21:02 if statement fails when true »
This piece of code is failing when I build my project. THe if statement has to check if ParkingLot is true. I thought the way to do that was the follo...
(1) odpowiedzi
2017-02-15 20:02 How to set Entity Framework data to JavaScript variables? »
I have a website that uses ASP.NET MVC, and I store my data using Entity Framework. Here is what one of my Razor View Pages looks like: @model IEn...
(1) odpowiedzi
2017-02-15 04:02 Chaining date/time in Razor »
I'm working on a project that is meant to display a list of messages and the times/dates the messages are sent. The C# for setting the date is: pu...
(1) odpowiedzi
2017-02-14 19:02 Recognize @ as a part of the string in Javascript »
I am writing a snippet to quickly populate register fields for testing purposes $("#TestRegister").click(function () { var rand = Math.floor(Math...
(1) odpowiedzi
2017-02-14 16:02 c# strings as html attributes »
I am trying to make my razor view a little more dynamic. I am trying to set an inline style to TDs in a table. I made the string: @{ double wi...
(2) odpowiedzi
2017-02-14 09:02 Need assistance with RAZOR »
I have list of product, and when I need to edit something I click on button edit at right of product name. How I can I do clickable entire row. Now I...
(2) odpowiedzi
2017-02-13 21:02 Convert a POCO to json using only certain fields »
I have an object, Project, that contains many fields, some complex some not. It is an EF class, so I can't edit it to add attributes. I just want to ...
(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 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