asp.net中的Web Usercontrol [英] Web Usercontrol in asp.net

查看:53
本文介绍了asp.net中的Web Usercontrol的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们开发了一个用户控件,其中有不同的控件,其中选择下拉列表和复选框列表。如何调用页面中的下拉列表选择值。

We have developed a user control where there is the different control in it, Where by selecting dropdown and checkbox list.How to call dropdown selected value in a page.

推荐答案

Dropdownlist ddlsa=(dropdownlist)this.usercontrolname.FindControl("dropdownlistid");



lbltext.Text = ddlsa.selectedValue;




lbltext.Text=ddlsa.selectedValue;



Dropdownlist ddlsa=(dropdownlist)this.usercontrolname.FindControl("dropdownlistid");

lbltext.Text=ddlsa.selectedValue;


这篇关于asp.net中的Web Usercontrol的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆