asp.net

Manipulate Results in GridView RowDataBound or Directly in SQL?

Hello to everybody that is smarter than me! I have a curious question about efficiency. Say I have a field on a database that is just a numeric digit that represents something else. Like, a value of 1 means the term is 30 days. Would it be better (more efficient) to code a SELECT statement like this... SELECT CASE TermId ...

IIS 6, Wildcard Application Mapping, and FrontPage

While I'd love to get rid of requiring FrontPage Extensions on a heavy traffic site I host, the client requires it to administrate the site. Having just implemented Wildcard Application Mapping in IIS 6 on this site in order to provide integrated Forms Authentication security between ASP and ASP.NET resources, this breaks FrontPage exten...

"Submit" button works in Firefox 3 but not in IE7 (ASP 1.1)

I have code from an old website that I needed to modify. There are two pages that I modified some form code in. I modified the max length of a textbox and I modified slightly a line or two of code in a function. The "btnSubmit_Click" function as it happens. With the new code FTPed up on the webserver, when I click on the "Submit" button...

Accessing a dynamitcally added buttoncolumn's (in a Datagrid) click event. C#/ASP.NET

When I dynamically create a Datagrid and add in a new buttoncolumn how do I access the buttoncolumn_click event? Thanks. ...

How Do I Profile the ADO.NET Connection Pool?

I'm profiling a ASP.NET web application. I believe it is very database connection intensive (excessive use of the ADO.NET connection pool). How to I tell w/out debugging how many times it is going to the pool and on average how many connections are available in the pool? Are there counters that will give me this info in PerfMon or some o...

Compatibility Mode for Web Services

I have a web service that loads an unmanaged .dll made from VC++ 6. In Vista and Windows Server 2008, I can get applications using this to work by putting them in Win98 Compatibility mode. Is there a similar way I can do this with my web service, so it will run? ...

How to avoid a postback in javascript?

I have an ASP.NET page which has a button it it. The button click launches a modal dialog box using javacript. Based on the value returned by the modal dialog box, i want to proceed with, or cancel the post back that happens. How do i do this? ...

Using asp:content markup more than once in the masterpage

I'm new to ASP.NET and want to have an asp:content control for the page title, but I want that value to be used for the tag and for a page header. When I tried to do this with two tags with the same id, it complained that I couldn't have two tags with the same id. Is there a way to achieve this with contentplaceholders, and if not what...

How do I use LINQ to query for items, but also include missing items?

I'm trying to chart the number of registrations per day in our registration system. I have an Attendee table in sql server that has a smalldatetime field A_DT, which is the date and time the person registered. I started with this: var dailyCountList = (from a in showDC.Attendee let justDate = new DateTime(a.A_DT.Year, a.A_DT.Mo...

404 page that displays requested page

I recently migrated a website to a new CMS (Umbraco). A lot of the links have changed, but they can be easily corrected by searching for patters in the url, so I would like to write something that will redirect to the correct page if the old one is not found. That part isn't a problem. How can I obtain the requested URL after the brows...

Generating an Excel file in ASP.NET

I am about to add a section to an ASP.NET app (VB.NET codebehind) that will allow a user to get data returned to them as an Excel file, which I will generate based on database data. While there are several ways of doing this, each has its own drawbacks. How would you return the data? I'm looking for something that's as clean and strai...

How robust is the asp.net profile system? Is it ready for prime time?

I've used asp.net profiles (using the AspNetSqlProfileProvider) for holding small bits of information about my users. I started to wonder how it would handle a robust profile for a large number of users. Does anyone have experience using this on a large website with large numbers of simultaneous users? What are the performance implicatio...

AJAX.NET Subscribe to Reorderlist ItemCommand or DeleteCommand?

I would like to subscribe to the ItemCommand event of a Reorderlist I have on my page. The front end looks like this... <cc1:ReorderList id="ReorderList1" runat="server" CssClass="Sortables" Width="400" OnItemReorder="ReorderList1_ItemReorder" OnItemCommand="ReorderList1_ItemCommand"> ... <asp:ImageButton ID="btnDelete" runat="server"...

How much Application session data can you actually hold?

I currently have an application that gets hit with over 20,000 users daily and they mostly look at one data table. This data table is filled with about 20 rows but is pulled from a "datatable" in a db with 200,000-600,000 records of information in the table. Edit: These 20 rows are "dynamic" and do change if the user enters in any infor...

Is it OK to use static variables to cache information in ASP.net?

At the moment I am working on a project admin application in C# 3.5 on ASP.net. In order to reduce hits to the database, I'm caching a lot of information using static variables. For example, a list of users is kept in memory in a static class. The class reads in all the information from the database on startup, and will update the databa...

What technology stack would you use for starting a new .NET web project?

I'm about to start building a new web project based on the .NET technology stack. What I want is to somehow avoid the "default" way of building ASP.NET web apps using webforms and stuff. So, the question is simple: If you're about to start a new web project using .NET today, what technologies and frameworks would you use? I know that I...

Stopping MaskedEditExtender from validating input in asp.net

I have an asp.net textbox and a MaskedEditExtender control attached to it. The textbox is used for date input. The MaskedEditExtender has MaskType="Date" Mask="99/99/9999". When the form is submitted with an invalid date, the browser shows a Javascript error "... string was not recognized as a valid datetime". I know why the error show...

Unit Testing the Views?

Any idea on how to unit test the views in ASP.NET MVC? I am sick of encountering the yellow screen of death when I launch my MVC project just because I forget to update the views when one of the Action methods of my controller changes name. ...

What is a good extendable blogging application for asp.net?

Hi I tried a search for: "best asp.net blog”, “good asp.net blog" and went thru the blag and blogging tags and got nothing really what I am asking, so if it’s been asked before, I apologize and please point me the way. I am looking for a relatively good and well supported, and preferably open source blog application that runs on asp.net...

What is Native Code?

The Project's Web section (under project properties in VS2008) has a list of debuggers: ASP.NET, Native Code, SQL Server. What is Native Code? ...