asp.net

Posting base64 encoded files to an asp.net 1.1 page

We are making an automated patching application and would like to post files on production server through asp.net page (or maybe a web service), since we can only access production server via http. The page should accept files and store them to appropriate location. The path to files will be declared in external XML file. So, is it possi...

FormsAuthentication after login

Ok, i have simple scenario: have two pages: login and welcome pages. im using FormsAuthentication with my own table that has four columns: ID, UserName, Password, FullName When pressed login im setting my username like: FormsAuthentication.SetAuthCookie(userName, rememberMe ?? false); on the welcome page i cant use: Page.User.Ident...

Document Management for an Application

We are designing an application which would also have a need to manage a large number of files (docs, spreadsheets, scanned files, pdfs, etc.). We will need to associate files with other data in the system. This will be a web-based application.(asp.net) While there are many ways to solve this problem, I am thinking whether there is doc...

Quick Ramp-up for ASP.NET

I am an experienced .NET applications developer. All of my development experience has been with desktop apps with WinForms/WPF. The last time I worked with ASP was back in 1998. A lot has changed with ASP.NET, and I realize this. I am wondering what is the best resource for ramping up quickly with ASP.NET and WebForms (not MVC). A...

How to decide which is right, WebForms or MVC when doing ASP.NET

So I'm about to start of a small project for my sporting club for member registrations and I'm trying to decide between WebForms or MVC. Allit will be is a user login and data capture forms (or and data retrieval), so I was initally thinking WebForms with FBA but I've wanted to have a play with MVC for a while and I was thinking that it...

Azure and Microsoft ASP.NET MVC

I just got my azure invitation code...yay! Are there any official samples for windows azure + MS asp.net MVC? I still don't get the storage providers and services that come with Azure, it's a bit confusing. I don't think MS have done a very good of explaining it. ...

ASP.NET Refresh the page after uploading image

Hi all, I have an ASPX page where I am uploading an image to server for on a serverside button click event. In my page, it will show the available image if it exists. When I upload an image, it will replace the old one with the new one. Now after uploading also the same image is getting displayed. How can tackle this? I used window.loc...

Starting ASP.NET Development Web Server (Cassini) as part of unit test setup?

I'm using WatiN, NUnit and ReSharper to run my ASP.NET unit tests inside Visual Studio. I'd like (if it's not already running) to start Cassini to run my tests against. Is this possible? How would I do it? ...

How to take control of style sheets in ASP.NET Themes with the StylePlaceHolder and Style control

Update: This turned into a blog post, with updated links and code, over at my blog: http://egilhansen.com/2008/11/30/how-to-take-control-of-style-sheets-in-aspnet-themes-with-the-styleplaceholder-and-style-control/ The problem is pretty simple. When using ASP.NET Themes you do not have much say in how your style sheets are rendered to...

How do you specify stylesheets for spcific media using ASP.NET Themes?

This is a question brought up in a local user group mailing list at dot.net.nz ... I when I create an XHTML page old-fashioned way, I used to use the following syntax for my CSS declarations: <link rel=”stylesheet” type=”text/css” media=”screen” href=”css/screen.css” /> <link rel=”stylesheet” type=”text/css” media=”print” hr...

asp.net - event log automation/tools for big web farm

A good friend of mine works for a large asp.net shop, with a web farm with many web servers (dozens). The application logs exceptions and messages to the event log on each box (not to a centralized location). Does anyone know of a convenient way to perform unified reporting on event logs on a number of different boxes? Or, which is be...

Good third party components for .NET

What third party component set would you recommend to enhance look and functionality of existing applications - both Windows and Web (C#, .NET 2.0, Visual Studio 2008)? Manager wants all applications to have "nice, simple and uniform" look. Thank you! ...

ASP.NET MVC Session State

Hi Guys, I am currently trying to create an upload control with progress bar in MVC using jquery. I keep running into a problem however in that mvc doesn't work in parallel threads? When I upload a file and show the progress during upload from JS performed through several callbacks to server, I am trying to get information about curren...

Identifying memory problems in an ASP.NET application

Hey, I've got an ASP.NET application running and on the production box it's using about 450MB RAM, however, it shouldn't be using quite so much, and it seems to increase over time, so it seems there might be a leak or atleast something not being released properly. I took a look with PerfMon and there was 416MB in GC Gen2. Anyone hav...

WMV file in an ASP.NET page

How do I embed a WMV file in an ASP.NET Web page? I want it visible as a player, not just a link. Is there an ASP.NET control for this? I don't see one on the VS 2008 toolbar, and can't find one in the help. And I'm not yet ready to move this site to Silverlight, where media is really easy. ...

An easy way to run an ASP.Net application at home?

I'd like to run some small private/home applications on a local machine, but I dislike the idea to set up a full Win2003 Server with IIS for this. Is there a easy and cheap way to get an ASP.Net application running at home? ...

When AppInitialize method get invoked in ASP.NET?

During practice of customizing VirtualPathProvider, I found that it the custom VirtualPathProvider can be registered in Global.asax or in AppInitialize method according to MSDN http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx. However, MSDN doesn't clearly describe the method AppInitialize. Does any s...

Community Server the new version do you recommend it? can you integrate new modules to it?

I am planning to use community sever for one of our projects, i used it in the past but we had a lot of problems customizing it and understanding how things work, im affraid to get into that again, and i would like to add some things to it but i dont know how flexible it is. ...

SQL Server Database File and WCF

I have a WCF Service that exposes a method GetCustomers(). The internals of the method uses a Data Layer along with a Business Layer to return a List of Customers. Currently I am using an SQL Server Database file saved on the server. Everything works fine on my local network but I want to move this to the web. I thought the best method ...

How to get username without domain

In an aspx page I get the Windows username with the function Request.LogonUserIdentity.Name. This function returns a string in the format "domain\user". Is there some function to only get the username, without resorting to the IndexOf and Substring, like this? public static string StripDomain(string username) { int pos = username.In...