views:

1437

answers:

2

Hai,

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

A: 

You can't do that because of viewstate. It's not accessible in static context.

Try asp:updatePanel (it can persist viewstate between callbacks) or code stateless grid by yourself.

Arnis L.
A: 

may be you find your solution here

http://dotnetslackers.com/articles/ajax/ASPNETAjaxGridAndPager.aspx

abhijit