易截截图软件、单文件、免安装、纯绿色、仅160KB

Asp.net 使用资源文件实现双语言

公司交给我个项目,已经完成了一部分,需要做中英文双语言,以前听别人说程序多语言什么的,都不知道从哪下手得。项目架构已经搭好了,大概看了一下,知道是使用资源文件来实现的,不说了,赶紧自己试试吧。试了才会记住,才是自己的O(∩_∩)O~
 
1. 新建Asp.net Web应用程序ChangeLanuage,新建aspx页面Default.aspx页面转到Default.aspx页面,添加下控件在页面上:
   控件类型                   控件ID                               作用  
 
2.       打开Properties文件夹,选择资源,单击创建资源文件Resources.resx
 并添加如下资源资料:
   名称                         值
Default_Label1_CN               名字:
Default_Label1_EN               Name:
Default_Label2_CN               小强
Default_Label2_EN               Xiaoqiang
Default_Label3_CN               年龄:
Default_Label3_EN               Age:
Default_Label4_CN               18
Default_Label4_EN               18
Default_lbtnChangeLanguage_CN    English
Default_lbtnChangeLanguage_EN    中文
 
我们采用 


相关文档:

WCF中的服务和ASP.NET AJAX中的WebService

WCF的架构:using System.ServiceModel;
契约:Contract
[ServiceContract]
public partial interface IContract
{
        [OperationContract]
        string DocumentWebHostUrl();
}
服务:Service
[ServiceBehavior(IncludeException ......

asp.net 中实现页面每隔一分钟刷新一次的效果

在Global.asax
需要回顾的知识点是 线程 和  文本文件的读写。
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
    string logpath;
    Thread thread; ......

ASP.NET页面刷新方法总结

先看看ASP.NET页面刷新的实现方法:
第一:
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
第二:
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lang ......

Parameter Queries in ASP.NET with MS Access

Parameter Queries in ASP.NET with MS Access
A selection of code samples for executing queries against MS Access using parameters.
Making use of the ASP.NET 2.0 datasource controls is fine, but it is important to understand how to manually create data access code. Best practice dictates that, at t ......

ASP.NET FCKeditor 文本编辑器的使用

ASP.NET FCKeditor 文本编辑器的使用 【转】
下载地址:http://www.fckeditor.net/download

FCKeditor使用
一、配置
1、在www.fckeditor.net
点击Download,下载FCKEditor_2.5.1.zip和FCKEditor.Net(ASP.NET
Control to easily integrate FCKEditor on .Net Web pages.)
2、新建一项目,比如叫FCK。解压FCKEd ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号