Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: BC30451: Name 'DsDetach1' is not declared


Message #1 by "Mich Lang" <mlang11@h...> on Mon, 30 Dec 2002 14:29:32
I am new to ASP .NET programming and am having problems creating a drop 
down list. I get the below error:

Compiler Error Message: BC30451: Name 'DsDetach1' is not declared.

DsDetach is declared in the aspx.vb file as:

Public WithEvents DsDetach1 As WebApplication1.dsDetach

The HTML code is that seems to be the problem is:

<asp:dropdownlist id=ddlDetach 
style="Z-INDEX: 102; LEFT: 256px; POSITION: absolute; TOP: 30px" 
runat="server" 
Width="243px" 
Height="31px" 
DataSource="<%# DsDetach1 %>" 
DataTextField="HomeLocationCode" 
DataMember="tblUserProfile" 
AutoPostBack="True">
</asp:dropdownlist>

From what I have uncovered, the DataSource tags have been prefixed and 
suffixed by the symbol %, and it did not have a corresponding closing tag. 
More can be read about his at 
http://www.vijaymukhi.com/documents/books/aspnet1/chap1.htm (around page 
4). The solution to use response.write doesn't work for me as I am not 
sending text. I am sending a datasource that is set at run time and can 
not be declared. 

Any help would be greatly appreciated. Thanks in advance.

  Return to Index