I have created the form and html controls dynamically in the page load method of
Like below :
Dim form As New HtmlForm
Dim btnSubmit As New HtmlInputButton
Dim txtQuery As New HtmlInputText form.Action = "User.aspx"
form.Method = "POST"
form.Name = "form1"
txtQuery.Name = "user"
txtQuery.Value = "john"
btnSubmit.ID = "Submit"
what I want is that without clikcing on the submit button it should navigate to the target page which is listed in the Action and post the data as well.
how can I achive this by programatically.
Please note I have a requirment to use this mechanism.
Thanks in Advance