asp.net

What would you like to see in an beginner's ASP.NET security book

This is a shameless information gathering exercise for my own book. One of the talks I give in the community is an introduction to web site vulnerabilities. Usually during the talk I can see at least two members of the audience go very pale; and this is basic stuff, Cross Site Scripting, SQL Injection, Information Leakage, Cross Site Fo...

ASP.Net GridView Size Formatting

I have an ASP.Net GridView control that I need to remain a fixed size whether there are 0 records or n records in the grid. The header and the footer should remain in the same position regardless of the amount of data in the grid. Obviously, I need to implement paging for larger datasets but how would I achieve this fixed sized GridVie...

What are the key strengths of ASP.NET Webforms?

What are the key strengths of ASP.NET Webforms (2.0-3.5)? I'm not looking for comparisons to other frameworks, I'm just am looking for feedback on ASP.NET as it stands today. ...

How do you serialize javascript objects with methods using JSON

I am looking for an enhancement to JSON that will also serialize methods. I have an object that acts as a collection of objects, and would like to serialize the methods of the collection object as well. So far I've located ClassyJSON. Any thoughts? ...

How should I organize my ASP.Net themes and common CSS files

I am currently working on a project where a programmer who fancied themselves a graphic designer attempted their hand at ASP.Net themes. The CSS is pretty bad, but that is another question altogether. What I really need help with is the best way to organize ASP.Net Themes and the CSS that lies within them. Imagine that there is a direct...

Best way to stamp an image with another image to create a watermark in ASP.NET?

Anyone know? Want to be able to on the fly stamp an image with another image as a watermark, also to do large batches. Any type of existing library or a technique you know of would be great. ...

Advice on mixing legacy ASP site with .NET 2.0

We've just been tasked with updating an e-commerce application to use PayPal's PayFlow product. The site was originally written in classic ASP except for the credit card processing portion which was a COM component. Our plan is to replace the COM component with a .NET 2.0 component. I'm looking for tips, gotcha, etc. before we embark....

How do you change the http header information sent in IIS 6

Currently IIS sends an expires http header of yesterday minus 1 hour on ASP.NET pages. How do I change this to 60 seconds in the further instead? ...

Tools for converting from ASP to ASP.NET?

We have a large ASP (classic ASP) application and we would like to convert it to .NET in order to work on further releases. It makes no sense continuing to use ASP as it is obsolete, and we don't want to rewrite it from scratch (Joel Spolsky tells you why). Are there any tools for converting from ASP to ASP.NET 2.0 or 3.5? ...

What are some ADFS alternatives for doing single sign on for an ASP.NET app with users in active directory?

Needs to be secure and able to handle thousands of users. ...

How to configure asp.net process to run under a domain account?

I would like to configure asp.net process to run under an account with domain credentials. My requirement is to access some files on a network share. What are the steps for this? Is there any built-in account I can use? ...

What’s the difference between Response.Write() and Response.Output.Write()?

What’s the difference between Response.Write() and Response.Output.Write()? ...

What is the best way to improve ASP.NET/C# compilation speed?

UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to improve ASP.NET compilation and first execution speed? We are looking at solid state hard drives to speed things up, but the prices are really high right now. I have two 7200rpm harddrives in RAID 0 right now and I'm not satisfied wit...

Free open source asp.net file managers?

Any good ones? So far I have found IZWebFileManager, OXFileManager and AWS File Picker. The file manager should be able to delete, copy, rename, download & upload files. ...

How to access the HttpServerUtility.MapPath method in a Thread or Timer ?

Hi, I use a System.Timers.Timer in my Asp.Net application and I need to use the HttpServerUtility.MapPath method which seems to be only available via HttpContext.Current.Server.MapPath. The problem is that HttpContext.Current is null when the Timer.Elapsed event fires. Is there another way to get a reference to a HttpServerUtility obje...

Can't attach to w3wp under Vista with UAC turned on

I run Vista (business x32) on my work machine, in which I do ASP.NET development. Because I use IIS to server the sites I build (I do a lot of CMS integrations so I need to use IIS not the inbuilt web development server) I always need to attach to w3wp for debugging. The problem is that w3wp requires elevated permissions for me to conne...

Calling a ASP Page thru it Class

Like in Windows Forms: Dim myForm as New AForm(Constr-arg1, Constr-arg2) myForm.Show ... is there a similar way to Load a Page in ASP.Net. I would like to overload the Page Constructor and instantiate the correct Page Contructor depending on the situation. ...

Change Style/Look of Asp:CheckBox using CSS

I want to change the standard "3D" look of the standard asp.net checkbox to say solid 1px. If I try to apply the styling to the Border for example it does just that - draws the standard checkbox with a border around it - which is valid I guess. Anyway, is there a way to change how the actual textbox is styled? ...

Generics on ASP.NET page Class

I want to implement Generics in my Page Class like : Public Class MyClass(Of TheClass) Inherits System.Web.UI.Page But for this to work, I need to be able to instantiate the Class (with the correct Generic Class Type) and load the page, instead of a regular Response.Redirect. Is there a way to do this ? ...

IIS 6.0 Is Stubbornly Remembering Authentication Settings

I have an .asmx in a folder in my application and I keep getting a 401 trying to access it. I have double and triple checked the setting including the directory security settings. It allows anonymous. I turned off Windows Authentication. If I delete the application and the folder its in, then redeploy it under the same application na...