473,793 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

commented out form tag causing error

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
Nov 19 '05 #1
2 962
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

Nov 19 '05 #2
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_da rkfalz.com> wrote in message
news:B0******** *************** ***********@mic rosoft.com...
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1427
by: James | last post by:
I have the above problem with an inherited form, which was working previously. I have a base form, frmBase which is inherited by my user forms. When I try to 'design' either frmBase or a user form, I get either the 'Specified Cast Is Not Valid' error, or the 'Ambiguous Match' error. Both of these are driving me crazy, as it was working previously. I have created a sample demonstrating this:
10
19362
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes the server happy. I set up a copy of this form at my web site so that I could see exactly what a...
15
4664
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any field to start. If I edit that field and then click on the new record button in the navigation buttons, the form goes to a new record and each field has the default value of the previous record. If I put the focus in any field to start, edit that...
14
10145
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought I should give back to the community by posting our findings. Thanks you all for all your help till now by posting problems and their solutions. ~Abhijit
3
2673
by: dixie | last post by:
I have an Access 2000 form which has been running OK for a long time. Lately, it is playing up and doing things like causing Access to close suddenly when the form is opened or when saving the form in design view after a change. Today, I got the following message from the form when using a combo box. "The expression After Update you entered as the event property setting produced the following error: A problem occurred while Microsoft...
6
2883
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox and the coresponding 'Id' from the lookup table is to be inserted into the field of the new record. I have two simple tables. "tblPerson" is the data table. The lookup
4
1254
by: John Salerno | last post by:
Here's my code, with the error following it: props = group1 = group2 = group3 = group4 = # Submitter: Michael Davies def all_perms(str):
3
4288
by: christianlott1 | last post by:
I wouldn't have brought this up except that a friend had a similar problem as well. Situation: Code works fine for months, then suddenly breaks. In my case the code broke on a piece of commented out code on an event stub. The After Update stub was written but the one line piece of code was commented out.
3
1333
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I removed some functionality from an ASP.NET 2 webpage by deleting the input ior textbox control from the page's code. Then I commented out the JavaScript function on the same page that referenced the deleted control, so the commented function looks like this: /* function MyFunction() {
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.