asp.net

How to implement a "news" section in asp.net website?

I'm implementing "news" section in asp.net website. There is a list of short versions of articles on one page and when you click one of the links it redirects you to a page with a full article. The problem is that the article's text on the second page will come from database but the articles may vary - some may have links, some may have ...

How would I build an application that can diagnose itself at runtime?

I have an application that uses a variety of external resources (web services, filesystem, database), and therefore can be quite difficult to configure. The plan is to add a self-diagnostic tool to the application so it can report problems with the configuration and allow the user to correct it. Are there any design patterns, libraries...

Is it possible to read .eml files in .net

I would like to know if it is possible to parse .eml and .msg files in dot net (preferably from a memorystream) such that I can use them on an ASP.Net page. ...

Singleton Per Call Context (Web Request) in Unity

Hi, A few days ago I had this issue with ASP.Net threading. I wanted to have a singleton object per web request. I actually need this for my unit of work. I wanted to instantiate a unit of work per web request so that identity map is valid through out the request. This way I could use an IoC to inject my own IUnitOfWork to my repository...

Server.MapPath beyond the webroot

i have multiple websites on the same server. I want to have a link from one to another but i can't seem to have relative paths because it seems that Server.MapPath cant go "below" the root of the current website. how do i have one website on my machine point to a file or page that is on another one. ...

ASP.NET Application Architecture

Hey all, My company is going to be "breaking ground" on a (large!) ASP.NET application in the near future here. We're currently in the design phase and most of the ASP.NET application's I've developed in the past were relatively small -- less than a few dozen pages and 1 or 2 developers. Can anyone point out any resources, either onlin...

How to implement authorization checks in ASP.NET MVC based on Session data?

This will be my first ASP.NET MVC application with forms authentication so I am trying to make sure I don't miss anything. The scenario is this: Public / Secured Areas. Within the private area it is even further limited to specific areas / user. These 'Areas' are defined by customizations to the base area that is customized per user gro...

Merging/inheriting web.config files but without having site to be a child site

I'd like to have the functionality of merging/inheriting the web.config of one site with that of a shared web.config, but without having the site being a child site of the site with the shared web.config. Is there a way to implement similar functionality? What I'm trying to do have a shared web.config in any folder (could be outside of...

Improve the performance of an ASP.NET application

How to improve the performance of an ASP.NET application? Which are are the fields I should take care? The application includes DB connections and Image Parsing etc. ...

Best Hardware Configuration for ASP.NET Hosting Application

We have developed a vacation rental application in ASP.NET with SQL server as DB. Used .NET 3.5 with Entity Framework. Currently QA test this with P4 machine with 2GB RAM. Looks like the processor utilization goes up to 50% for every request. All our DB retrieval timings are < 1 sec. The page load is very slow. We applied all performance...

Advantages and disadvantages of using Ajax update panels in ASP.NET application

What are the advantages and disadvantages of using Ajax update panels in ASP.NET application. Is there any alternatives available to avoid the use of Ajax update panel? ...

Access microsoft outlook in web.

Hi, I am using asp.net. Can anybody say how do I access my Microsoft Outlook through a web application. If this is possible please explain in detail. Thanks in advance Regards, s.venkatesh. ...

How do I create userfriendly urls like stackoverflow?

I want to create a similar type of url as stack overflow does when a question is created. Example: http://stackoverflow.com/questions/1149454/non-ajax-get-post-using-jquery-plugin I am particularly interested in the last part which I have highlighed in bold. How do you achieve the affect of adding the title of the page to the url with...

asp.net application pool and garbage collection

Sorry if this is a duplicate, i've read many questions that are either very similar or require roughly the same keywords to describe (but aren't quite the same)... situation: an asp.net application has a connection pool memory leak problem (where connections are not being closed correctly for example)...I need clarity on the following: ...

what is composite control in asp.net?How we create composite control?

How to make and use composite control in asp.net? ...

ASP.NET Page posting back while it should be redirecting

Hi all The first page of our webapplication is a Login-Page. We are using FormsAuthentication. We are not using a database, but multiple Active Directories. So we fill the FormsAuthenticationTicket by ourselfs. This works great for one Active Directory, which is on our own network, but this isn't working for another Active Directory w...

Oracle query fired off, then never returns

I have this problem in my ASP.NET application where I'm seeing some of my Oracle queries fired off to the server then not returning. Ever. It happens in several places in my app and I can't explain it. Here's one specific scenario where I'm seeing this behavior: During application start-up I am pre-fetching data asynchronously into the ...

Firefox causes extra "Not Postback" ping when postback happens

We got weird problem in my application (asp.net). The problem happens only in Firefox. The scenario is like this.. We have grid bind with results. when I change page of the grid (postback). at that time extra "Not postback" is caused in FireFox only which actually disturb my session logic and then all goes wrong. Can anyone have idea o...

asp.net website add to Trusted site problem?

I have asp.net application which is running great but I installed same application on new server when I run my application browser shows “You are not authorized to view this Page”. When I add my application link in trusted site it work properly without any error message. I am scared why my application behaves differently for that parti...

Redirecting from win forms to web forms

How to redirecting from win forms to web forms ? ...