Asp.net Get Variable From Url And Process As Hidden Field

I have am html form using .NET for processing(two versions: one processed using VB, the other using C#). The forms are all working. I need the forms to get a variable from the url and insert it into the form as a hidden field. The variable will be added as a field and emailed along with the other data.

Example: Let’s say the url to get to the page is www.example.com/test?subID=abc123
I need the form to get the subID value and insert is as a hidden field into the web form so that when it’s submitted, the subID value is sent along with the rest of the data.

Again, the form is working and is sending successfully, just need to add an extra function in there – getting the variable from the url and sending it along with the other info.

Leave a Reply

Your email address will not be published. Required fields are marked *