如何将下拉列表值从母版页添加到子页 [英] How to add the Dropdown value from masterpage to child page

查看:86
本文介绍了如何将下拉列表值从母版页添加到子页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道如何将下拉值分配给来自母版页的子页.

在此先感谢

Hi,

I want to know how to assign the dropdown value to the child page that comes from the master page.

Thanks in advance

推荐答案

在儿童时代写下以下代码.
Write the below code in the Child age.
int ddlVal = ((DropdownList)Master.FindControl("lblHead")).SelectedValue


这篇关于如何将下拉列表值从母版页添加到子页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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