asp.net

An Easy Way to Consume a Twitter Search Feed With ASP.Net

Anyone have an pointers on an easy way to consume a search.twitter.com feed with ASP.Net? I tried using the RSSToolKit, but it doesn't provide anything for parsing the and other tags in the feed. For example: I want to parse this feed: http://search.twitter.com/search.atom?q=c%23 and make it appear on a page just like it does in the t...

Facebook Connect and ASP.NET

Hello, I'm at step 8 of the authentication overview found here: http://wiki.developers.facebook.com/index.php/How_Connect_Authentication_Works In particular, the user has logged into facebook via Facebook Connect and their web session has been created. How do I use the facebook developer toolkit v2.0 (from clarity) to retrieve informa...

How do I know if a control of a page made a Callback?

I have an ASPX page and on this page I have a control that contains an AJAX UpdatePanel. When the control makes a callback my ASPX page's *Page_Load* event is triggered, but the Page.IsCallBack property is false. How do I know in the pages *Page_Load* event if there was a callback? ...

IIS 6.0 wildcard mapping benchmarks?

I'm quickly falling in love with ASP.NET MVC beta, and one of the things I've decided I won't sacrifice in deploying to my IIS 6 hosting environment is the extensionless URL. Therefore, I'm weighing the consideration of adding a wildcard mapping, but everything I read suggests a potential performance hit when using this method. However, ...

Sorting the result of a stored procedure

I'd like to sort on a column in the result of a stored procedure without having to add the Order By clause in the stored procedure. I don't want the data to be sorted after I have executed the query, sorting should be part of the query if possible. I have the following code: public static DataTable RunReport(ReportQuery query)...

ASP.NET Webmail Engine

A friend of mine asked me today if there is any open-source or commercially available Webmail/Email "engine". When I asked her what she meant by engine, I got a list of features her boss asked for - Web interface to login & access e-mails Ability to send/receive/forward e-mails using the web interface Ability to compose and save draf...

File path as MVC route argument.

Part of my application maps resources stored in a number of locations onto web URLs like this: http://servername/files/path/to/my/resource/ The resources location is modelled after file paths and as a result there can be an unlimited level of nesting. Is it possible to construct an MVC route that matches this so that I get the path in...

dynamic construction of checkboxes in a asp:table problem with events

I'm currently dynamically building an asp:table which contains checkboxes these checkboxes have a CheckChanged event as an auto postback. v_articleCheckBox.CheckedChanged += new EventHandler(v_articleCheckBox_CheckedChanged); I am storing the checkbox states in the viewstate and I am rebuilding the table every page load so that the vi...

ASP.NET How to get List of Groups in Active Directory

How can I get a full list of Groups in my Active Directory? ...

Modifying an application's web.config file in NLB cluster

Hello, I would like to know what would be the impact of modifying web.config file while an ASP.NET application is running. Here's my exact scenario. I have two hosts running the same application on IIS6. Both hosts have the exact same machine.config files, meaning they share same machine keys. | | [HOST A]...

ASP.NET and long running background threads - how do they mix?

In a ASP.NET application that I am writing I need to use connections to a specific server (something like a DB but... different). The connections are quite expensive to establish (a few seconds, literally) so I'm trying to write a pool to improve scalability. Everything is pretty simple, up to one point - recycling old connections. Wit...

Auto-update web application

I'm in a very bad situation: I need to maintain asp.net web application hosted in an environment on which I don't have any access. For every small intervention I need to go personally which includes checking procedures since it'as a government agency. I was wondering if there is some way to partially of full update an asp.net web appli...

Techniques For Distributing ASP.NET User Controls Across Projects

Distributing ASP.NET user controls across different projects can be really useful when you want to create a library of controls that can be used by different projects. Unfortunately, to my knowledge, ASP.NET (2.0 at least) doesn't support this very cleanly. The only technique I know of is to add the control to another project, then cop...

ASP.net CMS on an existing dynamic website

Hi all, Ok i'm in a bit of a pickle. I've built an asp.net site with a pretty big frontend and an even bigger backend. It's a big site with a lot of custom business logic for searching, displaying result sets, detailed records and then other relation DB update operations. The focus of the app has been very bespoke in nature. There are...

ASP.Net: Users are logged out when deploying a new file to the server

Everytime I upload a file to my ASP.NET site, all users are logged out (aka, I guess their session become invalidated). Is there any way to "hotswap" the code in ASP.NET so that this doesn't happen? Compile before deploying etc. My deployment method is pretty simple through a SVN update. Thanks! /Niels ...

What could go wrong if I convert ANSI encoded files to UTF-8?

I have an existing ASP.NET 2.0 website, stored in Team Foundation Server 2005. Some of the pages/controls are encoded as ANSI (according to Notepad++) and the Content-Type header is set to: <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> I would like to change all pages to UTF-8, and therefore the Content-T...

Loading ASP.NET User Controls By Type And Passing Parameters

In ASP.NET 2.0 it is my understanding that although the API existed for loading a user control by type, it didn't actually work. Or at least I never managed to get it to work, and I know from blogs that others have had similar issues. So I use a wrapper type that provides the functionality I need, invoking the relevant control constru...

Connecting to Oracle from ASP.NET is very slow - how to diagnose?

I have an ASP.NET application that's connecting to an oracle database. Performance on some queries in dev is very slow - on the order of 90 seconds to connect to the database, run a a query (actually, call a SP in a package) and return a single row of results. I've run a profiler on the app, and just about 100% of the time is spent in ...

Managing page sequence

In an ASP.NET 3.5 site we have a relatively standard payment checkout progess that contains a number of pages that need to be visited in sequence (shopping basket, payment details etc) Each page has a "Continue" button that redirects to the next page in the sequence. I would like a way of managing the page sequence so that: I can hav...

How can I force the base constructor to be called in C#?

I have a BasePage class which all other pages derive from: public class BasePage This BasePage has a constructor which contains code which must always run: public BasePage() { // Important code here } I want to force derived classes to call the base constructor, like so: public MyPage : base() { // Page specific code h...