The type already contains a definition for 'Zehut'

The problem exists on my editme.aspx page.

Error 1 The type 'editme' already contains a definition for 'Zehut' C:\Documents and Settings\Itay.ITAYB-5A14B8105\My Documents\Visual Studio 2008\WebSites\WebSite2\editme.aspx.cs 110 20 C:\...\WebSite2\
Error 3 Ambiguity between 'editme.Zehut' and 'editme.Zehut(object, System.Web.UI.WebControls.ServerValidateEventArgs)' C:\Documents and Settings\Itay.ITAYB-5A14B8105\My Documents\Visual Studio 2008\WebSites\WebSite2\editme.aspx.cs 44 13 C:\...\WebSite2\

I can't figure out where the second Zehut method is. This is the only zehut method in the whole file.

Here is the code: http://pastebin.com/xzDcg1RB

This happened quite unexpectedly. It worked fine for a month or so.

+3
source share
1 answer

You may have written a method Zehut, but there is a text field on the page Zehut(line 70 in aspx), this is a conflict.

+5
source

Source: https://habr.com/ru/post/1737685/


All Articles