Data dodania Pytanie
2017-02-04 21:02 jQuery Datepicker show one format, send another »
So I'm using the jQuery Datepicker script on a few of my textboxes. $(function() { $(".datepicker").datepicker({ dateFormat: "M d, yy" }).val() })...
(2) odpowiedzi
2017-02-04 00:02 MVC 5 Razor User.IsInRole("roleName") not using custom user store »
I have an Asp.Net 5 app using Identity 1.0, and I have implemented a custom user manager that provides custom logic specifically for User Roles. All ...
(0) odpowiedzi
2017-02-03 17:02 Make Remote Email Validation work only in certain views? »
I have an email property in my model that looks like this [Required(ErrorMessage ="Email Address is required.")] [EmailAddress(ErrorMessage =...
(2) odpowiedzi
2017-02-03 15:02 How do I turn off Required validation for a field in MVC when a checkbox is checked? »
This is whats in my model: public CheckBoxListItem Same { get; set; } [Required(ErrorMessage = "* Billing Name field is required")] p...
(0) odpowiedzi
2017-02-03 10:02 .NET Core Razor C# functions »
I'm pretty new to .NET Core (ASP.NET on the whole) and I was wondering if I'm doing anything obviously wrong when trying to create a C# function insid...
(1) odpowiedzi
2017-02-02 20:02 ASP MVC 5 Date Format Validation Issue »
In my ASP MVC 5 web application, I need to display a date in a specific format. When the page loads, the text is formatted correctly. But if you edit ...
(1) odpowiedzi
2017-02-02 20:02 ASP.NET Core Dynamic Hiding and Showing Onchange »
I'm new to ASP.NET Core and I'm trying to figure out the simplest way to hide/show elements based on field value changes. For instance if I have the f...
(1) odpowiedzi
2017-02-02 16:02 Rendering a partial view with ajax »
Currently I have a main view called getRolesByYear.cshtml. In this view I have three buttons, each for an year. When I click a button(or on page load)...
(1) odpowiedzi
2017-02-01 18:02 Import namespaces automatically into all cshtml files in App_Code folder »
For some reason for all my .cshtml files in App_Code folder I have to explicitly import namespaces with @using Namespace directive. However, I do not...
(0) odpowiedzi
2017-02-01 12:02 Loading a controller from a DLL outside of bin directory cannot find views within Areas folder »
I have Areas within an MVC 4 application that contain Views and Content. I have written a PreApplicationStartMethod to be invoked to load the DLL cont...
(0) odpowiedzi
2017-02-01 03:02 MVC 5 Details view not showing data for fields with foreign keys »
This is my first time both writing an MVC 5 application and using C#. I've gotten pretty far along, and have been able to trouble shoot a number of b...
(1) odpowiedzi
2017-01-31 18:01 JQuery .removeAttr('required') not working for input radio group »
What I am trying to do is when $('input:radio[name="NeverWornRespbefore"]') is selected, I want to remove the required attribute from the radio group ...
(2) odpowiedzi
2017-01-31 13:01 How to fetch selected data's value from disabled list in MVC C# »
I have designed a razor-view that is bounded with model. This page containing multiple lists(drop-down). In some case depended child drop-down list is...
(2) odpowiedzi
2017-01-31 03:01 NancyFx: how to pass an error message to a custom error page? »
We've implemented static custom error pages for 404/500 HTTP status codes using Razor and the IStatusCodeHandler implementation documented here: http...
(0) odpowiedzi
2017-01-30 23:01 Layout page not found executing a sample ASP.NET MVC project »
The layout page "~/Views/Shared/_Layout.cshtml" could not be found at the following path: "~/Views/Shared/_Layout.cshtml". I am getting the abo...
(2) odpowiedzi
2017-01-30 22:01 Create Submit Button for Table in Razor & MVC »
I am new to MVC and I am not sure where my problem is but having difficulty finding a challenge I am facing. My Save Button Posts a record but the co...
(2) odpowiedzi
2017-01-30 08:01 How to add id to @Html.DisplayFor »
I'm trying to add id to @Html.DisplayFor(model => model.ScreenWidth, new { @id = "width"}) and then use document.getElementById("width").innerH...
(2) odpowiedzi
2017-01-29 19:01 SQL Datepart, multiply columns for a weekly sum »
I have found that I have to use DATEPARTif I want to view data in a weekly manner, I'm just not sure how to put my SQL query together. So far I,ve g...
(1) odpowiedzi
2017-01-29 13:01 Dynamic View Not Binding »
I have a view that is populated from a model that worked fine when it was not dynamically loaded. Because of functional requirements though, I changed...
(0) odpowiedzi
2017-01-29 10:01 How to get data from Database/Model with JavaScript »
I'm new to ASP .NET, MVC and AngularJS so I'm trying to figure this all out still. I have a Model called Words.cs which contains: namespace liveSear...
(2) odpowiedzi
2017-01-28 21:01 How to render input elements inside form elements »
Antaris RazorEngine v3.9.3 is used in ASP.NET MVC4 controller to create form element. In result html input elements are rendered outside form element....
(0) odpowiedzi
2017-01-28 16:01 How do active/deactivate required validation based on drop down Selection with JavaScript in mvc razor »
I want to make a active/deactivate required based on drop down Selection for that for that i need a modification in script here is a HTML of Drop Dow...
(0) odpowiedzi
2017-01-28 11:01 Using razor inside javascript only works sometimes »
I'm working with google charts here and trying to get my data into it, the first code here is one that works and the second part of the code is the on...
(0) odpowiedzi
2017-01-27 21:01 Waiting for a file to change before restarting dotnet error »
I am using asp.net core, razor engine, and entity framework. I am getting this error when I try to run my code in VS code using dotnet watch run. He...
(0) odpowiedzi
2017-01-27 20:01 Updating a Partial View In mvc 5 »
getting and error when trying to load a partial view that should display a list on the create view of the mvc app. the list is based on a value will c...
(2) odpowiedzi
2017-01-27 10:01 SQL: Group by date »
I'm looking for a SQL wizard to help me solve a little problem, I was told that my code was a bit uneffective and that it might be solved to work bett...
(2) odpowiedzi
2017-01-26 16:01 How to use a var in ajax url with action razor syntax »
I have a function that calls a method in controller through an Action URL, but I need use a parameter like name of Method, but this is not possible in...
(2) odpowiedzi
2017-01-26 15:01 Disable/Enable Drop down validation(Html/Jquery) »
Bare with me while i am explaining my issues. i have three drop downs containing data, these three drop downs get cloned after the user select the fou...
(0) odpowiedzi
2017-01-26 10:01 SQL Injection cshtml »
So I've asked a few questions on here and been roasted for using SQL injection vulnurable code, even though the site won't be online I've been advised...
(1) odpowiedzi
2017-01-25 21:01 Is it possible to use ASP.NET Core Web API and Views with Razor and get Intellisense? »
If I build a Web API Project in Asp.Net Core 1.x, and I want to build the front-end in the same Project or Solution, is it possible to create front-en...
(0) odpowiedzi
2017-01-25 21:01 JavaScript - Uncaught SyntaxError: missing ) after argument list »
I am working on MVC project and I am running into an error when I am trying to open a Bootstrap modal. The error message I am getting is: Uncau...
(1) odpowiedzi
2017-01-25 09:01 razor dropdown list add the data but show after refresh the page »
@{ HotelManagementEntities db = new HotelManagementEntities(); var list = db.tblCategories.Select(m => new { m.intseqid, m.varCategory}).To...
(3) odpowiedzi
2017-01-24 23:01 Can you display a list on screen in mvc, not a drop down list but a list »
So yeah... a user has posted this question... I want to do what he is asking... See this users question: MVC DropDownList OnChange to update other f...
(0) odpowiedzi
2017-01-24 13:01 Dynamic div display order on Asp.Net MVC Razor View Server Side »
Is it possible to change display order of divs when rendering View Page on Server Side? Every single div has different c# and html content, so it's no...
(2) odpowiedzi
2017-01-24 11:01 How Can I add a class to an HTML.ActionLink in MVC? »
I have html code which is posted below. I would like to apply that Delete and Edit Button class to HTML Action Link. Here is my code. @Html.ActionL...
(1) odpowiedzi