English 中文(简体)
资料来源:统计局。 净额
原标题:Data Class in ASP.Net

我是一家VB.net胜过方案家,试图建立一个伙伴关系。 净额。 我通过在我的大多数假肢项目中进行反思,使用数据级(目标),并试图使其适应伙伴关系。 采用VB代码后的净值。 我有一个网页,作为接触信息的补充/编辑网页。 当时,我通过控制表格,与数据组的财产相匹配,对我的类别进行分类,以收集数据基中的联系数据。 我无法显示数据问题。 当我编辑数据并点击提交书纽特时,我的代码再次通过控制表格,把 lo带上,并将控制权与数据类别的财产相匹配,以更新该类别的财产。 然而,我的数据类别不再有效。 我知道,网络方案规划方式不同,但我似乎不能再 over。 这样做是否是错误的? 我的数据类别是否只在服务器上提供? 我是否只是重新证实最初的类别,然后通过推进和改变用户的改变,然后称作更新方法(见多余)? 我怎么能把数据分类为届会对象(我过去曾尝试过,但期限过紧,不得不放弃,也许我需要重新讨论)?

增 编

最佳回答

如果你决定在会议期间保留一些数据,那么你就有义务 yourself看 rel=“nofollow noreferer”>post。 你的法典将更清洁,更便于维持。

问题回答

是的,你需要把数据类别从数据库中重载,作为一种选择,或采用另一种办法。 原因是网络是无国籍的,因此所有当地变数都销毁,服务器一页的卸载过程随之发生。 这意味着,在请求之间,你需要储存数据。

你可以通过会议读/做一个物体,这样:

Session["A"] = myobj; myobj = (ObjType)Session["A"];

因此,届会为特定用户储存物体。 或者,海滩储存应用水平数据,因此所有用户都可以获得一个物体的例子(会议对每个用户来说都是独特的)。 可以通过向海滩铺设一个用户识别器,使用户能够独一无二。

var o = Cache.Get("A"); if (o != null) { .. }

Cache.Add(A), o, ......;

因此,这些机制有助于你暂时保留数据。

你们需要在某个地方节省数据类别,通常是在届会变量中,否则,一旦网页上调回用户,就会消失。 或者说,在张贴数据时,你需要重新计算数据类别。





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

热门标签