asp.net-4.0

runtime error: could not load file or assembly

When I hold my mouse over <%@ Page I get this error and it seems like it tries to load a file/assembly that is no longer valid. How could I fix this? ...

Pass jquery events from aspx to ascx

Hi, I started using ascx yesterday and begun a process of chopping up my "dynamic" default.aspx page into smaller parts. In my default.aspx I have a lot of JavaScript/jquery code that handle different events. When I removed some html code from .aspx, while leaving the javascript in default.aspx, and placed it into .ascx the jquery eve...

Can't get HealthMonitoring to work

Using asp.net 4.0, been trying to follow this: http://msdn.microsoft.com/en-us/library/ms998306 Also tried using eventlogprovider and the mail provider. Silence. Is there anything I should know about healthmonitoring, like it doesn't work in 4.0? Currently me web.config looks like this: <healthMonitoring enabled="true" heartbeatInte...

C# ValidateRequest Work Around

I have one textbox in my entire app that I want to be able to accept html. I don't really want to go through all my pages and add Server.HtmlEncode(textbox.Text). Is there a work around. I'm using C# and asp.net 4.0 and I know the ValidateRequest stuff changed in 4.0 but I don't know if it can solve my problem. Can it? ...

DynamicControl can't find certain associations after converting to .NET 4.0

Just converted a website using Dynamic Data to .NET 4.0. The basic scenario is that LinqDataSource is querying a Ticket, which has several associations (i.e. 'Contact') to other tables in the database. Now when the page loads and the DynamicField tries to bind to some of those associations I get the following error: The table 'Tick...

Asp.Net 4 webforms clientid suffixed with `_0`

Last year we moved all our new functionality to Asp.Net MVC. However we still have a load of legacy WebForms pages with lots of Javascript, and we're not going to get the chance to upgrade them any time soon. More recently we also moved to Asp.Net 4, and that seems to have broken a load of the Javascript on these legacy pages. Where b...

Session expiring after 20 minutes: Whether idle or not.

I'm having some trouble with users losing session data whilst going through an application form. It appears that they're losing session state part way through application forms. (ASP.NET 4.0 WebForms project, IIS 6.0) Session is stored out-of-process in the state server so it's not config changes, appdomain recycling, etc AFAIK. <sessi...

Best way to generate an image list

Hi, I have a List which has information about images I want to display. Each image has 6 entries containing information about it and there are 20 images. 6 x 20 entries in total. listImg[0] = image_name listImg[1] = image_url listImg[2] = other_info listImg[3] = other_info listImg[4] = other_info listImg[5] = other_info Now what I wa...

Access list in codebehind from aspx page

My code-behind looks like this class Image { public string tnImg { get; set; } public string Name { get; set; } public string city { get; set; } public string refPlace { get; set; } public string refInfo { get; set; } public string refInfoDynamic { get; set; } } protected ...

chars like: ' or " in header script code become: &#39; or &quot;

I recently installed Visual-Web-Developer 10 and open my old asp.net 3.5 solution in it and converted it to asp.net 4 solution. every thing is working fine exept one strange problem: suddenly all chars like: ' or " in header script code become: &#39; or &quot; and this making all my javascript do not work and give error in all my solut...