PDA

View Full Version : Ext.Button Post back



Prathibha
23 Dec 2010, 6:53 AM
Hi,
How do I call a code behind function (c#& asp.net) from the below code.

Regards,
Prathibha

<script type="text/javascript">
Ext.onReady(function() {

var myBtnHandler = function(btn) {

Ext.MessageBox.alert('Proceed', btn.text);
}


new Ext.Button({
renderTo: document.getElementById("btnProccedPayment"),
xtype: 'tbbutton',
text: 'Procced to Payment',
id: 'btnProceed',
handler: myBtnHandler
});
});
</script>
<div id="btnProccedPayment"></div>