|
Subject:
|
Help in Visual Web Developer
|
|
Posted By:
|
carswelljr
|
Post Date:
|
9/13/2006 3:19:11 PM
|
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_SelectedIndexChanged1"> </asp:DropDownList>
thanks
|
|