asp.net

Asp.net formatting lists of grouped data

I have a asp.net page where i query a list of url and the groups in the urls. In the code behind i loop through each group and create a group header and then list all of the links. something like this: Group 1 Link 1 Link 2 Link 3 Group 2 Link 1 Link 2 Link 3 Now that i have a lot of links, this create one long list on the p...

ASP.NET project size

Are there any known issues around how many "pages" are in an ASP.NET project? Does the size of the DLL created by the project matter at all? My existing project is about 150 pages and the DLL is only around 3MB but it has increased from about 50 pages and 0.5 MB recently ...

Best Source Control Solution for Oracle/ASP.NET Environment?

I am trying to plan a way for 5 developers to use Visual Studio 2005/2008 to collaboratively develop an ASP.NET web app on a development web server against an Oracle 8i(soon to be 10g) Database. The developers are either on the local network or coming in over a vpn (not a very fast connection), I evaluated the latest Visual SourceSafe...

Access denied when creating a virtual directory via Web Deployment Project

I’m trying to use a (VS 2008) Web Deployment project in a TFS solution to deploy the web site to the (TFS 2008) build server to run web based unit tests. For some reason, that I can't yet figure out, it is failing to create the virtual directory: Using "CreateVirtualDirectory" task from assembly "C:\Program Files\MSBuild\Microsoft\WebD...

Printing Labels from ASP.Net Page

I am working on an ASP.Net web application that must print dynamically created labels on standard Avery-style label sheets (one particular size, so only one overall layout). The labels have a variable number of lines (3-6) and may contain either lines of text or a graphic barcode image. Our first cut, that I inherited, used monospaced f...

Does This ASP.NET Consultant Know What He's Doing?

The IT department of a subsidiary of ours had a consulting company write them an ASP.NET application. Now it's having intermittent problems with mixing up who the current user is and has been known to show Joe some of Bob's data by mistake. The consultants were brought back to troubleshoot and we were invited to listen in on their expl...

Best Practices for Entity Framework and ASP.NET

I've been driving myself crazy trying to get the Entity Framework to work as expected (or at least as I expect) in an ASP.NET environment, specifically dealing with objects belonging to different contexts when attempting to save to the database. What are the best practices when dealing with the Entity Framework and ASP.NET? ...

How do I access a public property of a User Control from codebehind?

I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class? ...

If I grab a paramenter out of the query string, is it URL decoded?

In .NET if I do something like: string temp = Request.QueryString["myKey"]; is the value in temp already URL decoded? ...

UK Postcode Regex (Comprehensive)

I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance: Matches CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT No Match aWC2H 7LT WC2H 7LTa WC2H Are there any official or even semi-official regexes in use for this...

ASP.NET 1.1 Performance Issue

I'm doing some profiling on a 1.1 app and have identified a problem. It seems that this function is taking forever to load on a certain page: ParserCacheItem System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String, String, HttpContext) I've searched around with no luck about what this does. Does anyone know what this fu...

Why does my Excel export have a blank row at the top?

In ASP.NET, I am exporting some data to Excel by simply binding a DataSet to a GridView and then setting the ContentType to Excel. My ASPX page is very simple and looks like this: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamExportReport.aspx.cs" Inherits="Cabi.CamCentral.Web.Pages.Utility.ExamExportReport" %> <html> <...

Team Foundation Server Port 8080 ASMX Access Issue

How come one user in the local Administrators Group has no problem hitting http://localhost:8080/services/v1.0/Registration.asmx while other users in the local Administrators Group get 403 (access denied) errors (with nothing in the Event log)? ...

How to get the asp.net login control to auto authenticate a previously authenticated user?

I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt seem to triger any events where I could read the cookie and auto login the user. Is there a straightforward mechanism to accom...

Does ASP.NET transfer ALL session data from SQL server at the start of a request, or only as needed?

I'm using ASP.NET, with session state stored out of process in SQL Server. When a page request begins, are the entire contents of a user's session retrieved from the DB, deserialized, and sent to the ASP.NET process in one fell swoop, or are individual objects transferred to the ASP.NET process only as needed? Basically, I have a page t...

Html control and Server control can be used in single aspx page

I need a help on this following aspx code aspx Code: <asp:Label ID ="lblName" runat ="server" Text ="Name"></asp:Label> <asp:TextBox ID ="txtName" runat ="server"></asp:TextBox> Consider this is my aspx page content. I am going to populate the values for textbox only after the postback from server. but the label also posting to the s...

Which is correct way to check for Null exception?

Which is the most correct code? if (HttpContext.Current.Response.Cookies[authCookieName] != null) { HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value"; } or if (HttpContext.Current != null) if (HttpContext.Current.Response != null) if (HttpContext.Current.Response.Cookies != null) if...

How to use DataMining feature of SQL Server 2008 with ASP.Net

How to use DataMining feature of SQL Server 2008 with ASP.Net ...

Retrieving session information with ASP.NET MVC

Let's say you have an ASP.NET MVC web application with a page that is accessible to all registered users of your application. Now this page has mostly general information, but there is also one panel that shows the current logged in user's personal information. How do you go about implementing this? My initial thought would be to have...

What is Code compiled unit in ASP.net

I need to know what is code compiled unit in .net. It s located in this path C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\App_folders I need to know why its created ccu file also an complied file with application extension dll. Do this take any reference from here. Thanks ...