When I run the application works on Visual Studio it works perfectly but when I upload it on the server I get an error of
The base class includes the field 'hiddenButton', but its type(System.Web.UI.WebControls.Button) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlButton).
For Button I 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()
{