c# - (System.Web.UI.WebControls.Button) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlButton) -


when run application works on visual studio works when upload on server error of

the base class includes field 'hiddenbutton', type(system.web.ui.webcontrols.button) not compatible type of control (system.web.ui.htmlcontrols.htmlbutton). 

for button used:

<button id="hiddenbutton" runat="server" onserverclick="btnclick_click" style="display:none;" ></button> 

c# code is:

   protected void btnclick_click(object sender, eventargs e)     {          downloadaspdf();     }      public void downloadaspdf()     {  

i don't have sure, try change this.

<asp:button id="hiddenbutton" runat="server" onclick="btnclick_click" text="" style="display:none;" /> 

Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -