什么是通过JSON加载ASP.Net用户控件的最好方法? [英] What is the best way to load ASP.Net usercontrols via JSON?

查看:208
本文介绍了什么是通过JSON加载ASP.Net用户控件的最好方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是发出一个asp.net用户控件回基于一个JSON请求的浏览器的最佳方式?

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

到目前为止,我有中创建用户控制,并将其发送回浏览器的Web服务。然而,当我回来后整个页面,我得到一个错误有关国家信息对于此页面无效,可能已损坏。

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."

考虑到我是新来的JSON,我会想我做错了。什么是最好的方法是什么?

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?

推荐答案

答:关闭视图状态验证

这篇关于什么是通过JSON加载ASP.Net用户控件的最好方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆