Questions tagged [asp.net-4.5]

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

616 questions
2
votes
3 answers

Is support planned for embedded resources with ASP .NET 4.5 css and js bundling features?

I read Scott Gu's article about built-in support for bundling and minification in ASP .NET 4.5. However there's no mention of embedded resources, which is a pity. In the past I've been using a Codeplex project called Client Dependency Framework…
cbp
  • 25,252
  • 29
  • 125
  • 205
2
votes
1 answer

Case-insensitive enum in ASP .NET Web API

In my web API, I have an endpoint for CRUD operations on an object that contains enum Properties. // User.cs public class User { public string Username { get; set; } public Platform Platform { get; set; } } public enum Platform { …
jfhr
  • 687
  • 5
  • 13
2
votes
1 answer

Stored Procedure works well in SSMS but no rows returning when it is called in C#

I have a stored procedure that I need to run in C# and set the result set returning from the SP in a HTML table. Please note that the SP is working well in SSMS and returning results. The c# code I am using is (it is in an ASP 4.5…
Eray Balkanli
  • 7,752
  • 11
  • 48
  • 82
2
votes
2 answers

Can a .NET 4.5.2 Assembly be programmed to use CLR version 2.0 for SQL Server 2008 R2

I am writing an assembly in Microsoft .NET Framework 4.5.2 that defines a type to be using on both sides of a database connection (inside the database as well as the DataTable on the .NET side). The server is running SQL Server 2008 R2. The SQL…
Timothy Dooling
  • 470
  • 1
  • 4
  • 17
2
votes
1 answer

Looking for a solution to passing json data from asp.net mvc 4.5 to an angular 2 componet via razor @Html.Raw(Json.Encode(Model))

I am trying to display rows of data on a page using Angular 2, TypeScript and ASP.NET MVC 4.5. I'm trying to deliver the JSON into an Angular 2 component, but I've not been able to succeed, and the browser isn't showing any errors. Does anyone know…
jdooloukas
  • 21
  • 1
2
votes
0 answers

OData filtering with dynamic property of Date

I have created an EntityType called Document which contains dynamic properties: public class Document { public int Id { get; set; } public DateTime CreatedAt { get; set; } public IDictionary DynamicProperties { get; set;…
Sebastian N
  • 759
  • 7
  • 13
2
votes
2 answers

Automagically handling multi-lingual properties in a .NET class

I am trying to handle multiple languages in an ASP.NET Webforms (.NET 4.5, C#) application of mine. Basically, some of my entities in my SQL Server 2012 database have properties like Name or Description which exist in three languages - German,…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
2
votes
0 answers

Debugging gulp, bower, npm project with Visual Studio 2015 and ASP.NET 4.5

I have created a few projects that use AngularJS and WebAPI with Gulp, Bower and NPM for the build. It is a bit clunky as I need to publish into a folder and then run my gulp build and debugging is only possible through rewrite commands in the…
mykbaker
  • 93
  • 2
  • 6
2
votes
1 answer

ASP.NET Webforms and AngularJS

I'm still struggling to get my first ASP.NET WebApi / AngularJS app up and running... I'm trying to query a WebAPI service (which I've written and verified using Fiddler that it works just fine) from Angular, and I'm trying to show the data returned…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
2
votes
0 answers

ELMAH get user info from request in anonymous website

I'm using ELMAH to log errors for ASP.Net website with anonymous access. Because of this, the "user" in the log is blank and I want to populate with information from the Request. I get the user info in the request header of the page and I want pass…
2
votes
1 answer

ASP.NET web forms model binding nested collection

I can't figure out how to use model binding in web forms to populate a child collection of a view model. Suppose I have the following: public class MeasurementViewModel { public string Name {get;set;} public int MeasurementTypeId {get;set;} …
naasking
  • 2,514
  • 1
  • 27
  • 32
2
votes
1 answer

Autofac not auto wiring properties to a custom class

I am trying to setup a class using Autofac autowired properties for a custom class which a controller calls. I have a setup a test project to show this. I have two projects in my solution. An MVC web application and a class library for services.…
Aaron Sanders
  • 726
  • 1
  • 6
  • 24
2
votes
1 answer

ASP.NET 4.5 application warmup causes error determining loaded assemblies

I have a library module that we use in all of our web applications that lists out all the loaded assemblies (and their version number) into our log4net log file in the Application_Start method of an ASP.NET webforms application. This has worked…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
2
votes
1 answer

Wait for all Tasks on the ThreadPool to finish

This might have a very simple answer, already posted here somewhere, but there is also a lot of old misleading information about threads. My question is this: How do I prevent my Console from terminating before the background work is complete? Since…
Joel
  • 8,502
  • 11
  • 66
  • 115
2
votes
4 answers

ASP.net C#. Multiple pages in one

So I am using ASP.NET 4.5 web forms. I have this form where I want a user to enter data, after the users enters data they should be able to press the next button and they can enter more data. Is it possible to do this on one ASPX form, or do I need…
user673906
  • 757
  • 6
  • 15
  • 30