473,835 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Member names can not be the same

72 New Member
hey guys next question :p

its about the member names that the cant be the same the precies error is this

'VerzamelbladOv erzicht': member names cannot be the same as their enclosing type

its about this page VerzamelbladOve rzicht.aspx

Expand|Select|Wrap|Line Numbers
  1. <%@ Page language="c#" Inherits="DotNet.VerzamelbladOverzicht" debug="False" CodeFile="VerzamelbladOverzicht.aspx.cs" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4.     <HEAD>
  5.         <title>VerzamelbladOverzicht</title>
  6.         <LINK href="style.css" type="text/css" rel="stylesheet">
  7.         <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  8.         <meta content="C#" name="CODE_LANGUAGE">
  9.         <meta content="JavaScript" name="vs_defaultClientScript">
  10.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11.         <script language="javascript" src="AlgemeneFuncties.js"></script>
  12.     </HEAD>
  13.     <body onload="InitCombobox(document.VerzamelbladOverzicht.txtKlant1, document.VerzamelbladOverzicht.DDLKlant1);">
  14.         <form id="VerzamelbladOverzicht" method="post" runat="server">
  15.             <P><SPAN id="span2" runat="server"></SPAN><asp:button id="btnDoNix" style="Z-INDEX: 103; LEFT: 12px; POSITION: absolute; TOP: 33px" runat="server" Width="1px" Height="1px" BackColor="#567C9C" BorderColor="#567C9C" onclick="btnDoNix_Click"></asp:button><asp:label id="lblHead" runat="server" Font-Size="Medium" ForeColor="White" Font-Bold="True">Verzamelbladen</asp:label><asp:dropdownlist id="DDLKlant1" style="Z-INDEX: 102; LEFT: 221px; POSITION: absolute; TOP: 14px" runat="server" Width="246px" onselectedindexchanged="DDlKlant1_SelectedIndexChanged"></asp:dropdownlist></P>
  16.             <P><asp:imagebutton id="imgbtnToevoegen" runat="server" ImageUrl="images/toevoegen.gif"></asp:imagebutton><asp:button id="btnReset" style="Z-INDEX: 101; LEFT: 12px; POSITION: absolute; TOP: 104px" runat="server" Text="Reset" BackColor="Red" BorderColor="Red" onclick="btnReset_Click"></asp:button></P>
  17.             <br>
  18.             <br>
  19.             <table cellSpacing="1" cellPadding="0" width="60%">
  20.                 <tr>
  21.                     <td>Jaar:</td>
  22.                     <td>Klant:</td>
  23.                     <td>Aantal rijen:</td>
  24.                     <td>Datum:</td>
  25.                 </tr>
  26.                 <tr>
  27.                     <td><asp:dropdownlist id="DDLJaartal1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  28.                     <td><asp:textbox id="txtKlant1" runat="server" Width="247px" ontextchanged="txtKlant1_TextChanged"></asp:textbox></td>
  29.                     <td><asp:dropdownlist id="DDLRecord1" runat="server" Width="90px" AutoPostBack="True"></asp:dropdownlist></td>
  30.                     <td><asp:dropdownlist id="DDLDesc1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
  31.                 </tr>
  32.             </table>
  33.             <br>
  34.             <table cellSpacing="1" cellPadding="0" width="90%">
  35.                 <tr>
  36.                     <th>
  37.                         Datum</th>
  38.                     <th>
  39.                         klant</th>
  40.                     <th>
  41.                         Referentie</th>
  42.                     <th>
  43.                         Omschrijving</th></tr>
  44.                         <tr>
  45.                 <td><span id="TableSpan" runat="server"></span></td>
  46.                 </tr>
  47.                 <tr>
  48.                     <td align="right" colSpan="4">&nbsp;</td>
  49.                 </tr>
  50.             </table>
  51.         </form>
  52.     </body>
  53. </HTML>
  54.  
I have been looking for my self and probely i get the error becase i use in the inherits en codefile the name VerzamelbladOve rzicht and also use it in body onloud and form ID but becase i need the span2 code in the span i cant use it in the body onload and form id anyone has a solotion on how i can keep the span 2 code in my span tag and my body onloud and form id keeps using VerzamelbladOve rzicht

Tanx
Oct 9 '08 #1
1 1585
Nepomuk
3,112 Recognized Expert Specialist
Correct me if I'm wrong, but that doesn't look like Java - there might be some JavaScript in there, but that's something else.

Should this be moved to another Forum for you?

Greetings,
Nepomuk
Oct 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

30
3513
by: Joost Ronkes Agerbeek | last post by:
Why is it allowed in C++ to call a static member function of an object through an instance of that object? Is it just convenience? tia, Joost Ronkes Agerbeek
22
2256
by: BRIAN VICKERY | last post by:
I've heard that some compilers reserve the '_' starting a symbol for system variables/symbols. I can not find this documented anywhere (so far). I've used an '_' at the end of member variables (ie. Uint16 bar_; ) to distinquish private fields, but this does not stand out as much as if the '_' were at the begginning of the name as in the following class declaration. class Foo { private: Uint16 _baz;
5
3139
by: Walter Tross | last post by:
Somebody with a very regulatory mind in this newsgroup has written that it's better not to use a leading underscore for class member names, because names with a leading underscore are used internally by compilers (well, not so internally, since they appear in header files). I personally use the leading underscore (followed by a lower case letter), which I consider to be much more readable than the trailing underscore. My reasoning is...
8
2106
by: Ares Lagae | last post by:
When adopting the coding style of the standard C++ library, you often run into naming problems because class names are lower case, and member functions do not have get/set prefixes. For example: - The class stringstream has a member function "string stringstream::str()". It would be more logical to name it "string stringstream::string()". - The class ios_base has a member function "locale ios_base::getloc()". It would be more logical to...
5
32730
by: Nik | last post by:
I keep getting the following error 'member names cannot be the same as their enclosing type' with the code below. public class HelpText { private string _textToDisplay; private string _cssClass; public string TextToDisplay { get {return _textToDisplay;}
2
7850
by: Mark Sisson | last post by:
Hi all. SITUATION ================ 1. I have a base class with a member variable that's an object 2. I have several classes that inherit from the base class. 3. There are several methods in the base class that modify the member variable 4. I would like to have the inherited classes override the member variable with a new var that's a subclass of the parent's member variable
6
4413
by: Bill Rubin | last post by:
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the same invocation from a DistantlyRelated class. What actually happened was that the compiler produced: error C2247: 'A::function' not accessible because 'CloselyRelated' uses 'private' to inherit from 'A' I'm guessing that the above compiler...
3
1458
by: Sambo | last post by:
By accident I assigned int to a class member 'count' which was initialized to (empty) string and had no error till I tried to use it as string, obviously. Why was there no error on assignment( near the end ). class Cgroup_info: group_name = "" count = "0" #last time checked and processed/retrieved first = "0" last = "" retrieval_type = "" # allways , ask( if more than some limit), none date_checked = ""
14
28180
by: deepak | last post by:
Hi Experts, I'm getting this compilation error while trying to access a member in structure. at what time we will get this error message? Thanks, Deepak
0
9810
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10526
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
10563
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
10237
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
9348
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
7770
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
6970
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
5808
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.