954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Not declare???

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?

evios
Junior Poster in Training
60 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

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?

evios
Junior Poster in Training
60 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

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.

raj416
Newbie Poster
14 posts since Jan 2008
Reputation Points: 12
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You