jquery postback failing
<p>I'm trying to initiate a postback invoking the click function of a server-running element, as to run some C# code, in the event of a particular jquery dialog button click.</p>

<p>I am using a modal dialog with buttons as per <a href="http://jqueryui.com/demos/dialog/#modal-form" rel="nofollow">this</a> jQuery UI example.  I have attempted using all of the different answers for javascript/jquery postback invocations in <a href="http://stackoverflow.com/questions/751415/asp-net-postback-with-jquery">this</a> question.  </p>

<p>I've set a couple of breakpoints in my C# code to see if these postbacks are getting called, but nothing is getting hit.</p>

<p>I have this dummy element in my ascx file to use:</p>

<pre><code>&lt;a id="anchorId" runat="server" onclick="return true;" onserverclick="TryLogin"&gt;&lt;/a&gt;
</code></pre>

<p>I've attempted to get this postback to occur a few different ways:</p>

<pre><code>$("#anchorId").click(); //just simply does nothing
document.getElementById("anchorId").click(); //This one gives me a null javascript error
$("document").getElementById("#anchorId").click(); //tells me [object] doesn't have a getElementById
__doPostBack('&lt;%=anchorId.UniqueID %&gt;', '');//Also does nothing in the jQuery code, but works in standard javascript code
</code></pre>

<p>Lastly I did try retrieving the unique ID in the code behind as:</p>

<pre><code>string id = anchorId.UniqueID;
</code></pre>

<p>and replaced in the javascript this way:</p>

<pre><code>__doPostBack('Softening_Main$anchorId', '');//Still does nothing, and no javascript error
</code></pre>

<p>I really need some help here, any ideas?</p>
