English 中文(简体)
In ASP. NET,什么是维持从速产生的控制的良好战略?
原标题:In ASP.NET, what s a good strategy for maintaining dynamically generated controls across Postbacks?
  • 时间:2011-11-04 15:17:03
  •  标签:
  • c#
  • asp.net

虽然,即是处理ASP动态控制的重要文章。 NET,我提出申请,我无法对Load页或Init页进行控制。 在用户拥有投入数据之后,这些数据很快就产生。 如果我无法在Load页或Init页上产生控制,那么是否有良好战略维持动态产生的控制?

最佳回答

<代码>Page_Load在用户拥有投入数据后仍会火灾。 ASP. 净额为无国籍状态,每当出现倒退时,该网页就会重新制作。 为了控制国家,你需要确保国家再次恢复。

问题回答

您的<代码>Page_Load活动仍在发射。 你们可以指定一个身份证,以便在退后适当重新编号。 如果你不控制身份证,他们将获得自动生成的名称。 这将造成投入价值的损失,而观察国也不会适当发挥作用。

我向大家提出了类似的问题。

动态用户控制在“号”后得到并保持数值。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签