Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 3-Mar-16 19:09pm
Comments
dan!sh 4-Mar-16 0:15am    
can you try to rephrase? It is not very clear.
Patrice T 4-Mar-16 0:51am    
This not a question.

1 solution

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,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900