Skip to main content

Questions tagged [asp.net]

ASP.NET is a Microsoft web application development framework that allows programmers to build dynamic web sites, web applications and web services. It is useful to use this tag in conjunction with the project type tag e.g. [asp.net-mvc], [asp.net-webforms], or [asp.net-web-api]. Do NOT use this tag for questions about ASP.NET Core - use [asp.net-core] instead.

asp.net
7 votes
1 answer
3k views

.NET VirtualPathProviders and Pre-Compilation

We've been working on an application that quite heavily relies on VirtualPathProviders in ASP.NET. We've just come to put the thing on a live server to demonstrate it and it appears that the ...
Chris Roberts's user avatar
1 vote
3 answers
4k views

How can I remove nodes from a SiteMapNodeCollection?

I've got a Repeater that lists all the web.sitemap child pages on an ASP.NET page. Its DataSource is a SiteMapNodeCollection. But, I don't want my registration form page to show up there. Dim ...
Zack Peterson's user avatar
6 votes
5 answers
3k views

Considering N2 CMS but worried about performance. Is this justified?

Hy, does anyone worked with N2 Content Management System(http://www.codeplex.com/n2). If yes, how does it perform, performance wise(under heavy load)? It seems pretty simple and easy to use. Adrian
Adrian Magdas's user avatar
2 votes
2 answers
3k views

Problem databinding an ASP.Net AJAX toolkit MaskedEditExtender

I have a database that contains a date and we are using the MaskedEditExtender (MEE) and MaskedEditValidator to make sure the dates are appropriate. However, we want the Admins to be able to go in ...
Keng's user avatar
  • 52.7k
31 votes
8 answers
42k views

How do you log errors (Exceptions) in your ASP.NET apps?

I'm looking for the best way to log errors in an ASP.NET application. I want to be able to receive emails when errors occurs in my application, with detailed information about the Exception and the ...
Costo's user avatar
  • 5,950
13 votes
5 answers
22k views

ASP.Net MVC route mapping

I'm new to MVC (and ASP.Net routing). I'm trying to map *.aspx to a controller called PageController. routes.MapRoute( "Page", "{name}.aspx", new { controller = "Page", action = "Index", ...
Ryan Eastabrook's user avatar
13 votes
4 answers
16k views

How do you impersonate an Active Directory user in Powershell?

I'm trying to run powershell commands through a web interface (ASP.NET/C#) in order to create mailboxes/etc on Exchange 2007. When I run the page using Visual Studio (Cassini), the page loads up ...
Eldila's user avatar
  • 15.6k
53 votes
9 answers
111k views

Clearing Page Cache in ASP.NET

For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine... <%@OutputCache Duration="600" VaryByParam="*" %> However,...
GateKiller's user avatar
  • 75.3k
25 votes
12 answers
3k views

Speeding up an ASP.Net Web Site or Application

I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site and the database are out of my control as is the database's schema. In testing on hardware I do control the site performs ...
Rob Allen's user avatar
  • 17.7k
3 votes
2 answers
2k views

ASP.NET Proxy Application

Let me try to explain what I need. I have a server that is visible from the internet. What I need is to create a ASP.NET application that get the request of a web Site and send to a internal server, ...
Jedi Master Spooky's user avatar
5 votes
2 answers
1k views

ASP.NET UserControl's and DefaultEvent

Outline OK, I have Google'd this and already expecting a big fat NO!! But I thought I should ask since I know sometimes there can be the odd little gem of knowledge lurking around in peoples heads ^_^...
Rob Cooper's user avatar
  • 28.8k
2 votes
3 answers
604 views

ASP.NET Caching

Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my own "Cache", because I didn't know any better, it looked a bit like this: public class DataManager { ...
user avatar
10 votes
6 answers
5k views

Can you recommend a good .NET web-based repository browser for SVN? [closed]

We have an SVN repository running on a Windows server, and I want to link internal documentation, feature changes, bugs and so on to code changes. We've found WebSVN to be amazingly slow - the ...
Keith's user avatar
  • 154k
5 votes
7 answers
5k views

Catching unhandled exceptions in ASP.NET UserControls

I'm dynamically loading user controls adding them to the Controls collection of the web form. I'd like to hide user controls if they cause a unhandled exception while rendering. So, I tried hooking ...
markom's user avatar
  • 2,040
2 votes
1 answer
8k views

Convert an asp.net application to IIS7 integrated mode

What steps I need to perform in order to convert asp.net 2 application from IIS7 classic to integrated mode?
Dragan Panjkov's user avatar
6 votes
2 answers
351 views

Does the OutputCacheFilter in the Microsoft MVC Preview 4 actually save on action invocations?

We deployed a live, fresh, swanky site using preview 3 including rigorous stress testing. Page Output caching was our saviour and afforded us the ability to meet our performance contractual ...
CVertex's user avatar
  • 18.2k
77 votes
9 answers
68k views

Creating iCal Files in c#

I'm looking for a good method of generating an iCalendar file (*.ics) in c# (asp.net). I've found a couple resources, but one thing that has been lacking is their support for quoted-printable fields -...
Otto's user avatar
  • 2,093
7 votes
13 answers
641 views

What are the useful new ASP.NET features in the .NET Framework 3.5?

I've kept up to date with new features in the C# language as it's moved from version 1 through version 3. I haven't done such a good job keeping up to date with ASP.NET. I feel like some of the post ...
Ben Mills's user avatar
  • 28.2k
2 votes
5 answers
4k views

Best mock framework that can do both WebForms and MVC?

I'm getting into more of a TDD workflow, and have a mix of MVC and asp.net Web Forms apps. MOQ is recommended for MVC. I've used Rhino for Web Forms. Does anyone have a best practice for having 1 ...
DevelopingChris's user avatar
8 votes
9 answers
6k views

Calculate DateTime Weeks into Rows

I am currently writing a small calendar in ASP.Net C#. Currently to produce the rows of the weeks I do the following for loop: var iWeeks = 6; for (int w = 0; w < iWeeks; w++) { This works fine, ...
GateKiller's user avatar
  • 75.3k
5 votes
1 answer
3k views

Sending emails without looking like spam [duplicate]

I want so send every week an update by email. But Im afraid that if there are too many emails sent, they will be marked as spam. Any of you has experience sending many emails (thousands) weekly? What ...
Artur Carvalho's user avatar
4 votes
3 answers
982 views

Replicating load related crashes in non-production environments

We're running a custom application on our intranet and we have found a problem after upgrading it recently where IIS hangs with 100% CPU usage, requiring a reset. Rather than subject users to the ...
user avatar
5 votes
2 answers
5k views

RaisePostBackEvent not firing

I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs). The control is implemented in two different user controls. In one ...
Rex M's user avatar
  • 143k
68 votes
8 answers
67k views

Add multiple window.onload events

In my ASP.NET User Control I'm adding some JavaScript to the window.onload event: if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName)) Page.ClientScript....
Ray's user avatar
  • 46.3k
5 votes
2 answers
10k views

Datagrid: Calculate Avg or Sum for column in Footer

I have a datagrid getting bound to a dataset, and I want to display the average result in the footer for a column populated with integers. The way I figure, there's 2 ways I can think of: 1."Use the ...
Mark Glorie's user avatar
  • 3,473
12 votes
2 answers
4k views

Running Javascript after control's selected value has been set

Simple ASP.NET application. I have two drop-down controls. On the first-drop down I have a JavaScript onChange event. The JavaScript enables the second drop-down and removes a value from it (the ...
Ray's user avatar
  • 46.3k
5 votes
3 answers
3k views

Generate sitemap on the fly

I'm trying to generate a sitemap.xml on the fly for a particular asp.net website. I found a couple solutions: chinookwebs cervoproject newtonking Chinookwebs is working great but seems a bit ...
jdecuyper's user avatar
  • 3,964
7 votes
3 answers
3k views

How have Html entities inside asp.net page?

Inside an asp.net page, should I use <html><title>My page's title from México</title></html> Or <html><title>My page&rsquo;s title from M&eacute;xico<...
jdecuyper's user avatar
  • 3,964
3 votes
2 answers
1k views

Is there some way of recycling a Crystal Reports dataset?

I'm trying to write a Crystal Report which has totals grouped in a different way to the main report. The only way I've been able to do this so far is to use a subreport for the totals, but it means ...
ninesided's user avatar
  • 23.2k
4 votes
6 answers
7k views

Import Namespace System.Query

I am trying to load Linq on my .Net 3.5 enabled web server by adding the following to my .aspx page: <%@ Import Namespace="System.Query" %> However, this fails and tells me it cannot find the ...
GateKiller's user avatar
  • 75.3k

15 30 50 per page