Em, i'd used ASP.NET for 1 month, but recently when i drag a control on .aspx interface, says DropDownList9, and in aspx.vb interface, i try to type DropDownList9, but it keeps saying i did not declare it. How can this happened? Any modification on ASPX interface seems doesnt link to .ASPX.VB. Any settings need to be change?

Recommended Answers

All 2 Replies

In my error list, it states that

'Context' is not a member of '_Default'.

And in my first line of ASP.NET, i found this:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

What does that mean?

in code behind file u need to have the class as below

Partial Class _Default
Inherits System.Web.UI.Page

End Class


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

Inherits="_Default" refers

inherits the code behind class file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.