English 中文(简体)
隐藏 DIV 表格后退
原标题:Postback of Form hiding DIV

我有一个竞争表, 它是一个用户控制器, 它坐在有多个用户控制的页面上。 当一个用户单击一个按钮, 它显示这个属于用户控制的表格时, Div (在页面上) 起初隐藏着。 我唯一的问题是当页面后退它隐藏 DIV 时, 即使有错误 。 我需要它来保持 DIV 开放, 如果有错误, 格式验证的代码逻辑在用户控制中, 这样我如何能够访问页面上的 DIV? 该页面是一个主页, 我们在主页上不做任何代码逻辑, 是否无论如何要在主页上没有代码的情况下完成?

最佳回答

最好的方式是披露一些属性,说明是否在用户控制上发生任何错误,并根据用户控制属性在网页上设置Divs可见度。

问题回答

暂无回答




相关问题
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!

热门标签