Click here to Skip to main content
14,607,949 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am working asp.net vb project.. i m stuck with following error message.. please help me.
BC30456: 'btnLogin_Click' is not a member of 'ASP.default_aspx'.
Posted
Comments
[no name] 17-Dec-13 0:44am
   
you have taken it as HTML button,i Guess
[no name] 17-Dec-13 0:48am
   
We need to check your code
Rate this:
Please Sign up or sign in to vote.

Solution 1

But for dummy solution Check
On your application the error was cause by the Inherits tag. Both of your child forms may the same Inherits "_Default". Then change one ...
Note: You have to change the Inherits tag in the .aspx and in the
related .vb files
Exemple .aspx :
<![CDATA[<% @ Page Language ="VB" MasterPageFile="~/Principal.master"
AutoEventWireup ="false" CodeFile="InventaireAccessoire.aspx.vb"
Inherits="_Default2" title="InventaireAccessoire" %>]]>

Exemple .vb :
Partial Class _Default2
Inherits System.Web.UI.Page
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Check if your Asp page has a button by the name btnLogin.
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

Check in your code with the sample below:

This goes in html content or .aspx

<asp:Button ID="cmdGet" runat="server" Text="View" CssClass="uiButton" OnClick="cmdGet_Click" Height="21px" Width="50px" />


This goes in code behind or .cs

protected void cmdGet_Click(object sender, EventArgs e)
{
         //your code goes here
}


If still you face problem, post your .aspx and .cs code that will help us to understand your problem better if we haven't yet:)

"Coding for passion..."
   
v2
Comments
Member 13894028 5-Feb-19 6:50am
   
Error 1 'cmd_Click' is not a member of 'ASP.default_aspx'.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100