如何使用Web应用程序创建实时XML编辑器。 [英] How to create a live XML editor using web application.

查看:70
本文介绍了如何使用Web应用程序创建实时XML编辑器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我有一项任务。我需要在Asp.net或Asp.net MVC中创建一个XML编辑器。

这个Web应用程序将用于XML编辑器。它会有XML行为。



例如。当我们输入开始标记< xml>它会像Notepad ++一样输入结束标记。那么,我需要区分XML节点,属性和&它的价值观以不同的颜色。



是否有可能使用Asp.net(或MVC)开发网络应用程序



我尝试了什么:



我没有资源可以尝试,我是asp.net的新人

Hi Friends,
I have one task. I need to create an XML editor in Asp.net or Asp.net MVC.
This web application would be used for XML editor. It would have XML behaviors.

For example. when we type the opening tag <xml> it will type the closing tag like Notepad++. then, I need to differentiate XML node, attributes & its values in different colors.

Is there any possibility to develop web app using Asp.net (or MVC)

What I have tried:

I have no source to try, i am new one to asp.net

推荐答案

我有一些消息,我害怕。您将要完成的大部分工作都将使用JavaScript;客户端是你将要做的大部分工作,因为你不想在每次输入内容时都保持绊倒。
I have some news for you I'm afraid. Most of the work you're going to have to do will be in JavaScript; it's the client side that you're going to be doing most of the work as you don't want to keep round tripping every time you type something.


ASP.NET代码完全运行服务器 - 从不在客户端。它处理所有服务器操作并生成要发送给客户的网页。



编辑器,就像你所描述的那样,必须用javascript编写才能在客户端做任何事情。您的ASP.NET代码唯一要做的就是使用这个编辑器提供的功能是为服务器上的编辑器加载和保存文件和/或对客户端编写的XML进行一些处理。
ASP.NET code runs entirely server-side, never on the client. It handles all of your server operation and generates web pages to send to your clients.

Editors, like you're describing, have to be written in javascript in order to do anything on the client. The only thing your ASP.NET code is going to do with this editor is possibly provide functionality to load and save files for the editor on the server and/or do some processing on the XML the client writes.

这篇关于如何使用Web应用程序创建实时XML编辑器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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