473,387 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

2.0 simple problem: comment is parsed by compiler

Hello,
(Sorry for my English, it's not my native language...)
Could you explain me simple problem? I have little experience.

I commented part of .aspx page and tried to rebuild the project.
Unfortunately I receive errors in commented asp: elements, for
example:
'ASP.formularzewww_aspx' does not contain a definition for
'Calendar_Click'
Here is part of commented page:
<!--
Date of birth:
<asp:TextBox ID="BirthDate" runat="server" />
<asp:Button ID="Calendar" runat="server"
Text="Calendar"
OnClick="Kalendarz_Click" />
...
I don't understand why commented text is parsed by .NET compiler.
Could you explain me please?

Thank you very much.
/RAM/
Apr 22 '06 #1
1 1065
<! --

-->

is client-side comment syntax and therefore has no impact on server-side
processing. It's browser that understands this.

In case you want to comment server-side markup use server-side comment
syntax

<%--

--%>

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"R.A.M." <r_********@poczta.onet.pl> wrote in message
news:ig********************************@4ax.com...
Hello,
(Sorry for my English, it's not my native language...)
Could you explain me simple problem? I have little experience.

I commented part of .aspx page and tried to rebuild the project.
Unfortunately I receive errors in commented asp: elements, for
example:
'ASP.formularzewww_aspx' does not contain a definition for
'Calendar_Click'
Here is part of commented page:
<!--
Date of birth:
<asp:TextBox ID="BirthDate" runat="server" />
<asp:Button ID="Calendar" runat="server"
Text="Calendar"
OnClick="Kalendarz_Click" />
...
I don't understand why commented text is parsed by .NET compiler.
Could you explain me please?

Thank you very much.
/RAM/

Apr 22 '06 #2

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

Similar topics

31
by: da Vinci | last post by:
OK, this has got to be a simple one and yet I cannot find the answer in my textbook. How can I get a simple pause after an output line, that simply waits for any key to be pressed to move on? ...
4
by: Greg B | last post by:
Well since getopt() doesn't seem to be compatible with Windows, and the free implementation of it for Windows that I found still had some annoying restrictions, I thought I'd whip up a simple...
5
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files,...
32
by: someone else | last post by:
hi all I'm a newbie to this group. my apologies if I break any rules. I've wrote a simple program to find the first 1,000,000 primes, and to find all primes within any range (up to 200 *...
57
by: Xarky | last post by:
Hi, I am writing a linked list in the following way. struct list { struct list *next; char *mybuff; };
4
by: Eric Lindsay | last post by:
I seem to be running into problems when I try viewing pages at my site http://site.sheltersrus.com.au/ using this stylesheet http://site.sheltersrus.com.au/sheltersrus.css in Internet Explorer 6. ...
16
by: Rod | last post by:
I can't get this alert to show no matter what I do. Making me crazy. One doesn't equal two...does it? <html> <head> <title>Rider Survey</title> <link rel="stylesheet" type="text/css"...
121
by: jacob navia | last post by:
Hi guys I have written this small parser to print out the functions defined in a C file. This is an example of parsing in C, that I want to add to my tutorial. Comments (and bug reports) are...
2
by: SamuelXiao | last post by:
Here is the error, and the program run no problem in VC++; Compiler: Default compiler Building Makefile: "H:\CS2332\Summer\STL001\Makefile.win" Executing make... make.exe -f...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.