如何在运行时或动态或运行时添加Web控件 [英] how to add web controls at run time or dynamically or at run time

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

问题描述

让我们说我想让用户上传文件,我也希望允许他们上传文件的次数不超过5次.我想为用户提供一个按钮,使他们可以根据需要将文件上传框动态添加到页面,然后将这些上传文件保存在文件夹中(在服务器上).

这个怎么做 .请提供指南图或小示例,例如视频链接将对整个帮助有所帮助

anoop

let us say i want to let user to upload files , i also want to allow them to upload files not more then 5 times. i want to give a user a button which would allow them to dynamically add file upload boxes to the page as they want and then save those upload files in folder (on sever).

how to do this . please provide a guide map or small eg or video link would be help full

anoop

推荐答案

您的想法对我来说似乎有些陌生,但是,这里有一些有关如何动态添加控件的链接-
http://www.asp.net/ajax/video/how-to-dynamically-add-controls-to-a-网页 [ http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service. aspx [ http://support.microsoft.com/kb/317794 [
Your idea seems a little strange to me, but nonetheless, here are a few links on how to add controls dynamically -
http://www.asp.net/ajax/videos/how-to-dynamically-add-controls-to-a-web-page[^]
http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/22/Dynamically-create-ASP.NET-user-control-using-ASP.NET-Ajax-and-Web-Service.aspx[^]
http://support.microsoft.com/kb/317794[^]


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

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