Data dodania Pytanie
2017-04-22 23:04 Localization on _Layout.cshtml »
I'm trying to apply localization on _Layout.cshtml _Layout.cshtml @using Microsoft.AspNetCore.Http.Extensions @using Microsoft.AspNetCore.Localizati...
(1) odpowiedzi
2017-04-22 23:04 CSS sheet not affecting the layout »
first of all, I couldn't find a way to phrase my problem in one sentence, so I'll try to be more explicit in the post. So I've been developing on VS, ...
(0) odpowiedzi
2017-04-22 22:04 ASP.Net MVC Core 1.0, how avoid reencoding characters from inside a partial view »
characters from inside a view are misencoded by the razor renderer. for instance: MyPartial.cshtml: á á á MyView.cshtml: á á á @Html.Partial(...
(0) odpowiedzi
2017-04-21 23:04 How to have one button do both "enable" and "disable" in ASP.net MVC »
I am new to ASP.Net MVC, and still trying to wrap my head around the controller and passing data to the view and back. Here is my question. I have a ...
(0) odpowiedzi
2017-04-21 21:04 pass data from one controller action to another controller action in ASP.Net MVC 5 »
I need to pass data from one controller action to another. I do not want to use a. Session b. TempData Logic Below code is about the forget pass...
(1) odpowiedzi
2017-04-21 19:04 DateTime Format "dd/MM/yyyy" on ASP.NET MVC5 »
How I can show DateTime like this dd/MM/yyyy? Here my code [DataType(DataType.Date)] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] public Da...
(2) odpowiedzi
2017-04-20 12:04 Update List in ViewModel with Ajax ASP .NET MVC »
I have a List (List) of Model objects which is presented in a view. I would like to add to that list without refreshing the page - therefore i thought...
(3) odpowiedzi
2017-04-20 11:04 Put specific values in specific table cells from database. (Razor - html) »
<table class="prTable"> <tr> <th>Exercise</th> <th>1</th> <th>2</th> ...
(1) odpowiedzi
2017-04-20 08:04 how to add section Scripts to asp.net mvc Razor View without layout page »
My mvc view layout is null. how can i add script inside view. @{ Layout = null; } @section Scripts{ <script type="text/javascript"> $(...
(3) odpowiedzi
2017-04-19 18:04 Umbraco job feed rss »
Okay, so this problem has been driving me nuts for a while now. I'm working for a client who has a site on Umbraco, they're a recruitment company and ...
(0) odpowiedzi
2017-04-19 17:04 Select RadioButton based on database value »
Working on MVC 5 app. I have a table with a bunch of columns. One column contains a radio button list of items. Since this is an "edit" view I need ...
(1) odpowiedzi
2017-04-19 16:04 The name 'model' does not exist in current context in ASP.NET Core »
I'm trying to develop a website with plugins using ASP.NET Core. I have my main project, asp.net web application which works fine. I have a class libr...
(1) odpowiedzi
2017-04-18 22:04 Create a Dynamic List using Entity Framework in MVC Razor »
I would like to make a list populate with vehicle makes using a stored procedure and Entity Framework but when it I get the following error: The mode...
(1) odpowiedzi
2017-04-18 16:04 Razor rendering in jsx »
I'm trying to have a Navbar fixed in my MVC web app. Is there a way I can have something like this in my _Layout.cshtml ? Just looking to take advanta...
(0) odpowiedzi
2017-04-18 12:04 how to pass model to partialview in umbraco? »
I want to pass a object as model to a partial view in umbraco. there is two function @Html.Partial() and @Html.Partial() which have 4 override method ...
(1) odpowiedzi
2017-04-17 19:04 Convert string to int, check total sum of int based on foreach loop »
I've seen what seem to be similar questions on here but they all seemed very contextual and I've so far had some trouble figuring this out. Still pret...
(1) odpowiedzi
2017-04-17 16:04 Trouble getting post variables from row-based elements »
I am working on a "Survey" application in MVC 5. Basically it's an application to support surveys for users to fill out. The user can also go back at ...
(1) odpowiedzi
2017-04-17 09:04 Why razor is rounding to a decimal type to 2 decimal places automatically? »
This is the field I have in my View Model: public decimal MyValue { get; set; } Here is how I show the value in a View: @Html.EditorFor(model =&gt...
(2) odpowiedzi
2017-04-16 22:04 Entity Framework 6 error with SQL Server 2012 throws EntitySqlException »
I'm developing an intranet app with asp.net mvc 5 with razor syntax and Entity Framework 6, but when I run the app, an EntitySqlException occurs. Whe...
(1) odpowiedzi
2017-04-16 16:04 Form POST parameters wrong generated after return view »
So I have this CSHTML: @using (Html.BeginForm("DeleteProduct", "Shop", FormMethod.Post)) { @Html.Hidden("productId", product.ProductId); @Htm...
(2) odpowiedzi
2017-04-16 01:04 Why isn't my TextBoxFor displaying currency values correctly? »
I have the following TextBoxFor on an MVC form: <div class="col-xs-3"> @Html.TextBoxFor(m => m.SalesSubTotal, null, new { @class = "form-...
(2) odpowiedzi
2017-04-15 21:04 default select option as blank mvc razor »
I want null option selected displayed as --Select-- by default in my dropDown. I'm trying to do it like this <select class="form-control" asp-for=...
(1) odpowiedzi
2017-04-15 10:04 Where to use db context for viewmodels in MVC »
The Controller should not directly use the DB context, and the respository should not know about view models (representation). The underlying issue ...
(2) odpowiedzi
2017-04-15 01:04 How to enable a file download via anchor in MVC »
I have the following: <a class="download" href='/doc.txt' download>Download txt</a> And this file is in the root of my web project. ...
(1) odpowiedzi
2017-04-14 19:04 Pass html datalist value to Html.Action »
I'm creating an HTML form that lists line items from one organization that need to be mapped to another on. My idea was to take the id of the selected...
(0) odpowiedzi
2017-04-14 18:04 How to create a Countdown (javascript ?) in Razor? »
I am trying to create a auction site ASP.net MVC using on Razor, But I want to create a countdown on my list of bid items. How do I put a countdown in...
(1) odpowiedzi
2017-04-14 16:04 How to serve images from another server in mvc? »
I have the image path served from a database. The path is \\server1.mysite.com/images/banana.jpg How would I display it on my mvc website hosted at h...
(0) odpowiedzi
2017-04-13 19:04 asp.net razor and jQuery autocomplete plugin »
Hey i want to autocomplete this html text input: $("#Supplier").autocomplete({ source: availableTags }); and i have ar...
(1) odpowiedzi
2017-04-13 11:04 How to generate URL using Html.ActionLink with Forward Slashes instead of QuestionMark »
I am trying to generate the URL with forward slash like the following @Html.ActionLink("Details", "Details", new { id = item.StudentID, name = item.F...
(1) odpowiedzi
2017-04-13 09:04 How to display external web page in mvc 5? »
I would like to display another web sides inside my mvc view. Can anyone help me how to do this issue? I tried using iframe but i could not succeed i...
(2) odpowiedzi
2017-04-12 23:04 MySQL Error with ASPCORE using C# »
I have a data base with three tables. Users, messages and commits. The site boots up and I can login and register just fine When I go to post a messag...
(0) odpowiedzi
2017-04-12 20:04 How to mask Password in MVC ViewRazor »
I need to mask Password in View in MVC Project, where i have list of users. Model: [Required] [StringLength(50)] [DataType(DataType...
(2) odpowiedzi
2017-04-12 09:04 Sending emaills with template MVC using Razor »
I want to send some mails from my site. I've created a template: OrderPlacedEmail.cshtml @model OnlineCarStore.Models.PurchaseVM <h1>Order Pl...
(2) odpowiedzi
2017-04-11 15:04 MVC Areas & Shared Layouts »
Hopefully I am making myself clear. I have an area in my mvc project with two shared layouts _Application.cshtml (For Areas) _Layout.cshtml (For non-...
(3) odpowiedzi
2017-04-11 15:04 asp.net mvc view only returns when using for loop »
So I've been working on a simple asp.net application this week. And today I had a problem with a razor view not returning anything to my controller me...
(3) odpowiedzi