How to call a asp.net Serverside function from javascript function
-
Hi, Is it possible to call a asp.net function from javascript function.? for example, my code is like this.
<dxe:ASPxComboBox ID="cmbmMicroCause" Width="100%" runat="server" DataSourceID="RootCauseMicroDataSource"
TextField="name" ValueField="code" ClientInstanceName="cmbmMicroCause"
AutoPostBack="false" >
<ClientSideEvents SelectedIndexChanged="function(s,e){OncmbMicroCauseChanged(s);}" />
</dxe:ASPxComboBox>on the selection change event of
OncmbMicroCauseChanged()
and clickevent of the button
saveBusinessExpections()
i want to call a asp.net function GetData() and FillAccountaValue() simultaneously. I can't write a Serverside event directly for this controls, if i do this operation directly in serverside control, it will filter all the data and get the records from DB and it is very time consuming and i can't use AJAX controls here too, its not allowed here. Please someone help me on this.
-
Hi, Is it possible to call a asp.net function from javascript function.? for example, my code is like this.
<dxe:ASPxComboBox ID="cmbmMicroCause" Width="100%" runat="server" DataSourceID="RootCauseMicroDataSource"
TextField="name" ValueField="code" ClientInstanceName="cmbmMicroCause"
AutoPostBack="false" >
<ClientSideEvents SelectedIndexChanged="function(s,e){OncmbMicroCauseChanged(s);}" />
</dxe:ASPxComboBox>on the selection change event of
OncmbMicroCauseChanged()
and clickevent of the button
saveBusinessExpections()
i want to call a asp.net function GetData() and FillAccountaValue() simultaneously. I can't write a Serverside event directly for this controls, if i do this operation directly in serverside control, it will filter all the data and get the records from DB and it is very time consuming and i can't use AJAX controls here too, its not allowed here. Please someone help me on this.
Yes possible, set function attribute as Webmethod
Parwej Ahamad