Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > commented out form tag causing error

Reply
Thread Tools

commented out form tag causing error

 
 
Rod Snyder
Guest
Posts: n/a
 
      09-13-2005
This isn't a big deal but I'm just curious if someone can explain this. I
have an asp.net page in which I was trying out some different options and
through copying and pasting I had an extra </form> tag, although it was
commented out <!-- </form> --> in the html view.

However, when running the page errors as if the comments are being ignored.

Can anyone shed any light on why this is happening.

Rod


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3VydF9DIFtNVlBd?=
Guest
Posts: n/a
 
      09-13-2005
the <!-- //--> tag says to the client browser to ignore it, not the server
compliler.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



"Rod Snyder" wrote:

> This isn't a big deal but I'm just curious if someone can explain this. I
> have an asp.net page in which I was trying out some different options and
> through copying and pasting I had an extra </form> tag, although it was
> commented out <!-- </form> --> in the html view.
>
> However, when running the page errors as if the comments are being ignored.
>
> Can anyone shed any light on why this is happening.
>
> Rod
>
>
>

 
Reply With Quote
 
 
 
 
Rod Snyder
Guest
Posts: n/a
 
      09-14-2005
Thanks. That does make sense. I'm still trying to get used to how html is
handled in .net. When I saw the form tag, it appeared to me to be just html,
but it does make sense that the compiler would look for an html form tag to
delimit the asp.net code.

Rod


"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:(E-Mail Removed)...
> the <!-- //--> tag says to the client browser to ignore it, not the server
> compliler.
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>
>
>
> "Rod Snyder" wrote:
>
>> This isn't a big deal but I'm just curious if someone can explain this. I
>> have an asp.net page in which I was trying out some different options and
>> through copying and pasting I had an extra </form> tag, although it was
>> commented out <!-- </form> --> in the html view.
>>
>> However, when running the page errors as if the comments are being
>> ignored.
>>
>> Can anyone shed any light on why this is happening.
>>
>> Rod
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error "A form tag with runat=server must exist" but there is a form tag!! André ASP .Net 2 06-23-2008 07:49 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
problem: writing out an XML file always includes the commented DTD in the beginning. Why? bronski Java 0 02-16-2005 11:43 AM
BUG: commented out server side controls in html still run =?Utf-8?B?YWRvbGYgZ2FybGlj?= ASP .Net 1 11-22-2004 12:34 PM
Commented Code Not Treated As Commented Code Jim Heavey ASP .Net 1 12-02-2003 02:25 PM



Advertisments