为什么会出现ddlstate_changed不是asp.bid_aspx的成员的
错误
下面是要利用dropdownlist实现两联的控件:
我只打了一部份的
代码
这是html设计
页面里的定义:
在aspx.vb中: Publice Sub ddlstate_changed(sender as object,e as eventargs) Dim dbconn as sqlconnection Dim dbcommand as sqldataadapter Dim dspagedata as new dataset Dbconn = new sqlconnection(“server=localhost; uid=sa;pwd=secret;database=internetdb”) DBCommand= new sqldataadapter(“select distinct city from stores where state=’”&ddlstates.selecteditem.text&”’”,DBConn) DBCommand.Fill(DSPageData,”Cities”) ddlCities.DataSource= DSPageData.Talbles(“Cities”).DefaultView ddlCities.DataBind() ddlCities.Visible= True end sub 但它老是说我ddlstate_changed不是asp.bid_aspx的成员的错误,我是新手来的,要交毕业设计呀!请各位大虾,高手帮帮我这个忙呀… __________________________________________________________________________ 虽然是0分,但还是希望各位帮个忙…..感激不尽呀! 我在网上找过很多方法,也跟着修改了…但还是没用…. 是不是还要设置什么东东呀? __________________________________________________________________________
原文链接:https://www.f2er.com/vb/263704.html