• 2022-06-01 问题

    DropDownList控件通过DataSource属性设置数据源,再通过DataBind方法显示数据,这种方法通常不需要连接数据库。

    DropDownList控件通过DataSource属性设置数据源,再通过DataBind方法显示数据,这种方法通常不需要连接数据库。

  • 2022-07-01 问题

    下列关于Web服务端DropDownList控件的说法不正确的是()。 A: DropDownList控件显示为下拉列表框 B: DropDownList控件只能实现单选 C: DropDownList控件的选项中可以有默认选项 D: DropDownList控件的选项不能动态设定

    下列关于Web服务端DropDownList控件的说法不正确的是()。 A: DropDownList控件显示为下拉列表框 B: DropDownList控件只能实现单选 C: DropDownList控件的选项中可以有默认选项 D: DropDownList控件的选项不能动态设定

  • 2022-06-07 问题

    在使用C3P0数据源时,能够正确得到DataSource实例对象的代码是() A: DataSource ds = new ComboPooledDataSource(); B: DataSource ds = new ComboPooledDataSource(String name); C: ComboPooledDataSource ds = new DataSource (String name); D: ComboPooledDataSource ds = new DataSource ();

    在使用C3P0数据源时,能够正确得到DataSource实例对象的代码是() A: DataSource ds = new ComboPooledDataSource(); B: DataSource ds = new ComboPooledDataSource(String name); C: ComboPooledDataSource ds = new DataSource (String name); D: ComboPooledDataSource ds = new DataSource ();

  • 2022-10-27 问题

    DropDownList控件只能单选。

    DropDownList控件只能单选。

  • 2022-06-01 问题

    在Java Web应用程序中,下列()选项中的代码能够正确实现使用数据源(DataSource)获取数据库连接对象(数据源名称为dsname)。 A: A DataSource soure = new DataSource( ) ; Connection conn = source.getConnection( ); B: B Context source = new InitalContext( ); Connection conn = source.getConnection( ); C: C Context ctx = new InitalContext( ); DataSource ds = (DataSource) ctx.lookup("java:comp/env/dsname"); Connection conn =ds.getConnection( ); D: D Context ctx = new InitalContext ( ); DataSource ds = (DataSource) ctx.lookup("dsname"); Connection conn = ds.getConnection( );

    在Java Web应用程序中,下列()选项中的代码能够正确实现使用数据源(DataSource)获取数据库连接对象(数据源名称为dsname)。 A: A DataSource soure = new DataSource( ) ; Connection conn = source.getConnection( ); B: B Context source = new InitalContext( ); Connection conn = source.getConnection( ); C: C Context ctx = new InitalContext( ); DataSource ds = (DataSource) ctx.lookup("java:comp/env/dsname"); Connection conn =ds.getConnection( ); D: D Context ctx = new InitalContext ( ); DataSource ds = (DataSource) ctx.lookup("dsname"); Connection conn = ds.getConnection( );

  • 2021-04-14 问题

    关于DropDownList说法错误的是()

    关于DropDownList说法错误的是()

  • 2022-06-01 问题

    (4-2)DataSource是Factory类型,可以调用DataSource的方法()获得数据库连接。 A: Delegate B: Factory C: connect D: getConnection

    (4-2)DataSource是Factory类型,可以调用DataSource的方法()获得数据库连接。 A: Delegate B: Factory C: connect D: getConnection

  • 2021-04-14 问题

    如图,是ASP.NET中的一个DropDownList控件,已知该控件的AutoPostBack属性、EnableViewState属性都为True,该控件所在的页面的部分代码如下,在图示状态下,用户单击关羽项后,在页面的输出结果是()。2、ProtectedSystem..Web.UI.WebControls.DropDownListDropDownList1;ProtectedSystem..Web.UI.WebControls.ButtonButton1;stringname=”诸葛亮”;privatevoidPage_load(Objectsender,System.EventArgse){if(!this.IsPostBack){string[]names=newstring[]{“张飞”,”关羽”,”刘备”}this.DropDownList1.DataSource=names;this.DataBind();}}PrivatevoidDropDownList1_SelectedIndexChanged(objectsender,System.EventArgse){If(this.DropDowmList1.SelectedItem!=null){name=this.DropDownList1.SelectedItem.Text;}Response.Write(name)}

    如图,是ASP.NET中的一个DropDownList控件,已知该控件的AutoPostBack属性、EnableViewState属性都为True,该控件所在的页面的部分代码如下,在图示状态下,用户单击关羽项后,在页面的输出结果是()。2、ProtectedSystem..Web.UI.WebControls.DropDownListDropDownList1;ProtectedSystem..Web.UI.WebControls.ButtonButton1;stringname=”诸葛亮”;privatevoidPage_load(Objectsender,System.EventArgse){if(!this.IsPostBack){string[]names=newstring[]{“张飞”,”关羽”,”刘备”}this.DropDownList1.DataSource=names;this.DataBind();}}PrivatevoidDropDownList1_SelectedIndexChanged(objectsender,System.EventArgse){If(this.DropDowmList1.SelectedItem!=null){name=this.DropDownList1.SelectedItem.Text;}Response.Write(name)}

  • 2022-06-01 问题

    DataSource对象,可以通过创建实例的方法来获得,也可以利用Java的JNDI来获得DataSource对象的引用。

    DataSource对象,可以通过创建实例的方法来获得,也可以利用Java的JNDI来获得DataSource对象的引用。

  • 2021-04-14 问题

    ASP.NET中,以下对DropDownList服务器控件描述错误的是()

    ASP.NET中,以下对DropDownList服务器控件描述错误的是()

  • 1 2 3 4 5 6 7 8 9 10