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
374,744
questions
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 ...
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 ...
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
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 ...
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 ...
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", ...
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 ...
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,...
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 ...
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, ...
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 ^_^...
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
{
...
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 ...
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 ...
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?
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 ...
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 -...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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’s title from México<...
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 ...
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 ...