User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,045 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,513 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 226 | Replies: 2
Reply
Join Date: Sep 2007
Posts: 59
Reputation: evios is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
evios evios is offline Offline
Junior Poster in Training

Not declare???

  #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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Posts: 59
Reputation: evios is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
evios evios is offline Offline
Junior Poster in Training

Re: Not declare???

  #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:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

What does that mean?
Reply With Quote  
Join Date: Jan 2008
Posts: 13
Reputation: raj416 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
raj416 raj416 is offline Offline
Newbie Poster

Re: Not declare???

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 11:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC