0

Hi there,

I have a prob. I am trying to build a form in Html and when submitted it should go to other URl and to Asp.net file.

Can anyone help me with this.

In ASP.net i am using the following code

protected void Page_Load(object sender, EventArgs e)
    {
        Name.Value = Request.Form("Name");
        Email.Value = Request.Form("Email");
        ContactNo.Value = Request.Form("ContactNo");
        City.Value = Request.Form("City");
        Branch.Value = Request.Form("Branch");
        nName.Text = Name.Value;
        nEmail.Text = Email.Value;
        nContactNo.Text = ContactNo.Value;
        nCity.Text = City.Value;
        nBranch.Text = Branch.Value;
    }

But I am getting error.

Can anyone help me with this. I have also attached the Html file and Asp.net files.

Thanks

Attachments
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by __avd
0
Name.Value = Request.Form["Name"];
        Email.Value = Request.Form["Email"];
        ContactNo.Value = Request.Form["ContactNo"];
        City.Value = Request.Form["City"];
        Branch.Value = Request.Form["Branch"];

OR

Name.Value = Request["Name"];
        Email.Value = Request["Email"];
        ContactNo.Value = Request["ContactNo"];
        City.Value = Request["City"];
        Branch.Value = Request["Branch"];

Edited by __avd: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.