Member names can not be the same

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asmx126453
    New Member
    • Sep 2008
    • 72

    Member names can not be the same

    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

    Code:
    <%@ Page language="c#" Inherits="DotNet.VerzamelbladOverzicht" debug="False" CodeFile="VerzamelbladOverzicht.aspx.cs" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    	<HEAD>
    		<title>VerzamelbladOverzicht</title>
    		<LINK href="style.css" type="text/css" rel="stylesheet">
    		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
    		<meta content="C#" name="CODE_LANGUAGE">
    		<meta content="JavaScript" name="vs_defaultClientScript">
    		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    		<script language="javascript" src="AlgemeneFuncties.js"></script>
    	</HEAD>
    	<body onload="InitCombobox(document.VerzamelbladOverzicht.txtKlant1, document.VerzamelbladOverzicht.DDLKlant1);">
    		<form id="VerzamelbladOverzicht" method="post" runat="server">
    			<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>
    			<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>
    			<br>
    			<br>
    			<table cellSpacing="1" cellPadding="0" width="60%">
    				<tr>
    					<td>Jaar:</td>
    					<td>Klant:</td>
    					<td>Aantal rijen:</td>
    					<td>Datum:</td>
    				</tr>
    				<tr>
    					<td><asp:dropdownlist id="DDLJaartal1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
    					<td><asp:textbox id="txtKlant1" runat="server" Width="247px" ontextchanged="txtKlant1_TextChanged"></asp:textbox></td>
    					<td><asp:dropdownlist id="DDLRecord1" runat="server" Width="90px" AutoPostBack="True"></asp:dropdownlist></td>
    					<td><asp:dropdownlist id="DDLDesc1" runat="server" AutoPostBack="True"></asp:dropdownlist></td>
    				</tr>
    			</table>
    			<br>
    			<table cellSpacing="1" cellPadding="0" width="90%">
    				<tr>
    					<th>
    						Datum</th>
    					<th>
    						klant</th>
    					<th>
    						Referentie</th>
    					<th>
    						Omschrijving</th></tr>
    						<tr>
    				<td><span id="TableSpan" runat="server"></span></td>
    				</tr>
    				<tr>
    					<td align="right" colSpan="4">&nbsp;</td>
    				</tr>
    			</table>
    		</form>
    	</body>
    </HTML>
    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
    Last edited by asmx126453; Oct 9 '08, 10:03 AM. Reason: srry i put it in the wrong forum head again
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    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

    Comment

    Working...