使用C#更新aspx中的问题. [英] Update Issues in aspx with C#.

查看:126
本文介绍了使用C#更新aspx中的问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编辑网格行时,它将被放置在所有必需的控件上,这不是问题.在更新控件时它将出现在所有控件上.它将显示以下错误.

无法加载viewstate.加载视图状态的控制树必须与在上一个请求期间用于保存视图状态的控制树匹配.例如,当动态添加控件时,在回发期间添加的控件必须与在初始请求期间添加的控件的类型和位置相匹配.

When am editing my grid rows.It will be placed on all required controls.its not a problem.it will appeared on all control when am going to update it .it will shown following errors.

Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

推荐答案

i在asp.net中创建动态表单,然后这个问题出现在我眼前.

当时我用这个概念
字符串s = Request.Form ["ControlId"].ToString();
i also create dynamic form in asp.net then this issue came in front of me.

I used this concept for that time
string s = Request.Form["ControlId"].ToString();


这篇关于使用C#更新aspx中的问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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