简体   繁体   English

如何在asp.net中创建带有动态控件的页面? 如何定义控件集合?

[英]How to create a page with dynamic controls in asp.net? How can I define a control collection?

In my ASP.NET web application project I want to create a page with dynamic controls. 在我的ASP.NET Web应用程序项目中,我想创建一个带有动态控件的页面。 Please see the details. 请查看详细信息。 I have aa Page named AddNotificationParameters.aspx. 我有一个名为AddNotificationParameters.aspx的页面。 While passing a querystring parameter to this page it needs to load controls based on the querystring. 在将querystring参数传递到此页面时,它需要基于querystring加载控件。 The controls will be different based on the querystring parameter. 根据querystring参数,控件将有所不同。 What is the best approach to handle these types of scenario. 什么是处理此类情况的最佳方法。 Pls advice 请咨询

Use a gridview or repeater and bind the data to it. 使用gridview或Repeater并将数据绑定到它。 Then you can generate dynamic controls using it. 然后,您可以使用它生成动态控件。 This is just a vague idea. 这只是一个模糊的想法。 Please post more details for getting an exact idea. 请发布更多详细信息以获取确切的想法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建动态页面? Javascript还是ASP.NET? - How can I create dynamic pages? Javascript or ASP.NET? 我可以在asp.net服务器控件的嵌入javascript文件中定义一个函数来访问Page Load事件吗? - Can I define a function in embeded javascript file of a asp.net server control to access Page Load event? 如何在ASP.NET中保持动态控件的状态? - How to keep the state of dynamic controls in ASP.NET? 如何将onclick添加到asp.net中的通用控件? - How can I add an onclick to a generic control in asp.net? 我如何使JavaScript在ASP.NET控件上工作? - How can i make javascript work on asp.net control? 如何在ASP.NET c#中加载页面之前获取动态创建控件的值 - How to get the value of dynamic created control before page load in ASP.NET c# 使用Javascript的ASP.NET Web用户控件在页面上多次使用 - 如何使javascript函数指向正确的控件 - ASP.NET Web User Control with Javascript used multiple times on a page - How to make javascript functions point at the correct controls 如何在ASP.NET页中实现倒数计时器? - How can I implement a countdown timer in an ASP.NET page? 如何在Javascript中引用ASP.NET控件? - How do I refer to ASP.NET Controls in Javascript? 如何在 ASP.NET 控制 page.ascx 中创建下拉菜单,其中 no: 菜单中的项目动态变化 - How to create a drop down menu in an ASP.NET control page .ascx with the no: of items in the menu changing dynamically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM