页面中的多语言描述 [英] Multilingual descriptions in a page

查看:70
本文介绍了页面中的多语言描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在很沮丧.我一直在尝试在c#.net中复制我在经典asp中所做的事情,但是我没有设法获得任何可用的结果.

我要实现的目标可以在下面的屏幕截图中看到:

http://img718.imageshack.us/img718/3631/langeddescriptions.jpg [ ^ ]


使用经典的asp,这相当容易,因为我可以轻松地将javascript与html标记结合起来,并根据需要使用文本框值.

另外,语言不是固定的,我正在从数据库列表中加载可用的语言.

谁能提供最佳解决方案来执行此操作,因为我以前使用的javascript等以前的用法无法真正复制为.net解决方案?

谢谢

Hi, i am stumped right now. I''ve been trying to replicate something i have done in classic asp in c#.net, and i haven''t managed to get any usable result.

What i am trying to achieve can be seen in the screenshot below:

http://img718.imageshack.us/img718/3631/langeddescriptions.jpg[^]


With classic asp, this is fairly easy, as i can easily combine javascript with my html markup and use the textbox values as i need.

Also, languages are not fixed, i am loading the available languages from a database list.

Can anyone provide the best solution for carrying this out, since the previous usage of javascript etc. that i used cannot really be replicated for my .net solution?

Thank you

推荐答案

好.那么这个工作流程呢:
1.根据语言数量,定义图像和相应的编辑器/面板.确保默认情况下所有的都被隐藏,只有一个.
2.在动态创建图像时,将客户端事件附加到图像点击.
3.在客户端,在Javascript中,当单击时调用该方法,然后找到与图像有关的面板/编辑器,并将显示属性更改为可见.

这样,您就无需为编辑者发回邮件,也没有清晰的用户界面.
Ok. What about this workflow:
1. Based on the number of languages, define the images and corresponding editor/panel. Make sure by-default all are hidden but one.
2. While dynamically creating the image, attach a client side event to the image clicks.
3. On client side, in Javascript, when the method is invoked on click then find the panel/editor related to the image and change the display property to be visible.

This way, you have no postback for editors and a clean UI.


这篇关于页面中的多语言描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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