Hi,
Can JSON be used for Server Side Integration for Retrieving and Adding Data to SQL Server.
Can someone please help with this.
thanks
Hi DayanaArul,
Thank you for posting in our forums!
Could you please clarify a little more on what exactly you mean by using JSON to integrate and retrieve data?
If you are asking how to send data from the igCombo to the server, you could create an Ajax call and send data from the igCombo to the server to work with. Please see the sample I have attached to this post for a demonstration of this.
When pressing the "Update" button on the page, the currently selected item in the igCombo is sent to the UpdateData Action on the server, where it can be used to update or retrieve data from a database.
If you need further assistance with this, please let me know and I will be glad to help.
I am not able to run your sample application. My problem is, I have used igCombo with JSON binding. I want to pass the selected value of combo to the server. how to get it.
I have used below code for json igcombo binding.
$(function () {
$("#igHC").igCombo({
dataSource:"/Handler3.ashx",
valueKey:"HCCode",
textKey:"HC",
dataSourceUrl:"/Handler3.ashx",
responseDataKey:"data2",
width:"300px"
});
Can you please help to pass the selected combo value to server?
Hi, Dayana.
You can check this sample, which uses the ComboFor method. ComboFor creates hidden input that holds the value and then send it to the server - it's done inside the control and you don't need to handle it by yourself. Then you receive the value on the server (you can check the UsingAspNetMvcHelper action method). After that you can use this value and save to whatever you want. I hope this can help you. For any further questions don't hesitate to ask.
Best regards,
Nikolay Alipiev
Please let us know if you need further assistance with this issue and we will be glad to help.
When we use the igCombo with classic web forms, we are ofcourse, able to bind to the combo box. But, we would like to know how to fetch the selected value from the combo box in the server side.
Also, we would like to know this igCombo control is tightly coupled with ASP.NET MVC. But, we have built our system using ASP.NET. What is the ideal solution to work with Infragistics controls. Should we need to migrate to ASP.NET MVC? Are there any workarounds?