在运行时从自定义ToolBox拖放ASP.NET控件? [英] Drag and Drop ASP.NET Controls at Runtime from a custom ToolBox ?

查看:63
本文介绍了在运行时从自定义ToolBox拖放ASP.NET控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试在ASP.Net中创建一个具有拖放功能的网页。此动态页面应满足以下要求。



1. Web表单应由网站用户在运行时使用asp.net服务器控件(如标签,文本框,按钮,下拉等



2.此模板信息应以XML格式保存,以备将来使用。



3.此保存的模板应该可供网站的所有用户/角色使用。



4.控件应支持在运行时在Web表单中调整大小,定位,拖放功能。



5.创建模板后,应保存asp.net控件中输入的数据并用于某些业务处理。



6.网络表格应具有丰富的最终用户体验。



7.我不能使用Silverlight。



请建议如何满足上述要求,表现良好。



谢谢,
Srinivas Akella

Hi All,

I am trying to create a web page with drag and drop functionality in ASP.Net. This dynamic page should meet following requirements.

1. The Web forms should be designed at runtime by the website user using asp.net server controls like Labels, Text Box, Button, Drop down etc.

2. This template information should be saved say in the form as XML for future usage.

3. This saved template should be available to all the users/roles of the website.

4. The controls should support resizing, positioning, drag and drop functionality in the web form at runtime.

5. After the creation of the template the entered data in the asp.net controls should be saved and used for some business processing.

6. The webform should have rich end user experience.

7. I cannot use Silverlight.

Please suggest the ways to meet the above, with good performance.

Thanks,
Srinivas Akella

推荐答案

为什么我知道您之前曾问过这个问题,但此帐户没有其他问题。



如果你不能使用silverlight,那么你将不得不写出大量的javascript,而你真的会在性能方面遇到困难。运行表单应该没问题,虽然我怀疑你会在动态创建的控件上使用viewstate,但设计师很可能真的很糟糕,性能明智。即使是最简单的JS运行,我的IE也会冻结。



为什么你需要这样做?你在javascript中有什么经验?什么回合ASP.NET?
Why is it that I know you asked this before, but there are no other questions associated with this account.

If you can't use silverlight, then you're going to have to write a ton of javascript, and you're going to really struggle with performance. Running the forms should be OK, although I suspect you'll struggle with viewstate on dynamically created controls, but the designer is likely to really suck, performance wise. My IE freezes when even the most simple JS is running.

Why do you 'need' to do this ? What experience do you have in javascript ? What bout ASP.NET ?


谢谢。



这是我的项目要求。

我没有Java Script的经验,但我擅长ASP.Net。



为什么我不能使用Silverlight,我的Web应用程序也应该在Linux环境中运行。



我准备好学习JS,但我不能在性能上妥协。我们可以使用ASP.Net Web部件来实现这个目标吗?



请告诉我这个过程。
Thanks.

This is my project requirement.
I do not have experience in Java Script but I am good at ASP.Net.

Why I cannot use Silverlight is my web application should run on Linux Environment also.

I am ready to learn JS but I cannot compromise on performance. Can we achive this using ASP.Net Web Parts?

Please tell me the process.


老兄 - 你搞砸了。告诉你的客户他们不会得到这个,而不是你。实现这一目标的唯一方法是通过javascript,我不相信任何AJAX或其他库都会有你需要的部分,所以你真的很想知道你的东西,即便如此,我我并不确定特别有可能以一种在所有平台上的所有浏览器上都能正常运行的方式来实现它。在写这篇文章时,有人可以学习javascript,IMO。
Dude - you are screwed. Tell your client that they are not going to get this, not from you. The only way to achieve this, is through javascript, and I don't believe that any AJAX or other library is going to have the parts you need, so you're REALLY going to have know your stuff, and even then, I'm not really sure that it's especially possible to do it in a way that is going to work well across all browsers on all platforms. There is zero chance that someone could 'learn javascript' while writing this, IMO.


这篇关于在运行时从自定义ToolBox拖放ASP.NET控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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