943,576 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1464
  • ASP.NET RSS
Jun 22nd, 2008
0

Not declare???

Expand Post »
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?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
evios is offline Offline
60 posts
since Sep 2007
Jun 23rd, 2008
0

Re: Not declare???

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:
ASP.NET Syntax (Toggle Plain Text)
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

What does that mean?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
evios is offline Offline
60 posts
since Sep 2007
Jun 23rd, 2008
0

Re: Not declare???

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.
Reputation Points: 12
Solved Threads: 2
Newbie Poster
raj416 is offline Offline
14 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: how to run asp.net pages using apache
Next Thread in ASP.NET Forum Timeline: http error 404





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC