Not declare???

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 60
Reputation: evios is an unknown quantity at this point 
Solved Threads: 0
evios evios is offline Offline
Junior Poster in Training

Not declare???

 
0
  #1
Jun 22nd, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 60
Reputation: evios is an unknown quantity at this point 
Solved Threads: 0
evios evios is offline Offline
Junior Poster in Training

Re: Not declare???

 
0
  #2
Jun 23rd, 2008
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:
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

What does that mean?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 14
Reputation: raj416 is an unknown quantity at this point 
Solved Threads: 2
raj416 raj416 is offline Offline
Newbie Poster

Re: Not declare???

 
0
  #3
Jun 23rd, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC