Data dodania Pytanie
2017-04-10 14:04 add arrows on left menu »
I have here following code,I want to add down arrow on every clicked element parents and childs.When you click on Element which has no sub-category ar...
(0) odpowiedzi
2017-04-09 19:04 Prefill Html Editor Asp.net MVC »
I want to fill with a value of the @Html.Editor when the page is loaded. Here is my failed attempt : @Html.EditorFor(m => m, new { htmlAttribute...
(4) odpowiedzi
2017-04-09 18:04 Get IQueryable object items in ASPNET MVC Razor View »
Source is a not strongly type IQueryable returned by a Dynamic Linq Select. As a result in View I have: As they are not strongly typed I cannot man...
(2) odpowiedzi
2017-04-09 08:04 Html.Password doesn't work as expected Razor »
I have this view : <div class="form-horizontal"> <h4>Giriş</h4> <hr /> <div class="form-group"> @...
(1) odpowiedzi
2017-04-08 20:04 Inline logo and company name in navbar »
I am beginner in ASP.NET MVC and in default project template I'm trying to add a logo in navbar with the company name, I have successfully added logo ...
(1) odpowiedzi
2017-04-08 14:04 I get [MustUseReturnValue] warning from a method that is not annotated »
I can't get rid of one ReSharper warning. I have a bunch of HtmlHelpers including one for table, that allows me to bind view model properties to colum...
(0) odpowiedzi
2017-04-07 18:04 why can't I run scripts in line in my cshtml file? »
@section Scripts { <script type="text/javascript"> function greySubmit() { if (document.getElementById('qa1') != Request.Form[A]...
(0) odpowiedzi
2017-04-07 14:04 PDF Embeded in html page scroll bar issue »
I have emdeded a pdf into my page using object. Its working fine in chrome, but in IE i am getting an issue like when i scroll the page it is overlapp...
(0) odpowiedzi
2017-04-07 10:04 Better CMS in a load balanced hosting environment »
We're getting a few issues running BetterCMS on a load-balanced server setup. We're seeing a lot of errors like the following, across multiple pages: ...
(1) odpowiedzi
2017-04-06 18:04 Load Partial View inside another Partial View »
I have a PartialView (_Letra) that receives information from a Controller named Music ... this way public ActionResult CarregarLetra(string id, strin...
(2) odpowiedzi
2017-04-06 15:04 Umbraco - reference a published image »
I'm trying to ref a published image in Umbraco but 'MediaById' seems to be incorrect, what is the correct way to reference this? <img src="@Model....
(1) odpowiedzi
2017-04-06 05:04 C# passing warning message to Modal to render in View »
Quite simple, just trying to pass an error message to the view if the user's email address isn't found access.Message = "We have no record of your ...
(2) odpowiedzi
2017-04-05 18:04 Icon after text box in Bootstrap »
I am trying to display an icon after a text box within a form-horizontal Bootstrap form. So I set my text-box width to 80% and added the icon. <di...
(1) odpowiedzi
2017-04-05 13:04 Razor reference not working for .NETCoreApp 1.1 with Resharper »
I am trying to use the Razor framework within an ASP.NET Core project (.NETCoreApp 1.1), however, after retrieving the package from Nuget, the referen...
(2) odpowiedzi
2017-04-05 08:04 How to send a value from a form to a Javascript function in cshtml? »
I'm currently trying to call a javascript function by a form inside cshtml file. There would be a textbox in the form that receive string from the use...
(3) odpowiedzi
2017-04-04 16:04 Why are my different language resx files being ignored »
I have been following this page to make my site support multiple cultures. the code all compiles and runs, but it seems to be ignoring my culture spe...
(1) odpowiedzi
2017-04-04 15:04 ASP.net MVC 5 loading HTML.Partial from controller instead of loading on cshtml page »
new to MVC so here goes. I am currently loading up HTML.Partial on my Index.cshtml page like so: @Html.Partial("~/Views/Switchb/editPerson.cshtml") ...
(2) odpowiedzi
2017-04-04 11:04 Checkbox adds extra "false" value per selected one »
I have this piece of code in my View which belongs to a form <div class="col-md-10"> @foreach (var l in leads) { @: @Html.CheckBox("cbLead"...
(1) odpowiedzi
2017-04-03 20:04 print out from if else statement containing an id »
I have made this function. I am working with Razor and C#. If an order has a SupplierId of one of the numbers below, I have to print out the text that...
(2) odpowiedzi
2017-04-03 11:04 Get first value of Model's List in jQuery (document).ready using Razor? »
How can I get the value of the first item from the model's List? My ViewModel: namespace TestWeb { public class NavViewModel { public NavView...
(3) odpowiedzi
2017-04-03 09:04 Drop Down List Giving Incorrect Values »
I have followed the following tutorial for my project: https://www.youtube.com/watch?v=h_ViuyVs4AE The issue that I have is that when I click an ite...
(2) odpowiedzi
2017-04-02 15:04 Rendering a sublist of a list in .net MVC »
I'm still learning .net MVC, and perhaps am not searching correctly for what I need to find a solution to. In short, I have a table in the database t...
(1) odpowiedzi
2017-04-02 08:04 compare multiple strings in foreach »
I am making some programming for a hotel. They want an email receipt if a booking has been made. I am working with a razor mergefield called: @Guaran...
(3) odpowiedzi
2017-04-02 03:04 Enum save failing, error message not displayed »
I am new to MVC. I have defined an enum for UnitOfMeasure in my Ingredient table, as follows: public enum UnitOfMeasure { oz=1, lb=2, ml...
(1) odpowiedzi
2017-04-01 22:04 c# razor template with @Link.To renders the incorrect link »
I have a template for the details view of a single product. In this template it lists the "tags" and "categories" with links to view products of the ...
(0) odpowiedzi
2017-04-01 18:04 @Scripts doesn't exist in Asp.Net MVC »
I'm trying to add Model validation in Asp.Net MVC , So I need to import the libraries at first inside Views\Share_Layout.cshtml . Then it kills me i...
(1) odpowiedzi
2017-04-01 13:04 How to force checkbox to behave like radiobutton, double loop »
I have checkboxes in 2 for loops. I want to force them to behave like radiobuttons. There should be only one option chosen for each Q (first loop). I ...
(1) odpowiedzi
2017-03-31 14:03 render editor in cshtml for a viewmodel »
I have the following viewmodel : public MyViewModel { prop string p1 {get;set;} prop string p2 {get;set;} } And in my razor view I am...
(1) odpowiedzi
2017-03-31 10:03 Html Hyphen (-) New Line Copy Paste Error »
I am developping a MVC project and facing a weird problem. In my view; If I define a div like this <div class="col-lg-1" style="padding-top: 1...
(1) odpowiedzi
2017-03-31 10:03 razor - how to dynamicaly insert id into div element »
In my view I have: @foreach (var comment in Model.commentList) { var id = comment.CommentId; <div id="@(id)" style="height:100px; width: 1...
(3) odpowiedzi
2017-03-30 20:03 Getting error in HtmlHelper/Razor in asp.net mvc-5 »
I have created one cshtml file. When I run/build the solution in visual studio the solution builds fine and even the functionality wise (as far as I c...
(1) odpowiedzi
2017-03-30 14:03 using c# linq to populate/load a list one time to enhance performance »
I'm working on an ASP.NET MVC 4.5 application. I need to populate a list in a dropdown. I t works fine, anyhow, when I click the field there is allway...
(2) odpowiedzi
2017-03-30 11:03 Where should I include a script for a view component? »
I have tried adding a section script inside a view component's view. @section scripts { <script src="~/somepath" asp-append-version="true">...
(1) odpowiedzi
2017-03-29 17:03 ASP.NET MVC- functionalities of a view doesn't work unless I access it directly »
I have a view with sidebar that contains a list of files, and a partial view contains a text area. I want to display the contents of a file once the u...
(1) odpowiedzi
2017-03-29 12:03 Mvc read Date in editview »
i have this Model: [DataType(DataType.Date)] [DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)] public Da...
(0) odpowiedzi