Professional Web Applications Themes

javascript error, form tag - ASP.NET General

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 ...

  1. #1

    Default javascript error, form tag

    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




    Scott Guest

  2. #2

    Default Re: javascript error, form tag

    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.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows XP
    Windows XP Associate Expert
    --
    "Scott Collens" <hotmail.com> wrote in message
    news:46.248.16... 


    Chris Guest

  3. #3

    Default Re: javascript error, form tag


    Thanks Chris, I'll give it a try.

    "Chris Jackson" <org> wrote in
    news:phx.gbl:
     

    Scott Guest

Similar Threads

  1. Javascript from Flash Form?
    By Sequenzia in forum Coldfusion Flash Integration
    Replies: 4
    Last Post: August 18th, 02:09 PM
  2. javascript within CF form
    By [w]alterego in forum Coldfusion - Getting Started
    Replies: 1
    Last Post: June 22nd, 12:22 AM
  3. Populating form from javascript
    By Tulsa in forum Macromedia ColdFusion
    Replies: 1
    Last Post: April 27th, 05:11 AM
  4. javascript error while using ASP.Net form
    By Manoj Mathew in forum ASP.NET Building Controls
    Replies: 0
    Last Post: August 23rd, 08:39 AM
  5. Replies: 3
    Last Post: May 13th, 12:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139