Button click Event in user control not firing because of WebForm_DoPostBackWithOptions
<p>We had used a User Control Image button click to generate a Excel and I am using this user control in my aspx page by registering it</p>

<pre><code>&lt;%@ Register Src="~/UserControls/PaginationControl.ascx" TagName="ucPagination" TagPrefix="UC" %&gt;
</code></pre>

<p>I am using this user control in many pages in some pages its working the HTML code for the button generated during runtime for the working pages is </p>

<pre><code>&lt;input type="image" name="ctl00$MainContent$pagination1$ExcelBtn" id="MainContent_pagination1_ExcelBtn" 
title="Export To Excel" class="excel-ico" border="0" src="Images/excel.jpg" 
onclick="CallClickEventExcel();" 
style="height:16px;"&gt;
</code></pre>

<p>and the coding in aspx page is </p>

<pre><code>&lt;UC:ucPagination ID="pagination1" runat="server" UseSubmitBehavior="false" /&gt;
</code></pre>

<p>but in one of the page where I had used the same User Control the HTML code generated during runtime is </p>

<pre><code>&lt;input type="image" name="ctl00$MainContent$pagination1$ExcelBtn" 
id="MainContent_pagination1_ExcelBtn" title="Export To Excel" 
class="excel-ico" border="0" src="Images/excel.jpg" 
onclick="CallClickEventExcel();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$MainContent$pagination1$ExcelBtn&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))" 
style="height:16px;"&gt;
</code></pre>

<p>and the coding in aspx page is </p>

<pre><code>&lt;UC:ucPagination ID="pagination1" runat="server" UseSubmitBehavior="false" /&gt;
</code></pre>

<p>as you can see <strong><code>WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$MainContent$pagination1$ExcelBtn&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))</code></strong> extra added in the code generated during runtime.</p>

<p>I had stuck with this issue for hours kindly anyone give me the solution.</p>