Data dodania Pytanie
2017-10-12 17:10 .NET Core 2.0 - BlogCategory from BlogItem »
Just trying to get my @item.BlogCategories.CategoryName to display the Category, but it says the object is not set. I checked the DB. and the BlogCate...
(1) odpowiedzi
2017-10-12 15:10 Razor syntax to complete an MVC form »
I'm very new to using Razor with C# and am conducting this project in order to try to better my understanding of it. This application is supposed to,...
(2) odpowiedzi
2017-10-11 16:10 Correct way to convert datetime timezone for display »
We are developing a website and currently, the timezone of the website and database is in German time zone (European standard time zone). But the appl...
(2) odpowiedzi
2017-10-11 15:10 Cannot get a dropdown list to pass data from view to controller? »
I have set up an MVC web app using entity framework for a leave request system. The model, RequestModel, has a value LeaveType, which I would like to ...
(1) odpowiedzi
2017-10-10 17:10 RAZOR Javascript coding assistance »
I have the following JS code that I use to create an object: var TransactionData = { orderId: '@Model.Order.SalesOrderNumber.SelfOrDefault().Full...
(3) odpowiedzi
2017-10-10 10:10 Error: redirect_uri_mismatch (ASP.NET MVC) »
I am getting the following error when trying to let user login using GOOGLE I have tried so many things and nothing works I used the following co...
(1) odpowiedzi
2017-10-10 09:10 List filled with Objects passed to controller Action Method but Objects Properties are Empty »
I have below table in MVC. <table id="tbl" class="table table-bordered table-striped table-hover"> <thead> <tr> ...
(0) odpowiedzi
2017-10-09 17:10 Equivalent Server.MapPath for http query »
I have an .net Mvc application started with http://localhost:1234. In production the url is http://mywebsite/mysubfolder. In a HelperExtension i have...
(1) odpowiedzi
2017-10-08 14:10 Postback on CheckedChange »
I want to filter a list based on some checkboxes, therefore when I (un)check a checkbox I would like to do a postback to the server and do my filterin...
(1) odpowiedzi
2017-10-08 07:10 Razor Javascript dynamic format of anchor not working »
I am trying to dynamically format a Razor Url.Action call with the following code: <script> function getArchiveDisplayStr(str) { var parts...
(2) odpowiedzi
2017-10-07 19:10 The following sections have been defined but have not been rendered for the layout page "~/Views/Shared/_Layout.cshtml": "Scripts" Login/Register »
so I have this weird problem, and honestly I have no clue when it stopped working, so it's hard for me to understand where's the problem. Basically, t...
(1) odpowiedzi
2017-10-07 12:10 Asp.Net MVC authencation with Wep Api »
I am developing an MVC project with the web API. When the user logs in, I am sending a token to the web service. I keep this token in the Session obje...
(1) odpowiedzi
2017-10-06 18:10 ASP.Net Web Api, POST multiple objects »
I have this AngularJS Http Call $http({ method: "POST", url: Helper.ApiUrl() + '/Api/Case/SendCase', data: { obecttype1, obj2, o...
(3) odpowiedzi
2017-10-06 16:10 Chrome appending -- to end of filename »
string fileName = "test.txt"; byte[] docBytes = getDocumentBytes(); return File(docBytes, System.Net.Mime.MediaTypeNames.Application.Octet, fileName)...
(1) odpowiedzi
2017-10-06 16:10 Adding Rich Cards data to my dotnet application cause it to crash »
I am trying to add Rich Cards to my dotnet application. So, if I try to add this: <script type="application/ld+json"> { "@context": "http:/...
(1) odpowiedzi
2017-10-06 12:10 Single .NET Core Razor C# functions in all Views »
I know there is a way to ad c# functions inside a view and call them by using @functions{ ... } method inside my view, but is there a way to create a ...
(2) odpowiedzi
2017-10-06 12:10 The underlying provider failed on Open iis »
I am working on asp.net web api, when I run my project on micro soft visual studio built in server every thing work fine, but when i host it on local ...
(2) odpowiedzi
2017-10-05 17:10 Html.RadioButtonFor check box doesn't work »
I tried different scenarios to make the first radio button ("Yes") to be checked by default, but none of them seems to be working. I know that i can s...
(0) odpowiedzi
2017-10-05 16:10 Ajax.BeginForm with 4 arguments not finding the action method »
I have a weird case and I wanted your enlightenment. I have two controllers. One Person Controller for general Person use action methods and one Candi...
(1) odpowiedzi
2017-10-05 16:10 MVC app only rendering the _Layout.cshtml »
I'm currently facing an issue with an MVC application I'm busy with, when testing the site in a local environment it shows the login page like it's su...
(0) odpowiedzi
2017-10-05 12:10 Facing issue while consuming services from a class library in a API project »
I have created a Class library project and add the service reference of "E-Verify" web service to this project. In this project, I have created a wrap...
(0) odpowiedzi
2017-10-04 22:10 Can't create a dropdown using Select TagHelper but scaffolding does »
I used scaffolding to get a simple MVC page and it produced code like this from my model: ViewData["CustomersNo"] = new SelectList(_context.Customers...
(1) odpowiedzi
2017-10-04 19:10 DropDownListFor using ViewBag of SelectListItems »
Controller for partial view public ActionResult _AddRedirect() { var domains = (from d in DB.Tokens orderby d.Domain ...
(2) odpowiedzi
2017-10-04 10:10 Passing a multi-line string to Controller to be encrypted and passed back to a Razor view »
My application should be a very simple ASP.Net MVC interface that gets a multi-line string from the user, and return it encrypted upon submit. The pro...
(1) odpowiedzi
2017-10-04 04:10 ASP.NET Exception-Handling: ExceptionFilterAttribute vs Overwrite ExecuteAsync »
In ASP.NET, Microsoft suggests us to use ExceptionFilterAttribute to handling exceptions. Exception Filters But I think we have other ways to handlin...
(1) odpowiedzi
2017-10-04 00:10 DbContext Dependency Injection outside of MVC project »
I have a C# solution with two projects, ProductStore.Web and ProductStore.Data, both targeting .NET Core 2.0. I have my HomeController and CustomerRe...
(3) odpowiedzi
2017-10-03 21:10 Modelbinding from both body and route parameters web api »
I have a need whereby I am providing a model that contains all the parameters that I wish bound in a POST request. However some of these parameters a...
(1) odpowiedzi
2017-10-03 19:10 How to filter entities using queries in C#? »
I need to create functionality that would allow users to filter entities using literal queries (i.e. age gt 20 and name eq 'john'). Is there a provide...
(1) odpowiedzi
2017-10-03 12:10 Asp .NET Web Api + MVC + Angular 2 - action with two parameters »
I have an ASP .NET MVC application with Angular 2. I added a WebApi Controller and try to communicate from angular service with it, but it does not ac...
(1) odpowiedzi
2017-10-02 12:10 Validate multiple Partial view without BeginForm in a View »
I have a View (Index.cshtml) which has two modals (Bootstrap modal). I have loaded a Partial View in each ‍‍‍modal. So in this View I have two ...
(1) odpowiedzi
2017-10-02 05:10 .net Core EF Linq select where between two dates »
I am migrating an existing MVC5 project to .net Core. I used the following to get a list of items between two dates: var result = _context.Model.Whe...
(0) odpowiedzi
2017-10-01 19:10 Paging in webgrid not working in asp.net mvc 5 »
I have following view and controller. Problem is that when enabling paging and I click on next page, previous view is gone @using System @using Syste...
(1) odpowiedzi
2017-10-01 15:10 How to persist a cart through a single page »
I'm currently facing an issue trying to create a page with a cart system which would look like this: Items part of the page: Item1 | Some info | Ad...
(0) odpowiedzi
2017-10-01 12:10 how to use json ajax for google map markers »
I try to use the Json Ajax for google map markers.So after clicking on the button run Ajax, I get a problem with it. it's not display markers Should ...
(1) odpowiedzi
2017-09-30 08:09 Error on sign-in: "Format of the initialization string does not conform to specification starting at index 0" »
I'm moving my site and database from from Azure to GoDaddy. Everything worked on Azure. On GoDaddy, the site pulls inventory from the database usi...
(0) odpowiedzi