目前分類:C Sharp AspNET (3)

瀏覽方式: 標題列表 簡短摘要

http://dotnetzip.codeplex.com/wikipage?title=CS-Examples&referringTitle=Examples

http://cheeso.members.winisp.net/DotNetZipHelp/frames.htm

http://blog.miniasp.com/?tag=/dotnetzip


meltdown 發表在 痞客邦 留言(0) 人氣()

http://blog.xuite.net/chu.hsing/Think/28197893

 

 

在Web的環境下,一個網站會同時被兩岸的使用者使用已經不是什麼了不起的大事,前陣子有遇到有人是透過override Render這個function來達到整個頁面文字的簡繁互換,但那個作法最後評估後覺得太耗費效能,加上我們的產品本身就已經有作UI的多國語言,因此也不需要做到那麼複雜,但有一天使用者提了一個需求,希望輸入簡體字可以查到繁體的資料,聽起來挺合理的,隔沒兩天,我們也真的把他給完成了,哈哈,在網路上雖然查到幾種解決方案,但最後我們決定採用OS本身提供的dll元件來進行簡繁互換,改class的source如下:

using System.Runtime.InteropServices;

meltdown 發表在 痞客邦 留言(0) 人氣()

http://www.dotblogs.com.tw/puma/archive/2008/03/02/1131.aspx

 

WebPageTranslate.aspx

   1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebPageTranslate.aspx.cs" Inherits="WebPageTranslate" %>
   2:   
   3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   4:   
   5:  <html xmlns="http://www.w3.org/1999/xhtml" >
   6:  <head runat="server">
   7:      <title>WebPageTranslate</title>
   8:  </head>
   9:  <body>
  10:      <form id="form1" runat="server">
  11:      <div>
  12:          <asp:TextBox ID="TextBox1" runat="server" Width="500px">http://www.dotblogs.com.tw/puma/archive/2008/03/02/1126.aspx</asp:TextBox>
  13:          <br />
  14:          <asp:DropDownList ID="DropDownList1" runat="server">
  15:              <asp:ListItem Value="1">Microsoft(繁-英)</asp:ListItem>
  16:              <asp:ListItem Value="2">Google(繁-英)</asp:ListItem>
  17:              <asp:ListItem Value="3">Google(繁-簡)</asp:ListItem>
  18:          </asp:DropDownList>
  19:          <asp:Button ID="Button1" runat="server" Text="翻譯" OnClick="Button1_Click" /></div>
  20:      </form>
  21:  </body>
  22:  </html>

WebPageTranslate.aspx.cs

meltdown 發表在 痞客邦 留言(0) 人氣()