Hey Guys

i have a JQuery ui dialog box that opens up as a contact form when a link is clicked, which works fine, my problem is trying to submit the information.

When you click the send button it fires a button click event of another asp:button ive got hidden on the page...

the post back event fires and the page reloads but the asp:button click event doesn't not fire?

Heres my code:

asp:Button is as follows:
Code:
 <asp:Button  ID="btnSendEnquiry" runat="server" CssClass="" Text="Foo button" OnClick="btnSendEnquiry_Click" />
jQuery Code (which is at the top of my age)
Code:
$(function() {

    // Dialog			
    $('#dialog').dialog({
        autoOpen: false,
        width: 500,
        height: 450,
        buttons: {
            "Send": function() {
                __doPostBack('<&#37;=btnSendEnquiry.UniqueID%>', 'Click');

            }
        }
    });
asp:Button code behind file
Code:
    Protected Sub btnSendEnquiry_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSendEnquiry.Click

        Dim bResult As Boolean
        bResult = SendEnquiry(tbName.Text, tbCompany.Text, tbEmail.Text, tbContactNumber.Text, tbDescription.Text)

        If bResult Then
            MsgBox("got this far so must have sent...?")
        Else
            MsgBox("Ahhhh!...?")
        End If
    End Sub
Can anyone help me out on this i cant understand why the post back fires but the button even doesnt...?


Thanks
Roo