I have a contact page where there is a data source, and if you click on one of them, you will receive a contact form that I want to send to this particular person.
I use sqldatasource dscontactemail to get information about this person, to post it in a contact form, but how do I get information from dscontactemail from the code behind when I am ready to send this mail?
I placed the form on the page to display the image of the person, and I can get everything I want from this dscontactemail using <% # Eval ("email"), for example, but how do I get this from the code?
I tried a hidden field, but that didn't work.
Any other ways to access the SqlDataSource on the page from code?
Amy
source
share