网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
oucreateapageinanASP.NETWebapplication.ThepageretrievesanddisplaysdatafromaMicrosoftSQLServerdatabase.Youneedtocreateadatasourcethatcanconnecttothedatabase.Whataretwopossiblewaystoachievethisgoal?()

A.UseanObjectDataSourcecontrolandsetitsTypeNamepropertyto System.Data.SqlClient.SqlConnection.

B.UseaSqlDataSourcecontrolandconfigureitsConnectionStringintheweb.configfile.

C.UseanXmlDataSourcecontroltogetherwithanXmlcontrolthatrepresentsthedatabase.

D.UseaLinqDataSourcecontrolwithentityclassesthatrepresenttheelementsinthedatabase.


参考答案

更多 “ oucreateapageinanASP.NETWebapplication.ThepageretrievesanddisplaysdatafromaMicrosoftSQLServerdatabase.Youneedtocreateadatasourcethatcanconnecttothedatabase.Whataretwopossiblewaystoachievethisgoal?() A.UseanObjectDataSourcecontrolandsetitsTypeNamepropertyto System.Data.SqlClient.SqlConnection.B.UseaSqlDataSourcecontrolandconfigureitsConnectionStringintheweb.configfile.C.UseanXmlDataSourcecontroltogetherwithanXmlcontrolthatrepresentsthedatabase.D.UseaLinqDataSourcecontrolwithentityclassesthatrepresenttheelementsinthedatabase. ” 相关考题