[需要帮助]我怎样才能实现这一目标 [英] [help needed] how can i acheive this

查看:62
本文介绍了[需要帮助]我怎样才能实现这一目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PageA.aspx

------------

来自PageA.aspx我正在从PageB.aspx获取所有控件并存储在数据库中。

控件存储在数据库中(感谢您提交txtName.Text)





PageB.aspx

-----------



在PageB.aspx中,点击我想要的提交按钮获取存储在数据库中的那些控件。(PageB.aspx有一个名为txtName的控件)



现在从PageB发送邮件时我想要那个



感谢您提交txtName.Text(txtName.Text应该替换为用户已经使用的值)。



我尝试了什么:



从PageB.aspx发送邮件时,我获取的是Control的名称而不是其值。

PageA.aspx
------------
From PageA.aspx I'm fetching all controls from PageB.aspx and storing in database.
Controls are stored in database like (Thank you for submitting txtName.Text)


PageB.aspx
-----------

In PageB.aspx,while clicking on Submit button I want to fetch those controls that are stored in database.(PageB.aspx has a control named txtName)

Now from PageB while sending mail I want that

Thank you for submitting txtName.Text(txtName.Text should be replaced with the value that has been enetered by the user).

What I have tried:

While sending mail from PageB.aspx , I am getting Control's Name instead of its value.

推荐答案

我从你的问题中理解的是:



你有两页 - PageA和PageB



PageA拥有所有控件

从PageB您想要访问这些控件的值(其控件名称存储在数据库中)。



解决方案:



从PageA获取控件名称时,您还可以获取其值并将其放入DB中。



现在,您可以访问控件名称和值。



如果这不能解决您的问题,请详细了解您的问题(可能会分享您的示例代码)。



谢谢,
What I understand from your question is:

you have two pages - PageA and PageB

PageA have all the controls
From PageB you want to access value of those controls (whose control name are stored in database).

Solution:

While fetching control name from PageA, you also fetch its value and put that in DB.

Now, you can access the control Name as well as value.

If this does not solve your problem, then explain more about your problem (may be share your sample code).

Thanks,


这篇关于[需要帮助]我怎样才能实现这一目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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