产品编辑页面 使联动的DropDownList1 DropDownList2显示原来显示的值

 产品编辑页面 使联动的DropDownList1 DropDownList2显示原来显示的值

 

                string bb = reader["bigclass"].ToString().Trim();
                string ss = reader["smallclass"].ToString().Trim();
                      //  this.DropDownList1.Items.FindByValue(bb).Selected = true;
                      //  this.DropDownList2.Items.FindByValue(ss).Selected = true;
                DropDownList1.SelectedValue=bb;
                DropDownList2.SelectedValue=ss;

DropDownList1可以显示 DropDownList2不可以,请求帮忙,非常感谢
AI实战-仿真交易欺诈行为分类数据集分析预测实例(含10个源代码+419.69 KB完整的数据集) 代码手工整理,无语法错误,可运行。 包括:10个代码,共49.42 KB;数据大小:1个文件共419.69 KB。 使用到的模块: pandas os sklearn.model_selection.train_test_split sklearn.ensemble.RandomForestClassifier sklearn.metrics.classification_report imblearn.over_sampling.SMOTE sklearn.linear_model.LogisticRegression sklearn.metrics.accuracy_score datetime.datetime sklearn.svm.SVC seaborn sklearn.preprocessing.StandardScaler sklearn.preprocessing.OrdinalEncoder sklearn.compose.ColumnTransformer imblearn.pipeline.Pipeline numpy matplotlib.pyplot statsmodels.formula.api sklearn.model_selection.StratifiedKFold sklearn.metrics.roc_auc_score contextlib pickle sklearn.pipeline.Pipeline sklearn.preprocessing.OneHotEncoder sklearn.preprocessing.PowerTransformer torch torch.nn torch.nn.BCELoss torch.optim.Adam warnings scipy.stats.normaltest scipy.stats.chi2_contingency wolta.data_tools.col_types wolta.data_tools.seek_null wolta.data_tools.unique_amounts wolta.feature_tools.list_deletings wolta.data_tools.make_numerics wolta.data_tools.stat_sum wolta.data_tools.corr_analyse collections.Counter wolta.model_tools.compare_models wolta.model_tools.get_best_model sklearn.metrics.confusion_matrix sklearn.metrics.ConfusionMatrixDisplay sklearn.ensemble.GradientBoostingClassifier xgboost sklearn.model_selection.GridSearchCV sklearn.preprocessing.LabelEncoder sklearn.ensemble.StackingClassifier sklearn.metrics.roc_curve plotly.express wordcloud.WordCloud wordcloud.STOPWORDS
AI实战-阿尔茨海默氏病患者的健康信息数据集分析预测实例(含17个源代码+591.06 KB完整的数据集) 代码手工整理,无语法错误,可运行。 包括:17个代码,共143.32 KB;数据大小:1个文件共591.06 KB。 使用到的模块: numpy pandas os seaborn matplotlib.pyplot sklearn.model_selection.train_test_split sklearn.ensemble.RandomForestClassifier sklearn.metrics.accuracy_score sklearn.metrics.confusion_matrix sklearn.metrics.classification_report sklearn.preprocessing.LabelEncoder sklearn.preprocessing.StandardScaler warnings sklearn.svm.SVC mealpy.GA mealpy.Problem sklearn.neural_network.MLPClassifier mealpy.BinaryVar sklearn.exceptions.ConvergenceWarning IPython.display.clear_output sklearn.utils.resample sklearn.compose.ColumnTransformer sklearn.pipeline.Pipeline sklearn.preprocessing.PowerTransformer sklearn.decomposition.PCA sklearn.linear_model.LogisticRegression sklearn.metrics.precision_score sklearn.metrics.recall_score sklearn.metrics.f1_score sklearn.preprocessing.MinMaxScaler sklearn.metrics.ConfusionMatrixDisplay sklearn.model_selection.RepeatedKFold sklearn.model_selection.cross_val_score sklearn.model_selection.RandomizedSearchCV xgboost.XGBClassifier tensorflow pickle plotly.express plotly.subplots.make_subplots plotly.graph_objects sklearn.model_selection.GridSearchCV sklearn.model_selection.cross_validate sklearn.tree.DecisionTreeClassifier yellowbrick.classifier.ClassPredictionError yellowbrick.classifier.ROCAUC yellowbrick.classifier.ConfusionMatrix sklearn.ensemble.GradientBoostingClassifier lightgbm.LGBMClassifier catboost.CatBoostClassifier imblearn.under_sampling.RandomUnderSampler imblearn.over_sampling.RandomOverSampler sklearn.metrics.matthews_corrcoef optuna torch torch.nn torch.optim imblearn.pipeline.Pipeline imblearn.over_sampling.SMOTE sklearn.ensemble.AdaBoostClassifier sklearn.neighbors.KNeighborsClassifier sklearn.discriminant_analysis.LinearDiscriminantAnalysis sklearn.pipeline.make_pipeline collections.Counter sklearn.preprocessing.OneHotEncoder sklearn.model_selection.cross_val_predict sklearn.metrics.precision_recall_curve sklearn
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值