What is the best way to load ASP.Net usercontrols via JSON?

只谈情不闲聊 提交于 2019-12-13 03:42:39

问题


What is the best way to emit an asp.net usercontrol back to the browser based on a JSON request?

So far I have a web service which creates the user control and sends it back to the browser. However when I post back the whole page, I get an error about "the state information is invalid for this page and might be corrupted."

Considering I'm new to Json, I'm going to guess I'm doing it wrong. What's the best way?

Should I just turn off view state validation?


回答1:


Answer: turn off view state validation.



来源:https://stackoverflow.com/questions/587678/what-is-the-best-way-to-load-asp-net-usercontrols-via-json

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!