javascript error, form tag

  • Thread starter Thread starter Scott Collens
  • Start date Start date
S

Scott Collens

Hi all,

My page is causing a javascript error. The page is test.aspx and contains
a form tag:

<form id="theform" runat="server">

Because I have several user controls on the page each of which has
separate form controls and functionality I have added the form tag on the
aspx page and added my user controls within the tags. This way, all the
different form controls and logic share the same server form control.

The error points to the rendered form tag which is.

<form name="theform" method="post" action="test.aspx" id="theform">

I've seen some similar problems in my search but most refer to doPostBack
and templated user controls where the form attributes, id and name, are
different. I don't seem to be having this problem.

Does anyone have any suggestions. Thanks...Scott
 
I have seen javascript errors give misleading line numbers on numerous
occasions. Try debugging into your code using a script debugger to determine
where the error actually occurs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top