Data dodania Pytanie
2017-03-29 08:03 Bootstrap3 DatetimePicker Stops submiting Form »
refer to this link I have added Bootstrap 3 datetime Picker. When i Select Datetimepicker it gives focus to that particular Datetimepicker and when...
(0) odpowiedzi
2017-03-28 20:03 Detect Mobile Browser and change CSS »
I have these script here from Detect Mobile Browser and I guess it does work, when inspecting my page in Chrome and using the built in toggle device t...
(1) odpowiedzi
2017-03-28 18:03 White space at top of page after converting .net project to use layouts »
I recently changed my .net project to use master pages / layout pages. Now when all of my page are rendered there is some space at the top of the page...
(3) odpowiedzi
2017-03-28 08:03 Compiler can't find html extension method in Orchard theme »
I'm working on an Orchard theme and have created the following Html extension method: using System; using System.Web.Mvc; namespace Themes.MyTheme {...
(1) odpowiedzi
2017-03-27 18:03 How can I mix Razor syntax with JavaScript inside JavaScript file? »
I need to mix and match JavaScript and C# using Razor syntax in the same statement. I could be using @: wrong for writing JavaScript inside of Razor ...
(2) odpowiedzi
2017-03-27 09:03 How can I use Razor syntax inside a JavaScript file to generate action link on asp.net core framework? »
I have a JavaScript file in which I need to generate an action link via Razor syntax. Here's my code so far. @{ int ID = @:cardId; @:row.insertC...
(1) odpowiedzi
2017-03-27 08:03 Asp.Net MVC Helper: create a global helper for loading view with or without layout »
I want to create a application in which if there is Ajax call it return Partial view and if it is a page refresh it return with layout and render scri...
(2) odpowiedzi
2017-03-26 21:03 asp-route-[parameter] not being added to route/url. Why? »
I am building a web application for a parser. The home page is a simple razor view with basic controls, that will allow the user to add the input, and...
(1) odpowiedzi
2017-03-26 20:03 Is there ability to use masterpages inside masterpages in ASP.NET MVC 5 »
Is there any ability to use masterpages inside masterpages in ASP.NET MVC 5? I have a site and main layout page in it. And i have adminka controller ...
(1) odpowiedzi
2017-03-26 14:03 Access multiple ViewModel inside html mvc C# »
I have a viewmodel class containing two viewmodels public class SalesByBrandParentVM { public IEnumerable<SPSalesbyBrandModel> SpSa...
(1) odpowiedzi
2017-03-25 22:03 Error not showing when error in razor view aspnet core »
When I add a call on viewComponent in a view and the viewComponent not working, there are not error message, the razor view skip the viewComponent in ...
(0) odpowiedzi
2017-03-25 11:03 When i m using HTML5 <embed> tag, autoplay and autostart attribute is not working in google chrome? »
<embed id="embd" autoplay="0" autostart="0" class="img-thumbnail center-block" src="@Url.Content(@t.ResourePath)" style="height: 200px; width: 30...
(0) odpowiedzi
2017-03-24 17:03 How can I see the code generated for a Razor Page when using Asp.Net Core? »
With Asp.Net it was easy to see the code generated by the Razor View Engine: Add a compile error and the error page will give access to the source of ...
(1) odpowiedzi
2017-03-24 13:03 Adding validation data attributes to custom input »
When using any of the Input Extension Helper Methods, like @Html.TextboxFor, any Validation Attributes from your model are automatically generated by ...
(0) odpowiedzi
2017-03-24 10:03 Why DropDown List show Dates included Time, not just Date? »
I have list of Dates, and in controller i create code for DropDown list, in table i put dates like DATE format, also in model i configurired ad dd/MM/...
(1) odpowiedzi
2017-03-23 21:03 how to grab a variable from a razor listBox using a script method in view »
So I have a a razor list set up like so. @Html.ListBoxFor(m => m.Customer, new SelectList(Model.Customer, "Id", "Name", Model.Customer[0]), new { ...
(2) odpowiedzi
2017-03-23 13:03 Razor helper to render tr for property in List »
I have a large amount of numerical data to spit out in a table from a List of complex objects 'Dto'. Each property in the Dto object needs a row in th...
(1) odpowiedzi
2017-03-23 12:03 C# MVC5 View not recognizing namespace »
I have recently run on this problem. I have tried to add namespace to Views/web.config or on top of the view, but still occur on the problem, where Vi...
(1) odpowiedzi
2017-03-22 22:03 MVC: Why is my Edit controller method not receiving my ViewModel's ID? »
I am using MVC to create standard create / edit forms for my ViewModel. I have my create working great, now I'm onto my edit form, and the ViewModel's...
(1) odpowiedzi
2017-03-22 13:03 @Url.RouteUrl returns misleading/wrong path for a controller-action (unless the 'routeName' parameter is explicitly specified) »
Assume we have two controllers ControllerA and ControllerB in an MVC4 project placed like so: Controllers | \- MvcApi | | | \- Controll...
(1) odpowiedzi
2017-03-22 08:03 get MM/dd/yyyy only in razor for datetime »
I have something code like this @Html.EditorFor(model => model.VoluntaryWork.DateEnded) @Html.ValidationMessageFor(model => model.VoluntaryWo...
(5) odpowiedzi
2017-03-21 15:03 Get app path without trailing slash »
In my code I use the tilde to get the app path like so: <a href="~/">home</a> However this results in my link looking like: <a hre...
(0) odpowiedzi
2017-03-21 13:03 Unity DI with MVC 5 in controllers »
I'm currently having issues when trying to make a dependency injection inside a MVC controller. The current exception is the following: The curre...
(1) odpowiedzi
2017-03-21 11:03 c# -ModelState.IsValid returns false only when resource language changed? »
I have one field on my razor view as following @Html.TextBoxFor(model => model.Duration, new { @class = "form-control txtSite input-large rounded...
(2) odpowiedzi
2017-03-20 19:03 IFormFile is not bound if nested in view model »
I am having problem with binding nested IFormFile in .net core mvc project. If I put my IFormFile in nested view model it will not be bound to it on p...
(1) odpowiedzi
2017-03-20 16:03 Making a modular MVC 5 project »
I'm wondering about how to develop a really big MVC5 project with multiple modules. I have read about several patterns like using "RazorGenerator" an...
(0) odpowiedzi
2017-03-20 14:03 ASP .Net Core Custom Tag Helper to Convert CamelCase Properties to spaces »
Is it possible in ASP.Net Core to automatically convert camel case property names in view models to insert spaces into the corresponding labels when u...
(3) odpowiedzi
2017-03-19 20:03 What does the "Action?" keyword do, does it replace ActionResult »
I saw this code and I was wondering what the Action? does, after searching I saw this on MSDN "Encapsulates a method that has a single parameter and d...
(2) odpowiedzi
2017-03-19 20:03 ASP.NET Core migration to 1.1 - Razor can't load types »
After upgrading my project from 1.0 and project.json to 1.1 and .csproj using VS2017, the project runs fine in VS, but when start it using dotnet run ...
(0) odpowiedzi
2017-03-19 02:03 Display IEnumerable<dynamic> in a view »
I have a model as shown below. The MenuItem model, which has different SQL queries (MenuItem.MenuSQLQuery). I am executing these query agaist a progr...
(2) odpowiedzi
2017-03-18 15:03 C# codes doesn't work in host »
I open the website(The website created with MVC). I get compilation error. How can i fix this error? ...
(1) odpowiedzi
2017-03-18 13:03 Getting data on from view and render it in partial view of Bootstrap - Modal »
There is a Grid with data which is loaded in View on selecting Edit button of a record in a row i was suppose to load a Bootstrap - Modal with selecte...
(0) odpowiedzi
2017-03-18 04:03 How to POST and Catch a view model with a parent object and list of child objects in EF MVC? »
I want to add a family which has many members and can have many houses. I am trying to make a form and submit the object family with collection of oth...
(1) odpowiedzi
2017-03-17 20:03 collect variables and shorten code »
I am making a project, where I have to compare to rooms to each other and print if there is a change in a room. I made this piece of code there is w...
(2) odpowiedzi
2017-03-17 17:03 How to mix razor and javascript in single line »
This works @Html.Action("LiveBlogHeader", "Blog", new { liveMatchItemId = "12" }) I want to set hidden field's value in it. Something like this @H...
(0) odpowiedzi