Data dodania Pytanie
2016-12-19 19:12 ASP.net MVC 5 ViewBag using Razor »
Hey all I'm new to MVC/Razor and I am wanting to simply display a year on the view page. The view page code: <p>© @Html.Raw(ViewBag.t...
(3) odpowiedzi
2016-12-19 15:12 ASP.net MVC 5 Razor dropdown box »
Hey all I am new to Razor MVC and wanted to make a select box that has the past 10 years listed inside it (2016, 2015, 2014, etc....). This is my cur...
(4) odpowiedzi
2016-12-19 12:12 bootstrap alert-danger hide when page loads »
I'm using twitter bootstrap and alert elements to use within my web page and I want to use this as validation summary towards the top section of my pa...
(1) odpowiedzi
2016-12-18 10:12 Call JS method from Razor form submit »
When I submit the form I want to fire-up the Javascript method written below. This JS method will send a POST request to the backend. However, in the ...
(2) odpowiedzi
2016-12-18 04:12 Html Partial vs DisplayFor performance wise / special case usage »
What is the impact of each Html.Partial and Html.DisplayFor performance wise, how much overhead will each result in ? Is there any special case where...
(0) odpowiedzi
2016-12-17 23:12 Building REST APIs using ASP.NET Core with Razor syntax »
As I was exploring the articles and contents on the internet about building REST APIs using asp.net core, I found out that razor web pages are not com...
(1) odpowiedzi
2016-12-17 20:12 Enabling MVC client side validation »
I have <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> in my config and ...
(2) odpowiedzi
2016-12-17 16:12 a tag not processed by razor on area with asp.net core »
Well, my problem is the following : I am creating an application with asp.net core. I have like 20+ controllers in the first version. I am plannin...
(1) odpowiedzi
2016-12-16 16:12 Asp.Net Razor View Passing Expression To Partial »
I find myself writing this a whole lot in my views: <div class="form-group"> @Html.LabelFor(x => x.City) @Html.EditorFor(x => x.C...
(1) odpowiedzi
2016-12-16 16:12 Show item in foreach empty when repeat in Razor Net MVC »
I have a table built in my razor and I want it when the name of an institution is repeated, made he's an empty field. Is there any way to do this? L...
(1) odpowiedzi
2016-12-16 08:12 .net MVC Controller receive dynamic form field submitted value? »
@foreach (var item in b) { itemCount++; <input type="hidden" name="class@(itemCount.ToString())" value="@item.CouseClassId" /> <i...
(1) odpowiedzi
2016-12-15 16:12 Javascript button with in For Loop in Razor view »
I Have the following code within my razor view that I want to action a button next to every response. Once clicked I want it to copy response to actu...
(1) odpowiedzi
2016-12-15 11:12 Disabling Submit-button(s) when HTML Select is empty »
I am a programmer-to-be, currently working on a project at work. My problem is this: I have 3 submit buttons (on the same form), that each call a dif...
(3) odpowiedzi
2016-12-15 06:12 ASP.NET razor engine seems retard »
I have a view that contains nothing but the following: <table> @for (int i = 0; i < 10; i++) { if (i % 5 == 0) { ...
(4) odpowiedzi
2016-12-14 17:12 How to return view with Outer Joins from two tables in MVC Razor »
I've two tables as Models in my project Like:- public partial class TblAlbum { public int ID { get; set; } public string Album { get; set; } ...
(1) odpowiedzi
2016-12-14 12:12 Creating an ASP.Net MVC link in jQuery »
In my jQuery function I have this line to create an MVC URL: $('#response').append("<a href=\'\@Url.Action(\"Details\",\"Member\")\'>my link&...
(1) odpowiedzi
2016-12-14 01:12 Using wildcards when mapping routes with MapWebPageRoute »
In an ASP.NET Web Pages project (not Web Forms, not MVC) I am using Mike Brind's More Flexible Routing For ASP.NET Web Pages. I want to create a rou...
(1) odpowiedzi
2016-12-13 22:12 Glassmapper Sitecore Multilist field is empty »
Hi i am using glassmapper and i am trying to read all items in a multilist and populate. My page has a a Navigation, Title and a multi list field wher...
(1) odpowiedzi
2016-12-13 15:12 How to catch a selected option from a <SELECT> in MVC razor »
[HttpPost] public ActionResult Details(string id, FormCollection formCollection, bool cart = false) { ProductDbContext pdb = new ...
(0) odpowiedzi
2016-12-13 11:12 Execute JavaScript server side ASP.NET »
I need to get the HTML of a Razor view as a string in an ASP.NET MVC 5 application. I can almost do this with no problems but there are some HTML elem...
(0) odpowiedzi
2016-12-12 21:12 Display List<string> in @Html.TextBoxFor »
@Html.TextBoxFor(m => m.TeamMember, new { @class = "form-control", disabled = "disabled" }) Suppose now instead of TeamMember which is a string, ...
(2) odpowiedzi
2016-12-12 19:12 Javascript analogy of cshtml @Url.Artion(Action, Controller) »
As a part of my project, I am separating cshtml script section into its own file. It mostly went successful, except for one line. Originally, view fil...
(2) odpowiedzi
2016-12-12 14:12 How do I implement Radio buton group using asp.net mvc »
I have Course, Offered Course , Course Registration table ,Section Table in my project I want to implement Course Registration system of each user. th...
(2) odpowiedzi
2016-12-11 19:12 How to make a input field read-only without affecting to it's CSS in razor mvc? »
I have an input field which should not allow the user to edit. But when I make it read only it shades and all the applied "CSS" properties disappear. ...
(0) odpowiedzi
2016-12-11 14:12 Wrong tab opening with razor »
I have two tabs,one is "Compras" and other "Fiscal",when i open the aplication, if the users has the role "68" is should open the tab fiscal, otherwis...
(1) odpowiedzi
2016-12-11 10:12 How To Send ActionLink Parameters With routevalue in asp.net mvc 5 to controller with jquery »
@Html.ActionLink("mor info","CityInfo",new{cityid = --getvalue()--},new {@class = "mbtn" }) I want to get Value Selected In Dropdownlist CityId With...
(1) odpowiedzi
2016-12-10 20:12 How to get list of checked boxes in controller »
ASP.NET MVC 4 application allows to mark table rows. Razor view contains: @using (Html.BeginForm()) { <table class="table table-hover"> @fo...
(2) odpowiedzi
2016-12-10 14:12 Sometimes I see this character � in my web page »
Sometimes I see this character � near a Persian character in some pages and in my dynamic sitemap url. I have tried: list below metatag, save all...
(1) odpowiedzi
2016-12-10 07:12 Retrieve Certain Data From DB and Send It To View »
Problem This obviously doesn't work since it was a shot in the dark, What's the best way to retrieve data with certain id and then send/display data ...
(1) odpowiedzi
2016-12-09 21:12 Get type from compiled view »
I currently have code that compiles a mvc view to get the type from the view. var compiledViewType = BuildManager.GetCompiledType(path); var baseType...
(0) odpowiedzi
2016-12-09 13:12 How properly generate bootstrap grid via loop using Razor? »
I use ASP.NET MVC and bootstrap. I have many objects (>2) in collection and for each need a <div class="col-xs-6"> but with only 2 cols in a row...
(1) odpowiedzi
2016-12-09 13:12 How to post form data from razor view to WebApi as dictionary? »
I have a lot of forms created with helper Html.BeginRouteForm I want to post it to my web api controller and I can do it with predefined DTO. But ...
(1) odpowiedzi
2016-12-08 18:12 How to get ASP.NET MVC Action Method to Parse a Property defined in an Interface and implemented in an Abstract class »
I have a wizard with 5 steps, each step has a View Model that implements IUserAddUpdateStep Interface. An Action Method in my Controller looks like t...
(1) odpowiedzi
2016-12-08 13:12 Filter by DateTime Range MVC 5 »
Good evening everyone, I home, anyone can help my with Date time range filter on view part. Here is my model: public class IndexVM { public Date...
(1) odpowiedzi
2016-12-08 10:12 HTML onclick JavaScript function call always highlighted red Razor View/C# »
Occasionally with <button> or <a> elements when a JavaScript function is passed to the onclick or similar event, the end of the function ...
(1) odpowiedzi