Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
| Search | Today's Posts | Mark Forums Read
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 13th, 2006, 03:18 PM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server 2005 using Visual Web Developer

Good afternoon,
I am writing a web application using visual web developer and while trying to create a dynamic dropdown using the SqlDataSource i am getting these errors when i try to correct either one:
'SqlDataSource1_Selecting' is not a member of 'ASP.testdirectortest_aspx

and

Control 'DropDownList1' of type 'DropDownList' must be placed inside a form tag with runat=server.

Anyone ever seen this before?
Here is the code i am trying to use:
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:test1ConnectionString %>"
              OnSelecting="SqlDataSource1_Selecting" SelectCommand="SELECT [TEST_FACILITY] FROM [Test_Facility_Data]">
          </asp:SqlDataSource>
          <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2"
              DataTextField="TEST_FACILITY" DataValueField="TEST_FACILITY" OnSelectedIndexChanged="DropDownList1_SelectedInde xChanged1">
          </asp:DropDownList>

thanks



  #2 (permalink)  
Old September 14th, 2006, 12:43 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Wellington, FL , USA.
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

carswell, this might be a question for the asp and asp.net forum. Have you posted your question there?



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send e-mail by Visual Web Developer 2005 dipanjan22 ASP.NET 1.x and 2.0 Application Design 13 August 5th, 2007 09:16 AM
Visual Web Developer 2005 dipanjan22 ASP.NET 1.x and 2.0 Application Design 2 July 12th, 2007 12:22 AM
visual web developer 2005 carswelljr VB How-To 2 September 13th, 2006 03:40 PM
Microsoft Visual Web Developer 2005 Express Editio FT BOOK: ASP.NET Website Programming Problem-Design-Solution 10 April 24th, 2006 12:25 AM
SQL Server 2005 Express with Visual Web Developer steffteo SQL Server 2005 1 March 19th, 2006 04:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.