Asp: GridView.DataBind () using AJAX WebService Javascript

Hai,

I am using Visual Studio 2008 and Framework 3.5. I wrote a WebService and I added the WebService to my page via the ScriptManager Service Path. I wrote a method in webservice that returns a List <...>. I grabbed this value from a JavaScript function. Now I want to bind this List <...> value to my Asp: GridView using JavaScript. Help me.....

0


a source to share


2 answers


You cannot do this because of the viewing. It is not available in a static context.



Try asp: updatePanel (it can persist in view mode between callbacks) or code web without persisting.

0


a source


Well, you cannot bind datagrid using JavaScript. As Arnis mentioned, you can use UpdatePanel. Alternatively, you can use JQuery to create a table structure that looks and feels like a grid. However, with this approach, it would be difficult for you to paging.



0


a source







All Articles