Hi,
I have a Button control when clicked fires some javascript which sets a DIV tag visibility to true. This all works fine, but what it doean't do is fire the serverside OnClick button event?
My Javascript code:
My HTML Code:Code:<script type="text/javascript"> function showSending(e) { linkID = document.getElementById(e) linkID.disabled = true; linkID = document.getElementById("sending") linkID.style.visibility = "visible"; } </script>
My OnClick event:Code:<form id="form1" runat="server"> <div> <asp:Button ID="btnSending" runat="server" Text="Sending" OnClientClick="return showSending(this.id)" OnClick="btnSending_Click" /> <div id="sending" style="border: solid 1px green; padding: 5px; width:55px; font-family:Verdana; font-size:12px; visibility:hidden;">Sending..</div> </div> </form>
So once the div tag visibility is set i then want the button event to fire?Code:protected void btnSending_Click(object sender, EventArgs e) { // Do some stuff here }




Reply With Quote