asp.net

HTTP Errors with .Net 3.5 SP1

I have a ASP.Net website that is failing on AJAX postbacks (both with ASP.Net AJAX and a 3rd part control) in IE. FireFox works fine. If I install the website on another machine without .Net 3.5 SP1, it works as expected. When it fails, Fiddler shows that I'm getting a 405 "Method Not Allowed". The form seems to be posting to pages...

Edit control on stack overflow

Is the edit control I'm typing in now, with all its buttons and rules freely available for use? My web project is also .Net based. ...

How to force my ASP.net 2.0 app to recompile

I have a ASP.net 2.0 app and I have made some changes the the source file ( cs files ). I uploaded the changes with the belief that it would auto-recompile. I also have the compiled dll in MY_APP/bin. I checked it and noticed that it did not recompile. Please understand I am new to this. ...

How do I remove items from the query string for redirection?

In my base page I need to remove an item from the query string and redirect. I can't use Request.QueryString.Remove("foo") because the collection is read-only. Is there any way to get the query string (except for that one item) without iterating through the collection and re-building it? ...

What's a good free and open-source ASP.NET ecommerce solution?

Does anyone have experience with a good, free and open-source ecommerce solution for ASP.NET? I know there are a ton out there for PHP and other languages, but I'd like to find one written in .NET (C# preferably). I tried dashCommerce a few months ago and I found it to be very buggy. Maybe it's matured since then, but I would hesitate...

Determine size of page via HttpModule

Here's an easy one for you: I'm currently logging request duration via an HttpModule and I'd like to find out the number of bytes each page is as well. HttpContext.Current.Response.OutputStream.Length throws a NotSupportedException. What's an easy way to do this? ...

How to detect (using .ASPX) if Javascript is enabled on browser

I'm thinking this might be a quick and easy way to lower the form spam on our site just a little bit. The idea being that (I have read) spammers aren't running with javascript enabled. (Or at least they are accessing your website without running javascript. I.e., they aren't browsing up to it in IE or FF. I can use .asp or .aspx. ...

Visual Web Developer Express and .NET, et al.

I'm coming from the open source world, and interested in giving ASP.NET a spin. But I'm having a little trouble separating the tools from the platform itself in regards to the licensing. I've downloaded Visual Web Developer 2008 Express, but not sure how different this is from one of the full-featured Visual Studio licenses -- and whethe...

ASP.NET ObjectDataSource Binding Automatically to Repeater - Possible?

Hi, I have a Question class: class Question { public int QuestionNumber { get; set; } public string Question { get; set; } public string Answer { get; set; } } Now I make an ICollection of these available through an ObjectDataSource, and display them using a Repeater bound to the DataSource. I use <%#Eval("Question")%> t...

ASP.Net word count with a custom validator

A requirement for an ASP.Net 2.0 project I'm working on limits a certain field to a max of 10 words (not characters). I'm currently using a CustomValidator control with the following ServerValidate method: Protected Sub TenWordsTextBoxValidator_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidate...

GridView will not update underlying data source

So I'm been pounding on this problem all day. I've got a LinqDataSource that points to my model and a GridView that consumes it. When I attempt to do an update on the GridView, it does not update the underlying data source. I thought it might have to do with the LinqDataSource, so I added a SqlDataSource and the same thing happens. The a...

SharePoint stream file for preview

I am looking to stream a file housed in a SharePoint 2003 document library down to the browser. Basically the idea is to open the file as a stream and then to "write" the file stream to the reponse, specifying the content type and content disposition headers. Content disposition is used to preserve the file name, content type of course...

Help on website optimization for iPhone

We re trying to work on making a mobile version for one of our asp.net web applications, however we would like to make iPhone specific. Are there any resources out there which provide best practice guidelines: UI Guidelines, any .net control libraries which are iPhone specific. Security guidelines - anything special that the iPhone ...

Using generic classes with ObjectDataSource

I have a generic Repository<T> class I want to use with an ObjectDataSource. Repository<T> lives in a separate project called DataAccess. According to this post from the MS newsgroups (relevant part copied below): Internally, the ObjectDataSource is calling Type.GetType(string) to get the type, so we need to follow the guideline do...

How do I create tri-state checkboxes with a TreeView control in .NET?

I have a treeview control in a Windows Forms project that has checkboxes turned on. Because the treeview control has nested nodes, I need the checkboxes to be able to have some sort of tri-mode selection. I can't find a way to do this (I can only have the checkboxes fully checked or unchecked). ...

Embed asp page without iframe

I want to embed an .asp page on an html page. I cannot use an iframe. I tried: <object width="100%" height="1500" type="text/html" data="url.asp"> alt : <a href="url.asp">url</a> </object>" works great in ff but not ie7. Any ideas? Is it possible to use the object tag to embed .asp pages for IE or does it only work in ff? ...

Examples for coding against the PayPal API in .NET 2.0+?

Can anyone point me to a good introduction to coding against the paypal API? ...

Is there an ASP.NET pagination control (Not MVC)?

I've got a search results page that basically consists of a repeater with content in it. What I need is a way to paginate the results. Getting paginated results isn't the problem, what I'm after is a web control that will display a list of the available paged data, preferably by providing the number of results and a page size ...

Getting IIS Worker Process Crash dumps

I'm doing something bad in my ASP.NET app. It could be the any number of CTP libraries I'm using or I'm just not disposing something properly. But when I redeploy my ASP.NET to my Vista IIS7 install or my server's IIS6 install I crash an IIS worker process. I've narrowed the problem down to my HTTP crawler, which is a multithreaded beas...

When building a Handler, should it be .ashx or .axd?

Say I'm building an ASP.Net class that inherits from IHttpHandler, should I wire this up to a URL ending in .ashx, or should I use the .axd extension? Does it matter as long as there's no naming conflict? ...