Submit a form from code behind
<p>I'm having trouble implementing a functionality on my c#/asp.net app.</p>

<p>I have a form with a RadioButtonList and a submit button. 
The RadioButtonList is generated on <code>Page_Load()</code> from a list of objects I retrieve from the database.
I would like to automatically submit the form if there is only 1 object in the list.</p>

<p>I have access to my Form object, to the submit button etc... but I can't seem to find a solution (in the end I'm looking for a kind of <code>form.Submit()</code> ) method.</p>

<p>Does anyone have an idea of how I could do this ?</p>

<p>Thanks in advance !</p>

<p>EDIT >> Here is the code :</p>

<p>.aspx : <a href="http://pastebin.com/0E6T7dqH" rel="nofollow">http://pastebin.com/0E6T7dqH</a></p>

<p>.aspx.cs : <a href="http://pastebin.com/54payZJP" rel="nofollow">http://pastebin.com/54payZJP</a></p>

<p>EDIT2 >>></p>

<p>As it seems there is no way to do what I wanted to do at first, I ended up using a session variable with a response.redirect()</p>

<p>Source :
<a href="http://dotnetslackers.com/Community/blogs/haissam/archive/2007/11/26/ways-to-pass-data-between-webforms.aspx" rel="nofollow">http://dotnetslackers.com/Community/blogs/haissam/archive/2007/11/26/ways-to-pass-data-between-webforms.aspx</a></p>
