如何从.Aspx.Cs获取动态控制值 [英] How Do I Get The Dynamic Control Value From .Aspx.Cs

查看:102
本文介绍了如何从.Aspx.Cs获取动态控制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我使用.ascx页面创建了一个动态控件,如下所示



使用.ascx页面进行动态控制



但我无法获得这些盒子的价值。

我如何获得控件的价值,并从aspx访问页面锄头。 />


谢谢,

-KingFisher

解决方案

您必须创建用于分配的属性并从自定义控件获取值

hi,

I have created a Dynamic control using .ascx page like the below

Dynamic control using .ascx page

but i couldn't get the value of those boxes.
how do i get the value of the controls and hoe to access the page from aspx.

Thanks,
-KingFisher

解决方案

You have to create Properties for assigning and getting values from custom control


这篇关于如何从.Aspx.Cs获取动态控制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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