需要一个项目的想法 [英] Need ideas for a project

查看:75
本文介绍了需要一个项目的想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创意或一些建议才能开始一个新项目,我必须找到一种方法,如何在ASP.Net C中编辑/覆盖页面内容#



假设我在页面中有n个控件,并且1个链接按钮(或按钮)在页面中以编辑模式进入,换句话说,当我单击该按钮时(页面中的某些控件和其他内容)将有一个按钮(或链接按钮)靠近它,显示编辑...当我点击该按钮弹出显示文本框来编辑/更改该组控件的文本属性,然后执行更改或取消...



这是我的想法,我必须对我要在页面中编辑的所有控件或事物这样做,请帮助我有想法或方法去做...谢谢!

Well I need ideas or some advices to start a new project, I have to find a way of how "edit/overwrite" the content of a page in ASP.Net C#

Suppose I have n controls in the page and 1 link button(or button) that turns in "edit mode" the page, in other words, when I click that button (some controls and other things in the page) will have a button(or link button) near it that says "Edit"...when I click that button a pop out show up with textbox to edit/change the text properties of that set of controls, then "do the changes" or cancel...

And that's my idea, I have to do that to all the controls or things I want to be "edited" in the page, please help me with ideas or ways to do it...thanks!

推荐答案

首先,看看Crazy Cool Javascript Hacks中的Crazy Hack 1页面: https://bhuvans.wordpress.com/2007/01 / 22 / crazy-cool-javascript-hacks [ ^ ]。



简单,不是吗?只有你自己可以首先在你的页面上打开它。



现在,它说:当然你无法保存它。但是当然你可以让你自己的页面这样做。例如,您可以序列化所有新内容,使用Ajax将其发送回服务器端,并在服务器端执行任何您想要的操作 - 这是ASP.NET。



-SA
To start with, look at the "Crazy Hack 1" at the "Crazy Cool Javascript Hacks" page: https://bhuvans.wordpress.com/2007/01/22/crazy-cool-javascript-hacks[^].

Simple, isn't it? Only you can "turn it on" on your page yourself in first place.

Now, it says: "of course you cannot save it back". But of course you can make your own page to do so. For example, you can serialize all the new content, send it back to the server side using Ajax and do whatever you want with it on the server side — this is ASP.NET.

—SA






假设您有10个文本框你的页面。您想在控制页面中启用编辑。为此你可以制作一个模板(可能是一个单独的div,包含编辑数据的控件),它将包含同一页面的模板,页面中有一些额外的按钮,将控件的数据更新到数据库或文件系统。无论您想要编辑哪些控件,都可以在模板中进行编辑,在提交后您可以更新数据。



您可以使用一些 CSS 使其看起来像编辑弹出界面。希望这是一个非常简单的实施方案。



谢谢

Sisir Patro
Hi,

lets assume you are having 10 textboxes in your page. You want to make the edit enabled in your control page. For that you can make a template (May be a separate div containing the controls to edit the data) which will contain the template of the same page with some extra buttons there in the page which will update the control's data to the database or file system. Whatever the controls you want to edit you can make it editable in the template and on submit you can update the data.

You can use some CSS to make it look like a edit pop up like interface. Hope this is a very simple solution to implement.

Thanks
Sisir Patro


这篇关于需要一个项目的想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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