English 中文(简体)
Get 上一个页面控件的值 s
原标题:Get Value of Previous Page Controll s

我的页面由 4 个标签( 使用 Jquery 协议) 组成 。

标签 1.) 用户选择设备制造和型号( Default.aspx)

Tab 2.)用户确认我们的回购价格( Getprice.aspx 已装入 Tab2)

Tab 3.)用户输入联系人信息( Default.aspx)

标签 4. 确认页面显示用户信息( Conf.aspx 已装入 Tab3)

问题出现是因为我需要我的 CodeBehind( 在 Conf.aspx) 来访问用户的联系人信息。 如果我通过查询字符串传递该值, 它将使用户能够修改该值, 并将错误信息插入到我的数据库中。 记住, 所有这一切都是不用背后完成的 。

所以我需要:

1. 一种防止更改查询字符串的方法(在我的查询字符串中保留一个电话号码、电子邮件地址、州、城市、zip、etc)

2. 获取上一个字段的值的简单方法( 从 Conf.aspx 代码“ 隐藏 : 恢复 默认. aspx 上的控件值的方法 )

抱歉长长的文本块, 任何帮助都将不胜感激 。

问题回答

I m not sure that separate webforms for each tab is necessary. You could probably re-architect your solution to be service oriented. Your logic can be available via webservice and your tabs can all be in the same view. Doing this the webform way will be more complicated.





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

热门标签