访问动态添加的控件 [英] Access dynamically added controls

查看:51
本文介绍了访问动态添加的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友.
我有一个asp.net页面,并且已经通过javascript动态添加了一些html控件.如何从后面的asp.net代码访问这些html控件.

Hello friends.
I have an asp.net page and i have dynamically added some html controls to the page through javascript.How can I access those html control from asp.net code behind.
Any help will be very much appreciated

推荐答案

您可以通过以下代码在ASP.NET中添加没有Java脚本用户控制的内容:

You can add without java script user control in asp.net through this code :

Panel1.Controls.Add(LoadControl("~/Controls/UserControl1.ascx"))


这篇关于访问动态添加的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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