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
1 answer

Explain the ASP.NET WebAPI HttpRoute plumbing

I am a long-serving ASP.NET VB web forms programmer, but need to start using WebAPI to create a simple service. I've followed the PluralSight tutorial on http://www.asp.net, and have these two snippets: HelloApiController.vb Imports…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
2
votes
2 answers

Should I bundle files in ASP.Net that are likely to already be cached in the browser?

Many code examples, and the default RegisterBundles method in BundleConfig.cs generated by Visual Studio 2012 for a new MVC app, include code like this to add common JavaScript files like jQuery to a bundle: bundles.Add(new…
2
votes
1 answer

AffectedRows always -1 in ItemInserted of FormView

I have an ASP.NET 4.5 web forms application using model binding. I've created a business logic layer as per this tutorial: http://www.asp.net/web-forms/tutorials/data-access/model-binding/adding-business-logic-layer So the InsertMethod of my…
Neville
  • 1,080
  • 1
  • 12
  • 28
2
votes
1 answer

Custom WCF Landing Page when Hosted in IIS 7.5

I have read through what seems to be available on the internet for replacing the standard WCF landing page with a custom site, however, these solutions seem not to apply to IIS hosting. Both this question and this walkthrough suggest creating an…
Michael Kingsmill
  • 1,815
  • 3
  • 22
  • 31
2
votes
2 answers

How create a MultipartFormFormatter for ASP.NET 4.5 Web API

These links didn't help me: Way 1 Way 2 Example: //Model: public class Group { public int Id { get; set; } public File File { get; set; } } //Controller: [HttpPost] public void SaveGroup([FromBody]Group group)…
2
votes
1 answer

LINQ return expression if expression does not match

I'm not sure the title explains the problem well, so here is the code. I want to return an anonymous object to bind my grid to. In that grid, I want to change usernames to fullnames, but only if I HAVE the fullname to match the username. In the…
Jazzy
  • 519
  • 9
  • 31
2
votes
2 answers

Difference between page methods and Web API in ASP.NET

I am working on an e-commerce website (ASP.NET 4.5, Web Forms). For showing the review of each product I am using Web API to get data from the server. I am making a GET Ajax call here and the same functionality can be achieved by using page methods…
Bisileesh
  • 1,982
  • 2
  • 19
  • 29
2
votes
3 answers

How to pass parameter to SelectMethod of gridView in asp .net 4.5

Problem : How to pass parameter to SelectMethod of gridView in asp .net 4.5 Description : I am using asp .net 4.5 and using (strongly typed model binding) SelectMethod to bind data to gridView. SelecteMethod="BindGrid" BindGrid is user defined…
user2206336
  • 29
  • 1
  • 4
2
votes
1 answer

EF 5 LINQ joining tables with multiple conditions in ON clause

I am trying to join tables using two conditions in my on clause but I get the error Operator && cannot be applied to operands of type byte and byte How can I use multiple conditions in the ON clause for joining tables? using…
user1365911
2
votes
7 answers

DNN website issues

We followed every steps given in installation guide in dot net nuke site for DotNetNuke_Community_07.00.02. We have database server on virtual machine and we use SQL server authentication. 1) When we click edit page in home page it redirect to home…
sachin
  • 81
  • 2
  • 8
2
votes
1 answer

UnobtrusiveValidationMode requires jquery ScriptResourceMapping when using ScriptBundle

I'm using the new Bundling and Minification in ASP.NET 4.5 Web Forms application. UnobtrusiveValidationMode requires a jquery ScriptResourceMapping to work, but I'm registering it through the ScriptBundle config. I'm using like this: bundles.Add(new…
2
votes
3 answers

Can't find the Publish Website Option in Visual Studio 2012 Express Web

I created an Empty Website (not a project) using File > New Website > Aps.net Empty Web Site. Usually when I click on Build, there is an option to "Publish Web Site". However, I don't see it here. All I can see is build and rebuild solution. What am…
user1005793
  • 2,821
  • 5
  • 17
  • 12
2
votes
1 answer

HttpTaskAsyncHandler and HTTP context

I am just starting to learn how Task works, and get one interesting case. I have HttpTaskAsyncHandler but I can't get acccess to HttpContext if my code inside ProcessRequestAsync calls to some Task public class MyAsyncHandler :…
Arbejdsglæde
  • 13,670
  • 26
  • 78
  • 144
2
votes
1 answer

CryptographyException with MachineKey.UnProtect and Cookies in ASP net 4.5

I'm trying to substitute the deprecated Encode and Decode methods with the new MachineKey.Protect and Unprotect methods with ASP.NET 4.5. I used the old methods to encrypt and decrypt cookie values as well but now when calling the Unprotect menthod…
Manight
  • 500
  • 5
  • 26
2
votes
2 answers

EF 5 Updating N-Level Deep Object Graph?

Here is the situation, i have three entities of which has the following relationships: -Team one-to-one TeamContact -TeamContact one-to-one TeamAddress I have managed to create, add and save these objects with no trouble. However, when i tried to…
Komengem
  • 3,662
  • 7
  • 33
  • 57