Data dodania Pytanie
2017-07-15 20:07 How To Find Id From Anchor Tag Using Jquery »
Here i am trying to find the taskid present in anchor tag using Jquery on click of that anchor tag having class=POtskComment.But as i click the anchor...
(3) odpowiedzi
2017-07-15 04:07 Id of a model is not passed from the view to the action correctly in ASP MVC when Editing a list of models »
I'm passing a list of objects to a view and allow the user to update a property of a single object. This is the get action. I'm passing a list of Ar...
(1) odpowiedzi
2017-07-14 17:07 Global / local scoping in Razor MVC »
I've recently started delving into MVC Razor web programming, and I'm pretty much stuck with some basics. I have this code: @ { using WebMatrix.Da...
(1) odpowiedzi
2017-07-14 14:07 How to pass model instance from table to modal popup? »
I have this piece of code, which generates a table of records (name and info) and each row should have a edit button which opens a modal popup that al...
(1) odpowiedzi
2017-07-14 09:07 Custom Data Type returning as an Json Object in umbraco »
i am trying to create a carousel as a Data Type, for that i am trying to create a custom Data Type like this from Developers Tab in content section...
(2) odpowiedzi
2017-07-13 19:07 MVC 5 HTML Form Submit Not Firing »
I've been following along with a book titled Pro ASP.net and have come across a rather odd issue. I've got a Razor view linked to a controller, and on...
(3) odpowiedzi
2017-07-13 08:07 System Web HttpException (Renderbody) in MVC »
i am building an online shop in MVC and now working on its design, i downloaded like 2 bootstraps , and tried each one, i copied the index to my _layo...
(2) odpowiedzi
2017-07-13 07:07 Can I use @Viewbag... inside of webgrid column ActionLink format instead of hard-code the the name »
I have several pages to link to depending on the user level. Sample: level 1 goes to pageA, level 2 goes to pageB, etc... Inside of the controller, I ...
(1) odpowiedzi
2017-07-12 22:07 How to set returned Image Data as ng-src of image in AngularJS »
I've got two ASP.Net Core methods at the moment - one tied to an API call, and one tied to a client-side Razor helper. They're both located in my Hom...
(1) odpowiedzi
2017-07-12 15:07 TextBoxFor decimal »
In my database I stored fields with the data type decimal. I am using exactly the same (decimal) data type in my ASP.NET application. This is inside ...
(3) odpowiedzi
2017-07-12 11:07 How to link the categories in database in _layout.cshtml »
i am trying to put the categories in my database on SQL on the homepage of my MVC web , how to link to them I have this in my _layout.cshtml, and i w...
(2) odpowiedzi
2017-07-11 15:07 Refactor the loop to merge one property when other properties are identical in ASP.net MVC Razor »
I have a dataset that currently produces an output as follows: Code: Part 1: The View - @foreach (var dt in Model.PlaceList) { <tr class="Ga...
(2) odpowiedzi
2017-07-11 14:07 Razor - Type of conditional expression cannot be determined »
I'm having an issue with conditional expression. Here is my code: <td>@((test) ? '-' : "No")</td> The error is: Type of conditional...
(1) odpowiedzi
2017-07-11 13:07 MVC - Change Label(s) on DropDown Selection - Strongly Typed View »
MODEL - Employee.cs public class Employee { public int id { get; set; } public string name { get; set; } public int age { get; set; } ...
(1) odpowiedzi
2017-07-10 19:07 Why does the MVC appends aspx to the view names »
In my controller I defined: const string KList = "list.cshtml"; I call the Action method: public ActionResult All() { var view = Empty(); ...
(1) odpowiedzi
2017-07-10 11:07 MVC 4 Razor Engine HttpPostedFileBase not working with Create a strongly-typed view »
In my MVC 4 project, I created a view with using "Create a strongly-typed view" as "Scaffold template: Edit". But in that page I try to upload image w...
(2) odpowiedzi
2017-07-10 09:07 How to add offset in list items? »
I need to add offsets to my list items, but I haven't seen any property that could do that (except marker-offset which is deprecated). In my case I ha...
(1) odpowiedzi
2017-07-09 14:07 How to get value of Html.DropDownList in the controller? »
I have assigned the following viewbag in the controller public ActionResult new_vehicle() { ViewBag.customers = new SelectList(db.custome...
(2) odpowiedzi
2017-07-08 19:07 List item inside model always null on post - Asp.net MVC »
I am trying to post model which contains List<> item looks like below: public class AddSubscriptionPlanModel { public AddSubscriptionPlanModel...
(3) odpowiedzi
2017-07-08 08:07 ASP Core tag helper with inheritance in model »
Let's say we have these simplified models: public class Person { public string Address {set;get;} } public class Student: Person { public floa...
(2) odpowiedzi
2017-07-08 01:07 how to measure execution time in specific part of View »
I want to calculate execution time in a specific part of View in MVC asp.net for example <p>start time is A</p> <br /> @for (int...
(2) odpowiedzi
2017-07-07 18:07 C# Parse XML Web Request »
I'm using C# with Razor and a co-worker supplied me with a VB.net Class example of how he queries a web service for XML data. I'm trying to convert th...
(0) odpowiedzi
2017-07-07 16:07 How to add razor variables to column template in kendo grid for if else logic »
I am trying to use a kendo grid with Razor syntax, and using a if:else logic to build a header template. The problem I am having is that the if statem...
(1) odpowiedzi
2017-07-07 09:07 Usage of Razor expressions with or without string quotes »
Regarding Razor expression usage (ASP.Net) cases, there are two cases commonly met: <div title="@MyClass.Test"></div> and <div tit...
(1) odpowiedzi
2017-07-06 20:07 How to fetch data about current user in ASP .NET MVC? »
So, I added a new Parameter to my ApplicationUser class, which is called SocialName. I would like to display it when user is logged in, at the top rig...
(3) odpowiedzi
2017-07-06 15:07 Setting the viewWindow min max in hours of a Google Chart in Razor »
I have an Google chart with the following options for the hAxis. But I cannot get the viewWindow to work This Razor code: hAxis: { f...
(1) odpowiedzi
2017-07-06 00:07 How do you execute C# code with a button click in asp.net? »
I need help executing C# code with a button click. I`m sure there are multiple things wrong with this, however; any help would be much appreciated. Th...
(2) odpowiedzi
2017-07-05 10:07 ASP.NET MVC not rendering view »
I have the following NewsFeedController.cs public class NewsFeedController : Controller { public ActionResult Index() { return View(...
(0) odpowiedzi
2017-07-05 09:07 ASP.NET Unmanaged Memory Leaking »
At my company we are developing an ASP.NET web-application. The application itself utilizes a large number of number input elements at the frontend (~...
(0) odpowiedzi
2017-07-05 00:07 Access @Model when @Model is a Task »
How am I supposed to use a @Model thats a Task? Razor: @model Task<AreBuraas.Core.v1.Models.Category> <article class="panel panel-primary"...
(3) odpowiedzi
2017-07-04 23:07 Razor select list (dropdownlistfor) setting default selected value »
I have a select list which I set up in my view model first like this: public string selectedLocation { get; set; } public SelectList locat...
(1) odpowiedzi
2017-07-04 16:07 Recursively Create a Menu using two Lists »
I'm having trouble making a dynamic menu using ASP.NET MVC where the menu is organized according to your Groups in Active Directory. To cut through us...
(1) odpowiedzi
2017-07-04 14:07 Tiny error mark on my .cshtml page »
I got a tiny little red underlining in one of my Razor @helper and when I hover on it it never shows anything. I remembering having had this in the pa...
(1) odpowiedzi
2017-07-03 21:07 MVC Html validation error behaviour different when an overlay is added to the mix »
This is a very basic scenario, I have a user login panel with email address and password textboxes. I recently added a overlay "please wait" message w...
(0) odpowiedzi
2017-07-03 21:07 How would one convert a razor loop into a Vue.js component? »
I'm attempting to take a very dumb vue component and move more of the code (written in razor) into the component itself (to keep it as modular as poss...
(1) odpowiedzi