Page 1 of 1

Need help with this please. TIA Q1.To make the ContactForm.ascx user control even more reusable, you can create a string

Posted: Fri May 20, 2022 12:02 pm
by answerhappygod
Need help with this please. TIA
Q1.To make the ContactForm.ascx user control
even more reusable, you can create a string property on it such as
PageDescription that enables you to set the name of the page that
uses the control. You can then add this string to the declaration
of the control in the containing page. Finally, you can add the
description to the subject of the message that you send. This way,
you can see from which page the contact form was called. What code
do you need to write to make this happen?