I've seen this happen a few times... the Inherits string at the top of the
master page doesn't match the code behind page for the master page:
on the .Master page:
'**********************************
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="TestMasterPage.master.cs"
Inherits="SandBox.TestMasterPage" %>
'**********************************
On the .Master.cs page:
'**********************************
namespace SandBox // <------ HERE
{
public partial class TestMasterPage : System.Web.UI.MasterPage //
<---- HERE
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
'**********************************
Make sure they match. If they don't, the OnClick will never be seen and
the button will "press down", but since it doesn't see an associated event
in the partial class, it just keeps on going (and won't throw an error =( ).
-dl
--
David R. Longnecker
http://blog.tiredstudent.com
> Jonathan Wood wrote:
>
>> Göran,
>>
>>> "Nothing" never happens. What exactly happens when you click the
>>> button?
>>>
>> Nothing.
>>
> If that really is the case, then you have placed some other,
> invisible, element on top of the button so that it's impossible to
> click on.
>
>>> Does the button look like it reacts to the mouse click? I.e. does
>>> it's appearence change when you press the mouse button?
>>>
>> If I use a regular button, then Windows redraws it to appear pressed
>> when I click it.
>>
> That's not nothing. Something is actually happening when you click the
> button. That means that it's actually possible to click on the button,
> and that the button reacts to the click.
>
>> If I use a bitmap button, the cursor changes to the hand pointer.
>> Both controls also take the input focus when clicked. But I can
>> detect absolutely nothing happening in response to a click.
>>
> That doesn't mean that nothing happens. The button reacts to the
> click, and that most likely means that the process of posting the form
> is started. I don't know yet why it doesn't succeed, but there is
> probably something in your page that stops it.
>
> Do you have any onsubmit event on the form?
>
>>> Does the page do a postback or not when you click the button?
>>>
>> Well if it did a postback, that would be something. There is no
>> indication that it is doing a postback. The page doesn't flicker, it
>> doesn't reset to the top of the page. And the button text does not
>> change in response to my code.
>>
>> Jonathan
>>