webforms - asp.net button appears enabled but does not react to mouse hover or click -


i have cmdcancel , cmdlaunchreport buttons appear enabled, not react mouse hover nor mouse click. can tab these buttons focus there , press keyboard [enter]-key send postback server.

there similar code (nearly identical div rather asp.panel surrounding 2 buttons), , other pages work expected. have checked code-behind , server-code , there no code referencing panel nor buttons nor div(s).

what else uncover fault rather routine set of code? comments welcome. here aspx:

<div id="pagingdiv" class="rpt_pagingdiv" >    <asp:panel id="divrptactionbuttons" runat="server"  style="float: left; margin-left: 0em;" enabled="true" >       <asp:button id="cmdcancel" runat="server" skinid="cmdbutton" text="close" style="margin-left: 0.5em;" enabled="true" />       <asp:button id="cmdlaunchreport" runat="server" skinid="cmdbutton" text="print, email or save disk" style="margin-left: 0.5em;" />    </asp:panel>    <div id="divrptpaging" style="float: left; text-align: center; width: 70%;">       <span style="font-size: larger;">report page navigation:</span>       <asp:datapager id="pagerreport" runat="server" pagedcontrolid="lvwreportdata" pagesize="1">          <fields>             <asp:nextpreviouspagerfield buttontype="button"                firstpagetext="first page" lastpagetext="last page" nextpagetext="next page" previouspagetext="previous page"                showfirstpagebutton="true" showlastpagebutton="true"                shownextpagebutton="true" showpreviouspagebutton="true" />             <asp:numericpagerfield buttoncount="20" rendernonbreakingspacesbetweencontrols="true"                numericbuttoncssclass="rpt_pagingnumberother"                currentpagelabelcssclass="rpt_pagingnumbercurrent"                nextpreviousbuttoncssclass="fcibutton01" />          </fields>       </asp:datapager>       <asp:hiddenfield id="hidrowbeg" runat="server" />       <asp:hiddenfield id="hidrowmax" runat="server" />    </div> </div> 

you need wire buttons inside panel click event handlers. if things work without issues. note onclick attribute in code below need add, , create corresponding methods in code behind.

markup

 <asp:panel id="divrptactionbuttons" runat="server"  style="float: left; margin-left: 0em;" enabled="true" >       <asp:button id="cmdcancel" runat="server" skinid="cmdbutton" text="close"             style="margin-left: 0.5em;" enabled="true"            onclick="cmdcancel_click"/>       <asp:button id="cmdlaunchreport" runat="server" skinid="cmdbutton"            text="print, email or save disk" style="margin-left: 0.5em;"            onclick="cmdlaunchreport_click" />    </asp:panel> 

code behind

protected void cmdcancel_click(object sender, eventargs e) {  //some code here }  protected void cmdlaunchreport_click(object sender, eventargs e) {  //some code here } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -