Questions tagged [asp.net-4.0]

This tag refers to the version 4.0 of the ASP.NET web application framework introduced with the .NET Framework 4.

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

1371 questions
19
votes
3 answers

Hide a GridView column by name at runtime in ASP.Net

Is it possible to show/hide a GridView column at runtime by name? I can do it via the index like the following: gridReviews.Columns[4].Visible = false; However I'd like to do the following: gridReviews.Columns["Name"].Visible = false; What's the…
Sun
  • 4,458
  • 14
  • 66
  • 108
18
votes
2 answers

ScriptResources Error : This is an invalid script resource request

We catch this error sporadically. Does anyone know what could it be? The URL give by our error logging get this weird url for this error :…
Simon Dugré
  • 17,980
  • 11
  • 57
  • 73
17
votes
2 answers

Visual Studio 11 Beta / IIS 7.5: Microsoft.ReportViewer.Common V11 not found

I work with Visual Studio 11 Beta (MVC3 + .Net 4.0). I deployed the project to the IIS 7.5 (MS 2008 Server), when I generate a report, I've got the following error: System.IO.FileNotFoundException: Die Datei oder Assembly…
Hannes
  • 193
  • 1
  • 2
  • 7
17
votes
5 answers

Creating a class like ASP.NET MVC 3 ViewBag?

I have a situation where I would like to do something simular to what was done with the ASP.NET MVC 3 ViewBag object where properties are created at runtime? Or is it at compile time? Anyway I was wondering how to go about creating an object with…
Alex Hope O'Connor
  • 9,354
  • 22
  • 69
  • 112
17
votes
9 answers

Crystal Reports for Visual Studio 2010 Error

I am trying to run a crystal report from my web application which was built using ASP.NET 4.0 and Visual Studio 2010. I have installed the following from the SAP site (http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp) 1) SAP Crystal…
Kumar
  • 2,863
  • 11
  • 45
  • 60
17
votes
3 answers

Thoughts on running Windows Service type apps on ASP .NET 4 with StartMode="AlwaysRunning"

Usually I would look at writing a Windows Service to manage tasks that aren't suited to being hosted in a web application. These types of tasks are usually long running processes or scheduled tasks. Although this is normally the primary approach for…
Rohland
  • 1,405
  • 14
  • 20
17
votes
12 answers

How to get rid of ugly asp:Menu flickering?

I'm using the asp:Menu control on an ASP.NET 4.0 Webforms page with table-free rendering mode:
Slauma
  • 175,098
  • 59
  • 401
  • 420
17
votes
1 answer

Is it necessary to create ASP.NET 4.0 SQL session state database, distinct from existing ASP.NET 2.0 ASPState DB?

Is the ASP.NET 4.0 SQL session state mechanism backward-compatible with the ASP.NET 2.0 schema for session state, or should/must we create a separate and distinct session state database for our ASP.NET 4.0 apps? I'm leaning towards the latter…
Chris W. Rea
  • 5,430
  • 41
  • 58
16
votes
2 answers

ASP.Net cannot create/shadow copy in PRODUCTION

We've recently updated a fairly large ASP.NET website (~1500th alexa traffic ranking) to use VS2010 and .NET 4.0 running on Windows Server 2008 R2 Since then, when we deploy new versions of the site we occasionally noticed the same error in this…
16
votes
1 answer

ASP.NET MVC 2 + LINQ to SQL - CS0012 Compilation Error

In my database schema each forum has a category and categories can have many forums. I'm trying to list categories and their respective forums with the following code: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"…
Matthew H
  • 5,831
  • 8
  • 47
  • 82
16
votes
1 answer

Getting a 404 when using .NET 4 on IIS 6, with or without MVC

I've completed this set up on a fair few IIS 6 boxes, but one is giving me a tough time. The problem occurs when I add the application extension mapping to: c:\windows\microsoft.net\framework\v4.0.21006\aspnet_isapi.dll When this is in place, I get…
15
votes
2 answers

How to implement Socket.IO with ASP.Net, IISNode, Node.JS, and SQL Server for event-based push notifications?

For a notification project, would like to push event notifications out. These are things like login, change in profile, etc., and to be displayed to the appropriate client. I would like to discuss some ideas on putting it together, and get some…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
15
votes
1 answer

SQL Server "Audit Logout" operation takes long.

We have a stored procedure that is called about 300,000 times per day by 15 users throughout the day. I have poured through every line and it is about as efficient as I can get it. The stored procedure is accessed through an ASP.NET page on 4.0 from…
TerryB
  • 629
  • 1
  • 5
  • 13
15
votes
3 answers

ASP.NET MVC 3: How to get User's Role in a Controller Method?

I want to be able to Get a list of roles of the current authenticated user. Filter the data provided to that user based on their role. I see ways to check if the user is in a particular role, but I don't care what role they participate. The…
Zachary Scott
  • 20,968
  • 35
  • 123
  • 205
15
votes
4 answers

.Net 4.0 website cannot identify some AppleWebKit based browsers

We are seeing some Safari browsers failing to cross-authenticate our website after we upgrade to .NET 4.0 from .NET 3.5. After much investigation, it turns out to be a problem with ASP.NET identifying the Safari browsers properly. ASP.NET…
Chad
  • 151
  • 1
  • 3
1 2
3
91 92