Data dodania Pytanie
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
2017-02-12 14:02 Call a javascript function from anchor tag inside td inside javascript code »
Only Basic javascript knowledge is required.If anyone knows please help me. I don't know how to do it but i have tried it in many ways but still not a...
(2) odpowiedzi
2017-02-12 13:02 Understanding code reuse in razor »
I have fragments of razor code which I seem to need at multiple places in the same webpage. Below is an example <td> @Html.DisplayFor(model...
(0) odpowiedzi
2017-02-11 13:02 Apply CSS class to HTML Action Link in Razor »
I have the following HTML code: <li> <a href="dashboard.html"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a> &lt...
(1) odpowiedzi
2017-02-11 10:02 how to upload image in folder and path in database using asp.net mvc 5 »
Hello guys I want to save data and image path to database sql server and save the image in a folder in asp.net MVC 5. I have searched many pages on th...
(0) odpowiedzi
2017-02-11 08:02 Is there a way to precompile razor in asp.net core 1.0.3? »
I know this is not possible directly.Also is there any substitute c# code that I can use instead. I want the razor replace feature. eg string template...
(0) odpowiedzi
2017-02-10 12:02 Seperate js File utf-8 not working in ASP.NET MVC Razor »
I have a textBox. When I click mybtn if myTxtBox is empty a tooltip appears and give the message which attached to 'data-original-title'. It's working...
(1) odpowiedzi
2017-02-10 08:02 Pass nullable boolean to partial view not working when value is null »
I'm trying to do this in my razor view: @{ Html.RenderPartial("_Checkbox", Model.SomeNullableBoolean); } _Checkbox.cshtml: @model bool? @if (Mod...
(2) odpowiedzi
2017-02-10 05:02 Get property by dynamic key name? »
I'm a big noob okay, so please bare with me... Basically, I'm trying to avoid duplicating some templates, let's say I have the following (very simpli...
(1) odpowiedzi
2017-02-09 16:02 Validate two depending dates »
I have two date values, that I need to validate. This validaton is compound: One date needs to be sooner than the other (think StartingDate and Finish...
(2) odpowiedzi
2017-02-09 15:02 Adding Razor to mature, existing Servicestack project without changing existing functionality »
I have a years-old ServiceStack project that provides services to both legacy Winforms apps as well as newer html/css/javascript webs. I now have the ...
(1) odpowiedzi
2017-02-09 14:02 How to pass the ID of an object from a form to an action in ASP.NET MVC »
I have an ASP.NET MVC project with entities based on EF6 (model first). So my entities are all auto-generated for me. I have an entity, Site and I jus...
(2) odpowiedzi
2017-02-08 16:02 what is the maximum size of JsonResult in mvc Controller »
I have to work on the MVC with angular based application, I have to retrieve 20000 thousand data from a database to send with Angular. If I send belo...
(1) odpowiedzi
2017-02-08 13:02 How do you add extra HTML elements into a Razor ActionLink »
I have this actionlink - @Html.ActionLink("Delete", "Delete", "Admin", new { url = item.thing }, new { onclick = "return confirm('Are you sure you w...
(2) odpowiedzi
2017-02-08 10:02 How to force one method on Razor ambiguous reference? »
On one MVC 4 project, we have a lot of Pages.cshtml that receive a collection of Models (generally hundreds of rows), which we serialize as JSON via ...
(1) odpowiedzi
2017-02-07 15:02 Select2 Multiselect binding not working »
I know this question has been asked a number of times but none of those solutions seem to work for me. SO here is my code. Model: public List<str...
(1) odpowiedzi
2017-02-07 15:02 Url.RenderStyles based on height »
I am writing a shared layout page in Razor (.cshtml) that will display full screen content in 1920x1080 and 1920x1280. The approach I am currently ta...
(0) odpowiedzi
2017-02-07 10:02 How does MVC handle button clicks in the controller »
How does MVC handle the submit button in my code? I have a controller named ArticleController which should handle it, but I can't figure out how. @{...
(4) odpowiedzi