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

Repeater in UpdatePanel Only Updates After Button Is Submitted A Second Time

I have a repeater in an UpdatePanel and when I add some text and submit a button, the update does not appear immediately, but only after I submit the button a second time. Any thoughts as to why this is happening? Thanks.
Peter
  • 5,251
  • 16
  • 63
  • 98
0
votes
1 answer

Building querystring in routing webforms .net 4.0

I'm trying out .net 4.0 routing with Webforms for the first time and I'm running into a problem. The page I'm routing to is looking for a querystring based on the route url. For Example: routes.MapPageRoute( "Rule2", …
invisiblestupid
  • 109
  • 1
  • 7
0
votes
1 answer

Cannot edit cell is an Infragistics WebDataGrid in ASP.Net 4.0 / Visual Studio 2010. Why?

My Infragistics WebDataGrid does not enter cell-edit mode when I double click a cell. It does not enter server mode - nothing happens. Only client-side events happen but I doubt those are necessary. What is wrong with the below asp.net…
JonathanWolfson
  • 861
  • 4
  • 20
  • 30
0
votes
6 answers

Storing ViewState on filesystem

I am referring this article regarding Save ViewState on the File System This is good but not ideal because it stores nothing about which page's viewstate it is. No mapping seems to be done between a page and it's viewstate file. I want to be able to…
Jack
  • 7,433
  • 22
  • 63
  • 107
0
votes
2 answers

Validation for inviting members to join website

I have my page's url like: http://www.ab.com/test.aspx?invitationID=XXXX I check in my Page_Load whether the invitation is really valid: if(!IsPostback) { //login for validation. If not valid invitationID do a server.Transfer to 404 page } This…
Jack
  • 7,433
  • 22
  • 63
  • 107
0
votes
2 answers

How to automate a task in a ASP.NET website in C#

NET. I want to modify a field "Age" for all account holders in my MYSQL database once an year. Is there any way to automate this task?
Deepak Joy Jose
  • 103
  • 1
  • 3
  • 14
0
votes
1 answer

Compare two datatables and format results

I know how to do this in sql, but for c#..I cannot figure out how to make comparison of two datatables. Let's say: 1st datatable: Name | Balance | Description Smith | 1200 | Smith owes 600 Jordan| 4000 | Hi Jordan Brooks| 5000 | I like…
user194076
  • 8,787
  • 23
  • 94
  • 154
0
votes
2 answers

Changing virtual path and enabling/disabling sites in code

I am working on a web project that contains three web services and a website. My source code is stored in TFS for version control and I regularly have to work in several different branches on the same code. These branches are merged regularly and…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
0
votes
1 answer

Application_LogRequest event not fired

I have a global.asax. and I have added a subscription to the LogRequest and BeginRequest void Application_LogRequest(object sender, EventArgs e) ... void Application_BeginRequest(object sender, EventArgs e) .... First, I am not certain what is the…
Joseph Caruana
  • 2,241
  • 3
  • 31
  • 48
0
votes
1 answer

Application Pool crashing after every automatic recycle since upgrade to ASP.NET 4.0

After upgrading an ASP.NET solution to 4.0 we have noticed that every time the application pool recycles automatically (every 1740 minutes), exactly 32 seconds later we get an error in the event logs with event ID 5009. I installed the debugger on…
Francesco Gallarotti
  • 1,221
  • 1
  • 16
  • 39
0
votes
1 answer

MVC 2/ASP.NET 4.0 App not working

I have picked up a project that is currently broken and I'm trying to fix it. The application was last working correctly as a .NET 3.5 Web Forms application with some features implemented in MVC 2.0. The application has become broken when it was…
John Mills
  • 10,020
  • 12
  • 74
  • 121
0
votes
1 answer

Adding System.Web.Mvc to \bin makes MVC 3 app throw a 403.14 Forbidden

So I'm trying to deploy an MVC 3 app to a web server. If I don't include the System.Web.Mvc dll in the \bin directory, I get the configuration error saying it can't find the assembly System.Web.Mvc, which is to be expected. However, as soon as I…
dolphy
  • 472
  • 1
  • 6
  • 14
0
votes
2 answers

DateTime Converting

I am trying to convert a string into a DateTime and change its format from 05/06/2012 12:00:00 to 2012-06-05 12:00:00.000 to search in the database (SQL Server 2008 R2) DATETIME column type. The original date is coming from a calendar! I tried…
xArd
  • 49
  • 11
0
votes
2 answers

Can I sum an EntityFramework Navigation column in my DataGridView

I have two tables/entities, event and eventRegistrations. I have a gridview showing events, but I would like it to have a column that sums eventRegistrations.SomeNumber. I can get a count of eventRegistrations using the navigation object. How can I…
M Kenyon II
  • 4,136
  • 4
  • 46
  • 94
0
votes
1 answer

Why do I get a NullReferenceException when loading an ASPX page with Spring.net?

I'm trying to setup an ASP.Net 4 website with Spring.net 1.3.2. For basic pages, Spring loads the pages without problems and injects the dependencies alright. On some pages however I get a NullReferenceException between the ctor and the Page_Load,…
Mathieu Garstecki
  • 1,589
  • 1
  • 13
  • 18