A: 

Are you sure you have ASP.NET installed on your web server?

Chris Dwyer
Yes, I'm using Visual Studio 2008 9.0.30729 Framework 3.5 SP1
Birk
A: 

It looks like the __doPostBack() function is not being generated because you have no server-side events which require it.

ASP.NET likes to only generate the __doPostBack() function when you have event listeners subscribed that would need it to function correctly.

Dan Herbert
Protected Sub linkTest_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles linkTest.ClickThere's my event handler... and like I said, when it was on my home computer, and my web server it was working correctly.
Birk
Whoops, I overlooked the fact that you were using a LinkButton. I was thinking that was a Button control, which doesn't need the __doPostBack() method, if I recall correctly.Also, because AutoEventWireup is false, it doesn't look like that method would be tied to the control by itself, but someone else already mentioned that...
Dan Herbert
+1  A: 

You have AutoEventWireup set to false, but no Override of OnInit to attach the event. Try changing the AutoEventWireup to true.

Edit: From the more information it could be that it is incorrectly identifying Firefox in the brower capabilities section of your machine.config. (or web.config).

It could also be that JavaScript is turned off in Firefox, and thus .NET is determining that there is no point rendering the Javascript stuff, and should use a different approach to postback handling, if there is such a thing.

David McEwing
No change... good suggestion though.
Birk
+1  A: 

Based on the new information, I think it's clear that this is a Firefox problem (perhaps you have an add-on blocking JS), and not a programming question. I get fine results with your code using VS 2008 and FF3 on XP Pro, as I'd expect will most anyone else trying it.

You may try reinstalling Firefox, ensure that JS works on all other sites, make sure localhost doesn't have different security permissions...

CarmineSantini
+2  A: 

Before you reinstall Firefox, run it in debug mode (I think it's called debug mode). It turns off all plugins and that can help you narrow it down a bit. What about other browsers like Chrome or Safari?

Gromer
I figured out the problem (and edited the question) It was a user-agent spoofing plugin I've been using for testing. Although I'm not happy at all that that was the issue.
Birk
At least you found the answer!
Gromer
+2  A: 

The problem is the default way ASP.net treats unknown browsers... such as the iPhone. Even though it would be nice to assume unknown browsers could use javascript... you can specify what capabilities that a browser has in the section of web.config or machine.config.

Check out http://slingfive.com/pages/code/browserCaps/ for an updated browsercaps config file for asp.net

Here is an example of a case to match GECKO Based Browsers (Netscape 6+, Mozilla/Firefox, ...)

<case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))?">
       browser=Gecko
       <filter>
        <case match="(Gecko/[-\d]+)(?'VendorProductToken' (?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))">
         type=${type}
        </case>
        <case> <!-- plain Mozilla if no VendorProductToken found -->
         type=Mozilla
        </case>
       </filter>
       frames=true
       tables=true
       cookies=true
       javascript=true
       javaapplets=true
       ecmascriptversion=1.5
       w3cdomversion=1.0
       css1=true
       css2=true
       xml=true
       tagwriter=System.Web.UI.HtmlTextWriter
       <case match="rv:(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
        version=${version}
        majorversion=0${major}
        minorversion=0${minor}
        <case match="^b" with="${letters}">
         beta=true
        </case>
       </case>
      </case>
Birk
You beat me to it - BrowserCaps are indeed the issue here - You might want to check out http://owenbrady.net/browsercaps/ it's more recently updated for both 1.1 and 2.0 - props to http://stackoverflow.com/questions/431765/asp-net-request-browser-crawler-dynamic-crawler-list/431991#431991 for this one.
Zhaph - Ben Duguid