需要locale超链接帮助文件名 [英] need locale hyperlink help filename

查看:70
本文介绍了需要locale超链接帮助文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨;


我为ASP.NET webapp的每个页面提供了帮助html页面。所以对于页面

datasource.aspx,我有帮助\\\ atatasource.htm。


Bu点击超链接时我想要的是什么按顺序查找

以下文件(假设我是从美国运行的):

help\datasource_en_US.htm

help \ datasource_en.htm

help \datasource.htm


因此根据客户端用户的语言环境,我得到的是最好的

语言适合我们。有没有简单的方法来做到这一点?或者我需要在页面加载中设置

这些吗?


-

谢谢 - 戴夫

david_at_windward_dot_net
http://www.windwardreports.com

小隔间战争 - http://www.windwardreports。 com / film.htm

Hi;

I have help html pages for each page of my ASP.NET webapp. So for the page
datasource.aspx, I have help\datasource.htm.

Bu what I want when the hyperlink is clicked, for it to look for the
following files in order (assuming I am running from the us):
help\datasource_en_US.htm
help\datasource_en.htm
help\datasource.htm

So that based on the client user''s locale, I am getting them the best
language fit we have. Is there any easy way to do this? Or do I need to set
these in the page load?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

推荐答案

为什么不根据他们的
$ b将超链接设置为正确的URL $ b国家代码,或者当他们点击

超链接并将逻辑放入其中以确定服务器的位置时,让他们都访问相同的帮助文件。转移他们

到,如果你在

之前有一个正在进行转移的文件,可以查找正确的本地文件。


问候


John Timney(MVP)

访问我的网站:
http: // www.johntimney.com

" David Thielen" < th ***** @ nospam.nospamwrote in message

news:1A ************************* ********* @ microsof t.com ...
Why dont you set the hyperlink instead to the correct URL based on their
country code, or have them all access the same help file when they click the
hyperlink and put logic in that to determine where to server.transfer them
onto, which could look for the correct local file if you had one prior to
doing the transfer.

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"David Thielen" <th*****@nospam.nospamwrote in message
news:1A**********************************@microsof t.com...

嗨;


我有帮助我的ASP.NET webapp的每个页面的html页面。所以对于页面

datasource.aspx,我有帮助\\\ atatasource.htm。


Bu点击超链接时我想要的是什么按顺序查找

以下文件(假设我是从美国运行的):

help\datasource_en_US.htm

help \ datasource_en.htm

help \datasource.htm


因此根据客户端用户的语言环境,我得到的是最好的

语言适合我们。有没有简单的方法来做到这一点?或者我需要在页面加载中设置

这些是什么?


-

谢谢 - 戴夫

david_at_windward_dot_net
http://www.windwardreports。 com


小隔间战争 - http://www.windwardreports.com/film.htm

Hi;

I have help html pages for each page of my ASP.NET webapp. So for the page
datasource.aspx, I have help\datasource.htm.

Bu what I want when the hyperlink is clicked, for it to look for the
following files in order (assuming I am running from the us):
help\datasource_en_US.htm
help\datasource_en.htm
help\datasource.htm

So that based on the client user''s locale, I am getting them the best
language fit we have. Is there any easy way to do this? Or do I need to
set
these in the page load?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm



我相信,因为你'要把它作为一个链接,你必须先做所有的逻辑

。没有真正的方法让链接自己处理。


你有没有给过一些虽然使用内置的全球化

功能?您可以创建

资源字符串,让全球化功能尝试根据当前用户''找出要使用的
资源字符串,而不是拥有三个单独的HTML文件。文化选择和

只需将文本转储到文字控件中。那真的可以帮到你

避免一些凌乱的逻辑,试图预先弄清楚链接并将其传递给全球化功能。

-

希望这有帮助,

Mark Fitzpatrick

前微软FrontPage MVP 199?-2006


David Thielen < th ***** @ nospam.nospamwrote in message

news:1A ************************* ********* @ microsof t.com ...
I believe, since you''re making it a link, you''ll have to do all the logic
for that first. There''s no real way to have the link handle that itself.

Have you given some though though to using the built in globalization
features? Instead of having three seperate HTML files, you could create
resource strings and let the globalization feature try to figure out which
resource string to use based on the current user''s culture selection and
simply dump that text into a literal control. That would really help you
avoid some messy logic for trying to figure out the link beforehand and pass
it off instead to the globalization features.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"David Thielen" <th*****@nospam.nospamwrote in message
news:1A**********************************@microsof t.com...

嗨;


我有帮助我的ASP.NET webapp的每个页面的html页面。所以对于页面

datasource.aspx,我有帮助\\\ atatasource.htm。


Bu点击超链接时我想要的是什么按顺序查找

以下文件(假设我是从美国运行的):

help\datasource_en_US.htm

help \ datasource_en.htm

help \datasource.htm


因此根据客户端用户的语言环境,我得到的是最好的

语言适合我们。有没有简单的方法来做到这一点?或者我需要在页面加载中设置

这些是什么?


-

谢谢 - 戴夫

david_at_windward_dot_net
http://www.windwardreports。 com


小隔间战争 - http://www.windwardreports.com/film.htm

Hi;

I have help html pages for each page of my ASP.NET webapp. So for the page
datasource.aspx, I have help\datasource.htm.

Bu what I want when the hyperlink is clicked, for it to look for the
following files in order (assuming I am running from the us):
help\datasource_en_US.htm
help\datasource_en.htm
help\datasource.htm

So that based on the client user''s locale, I am getting them the best
language fit we have. Is there any easy way to do this? Or do I need to
set
these in the page load?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm



方法1是我目前的计划。但这意味着对于每一个链接我都需要在我的代码隐藏中使用代码来确定文件名。我希望

避免这种情况。


-

谢谢 - 戴夫

david_at_windward_dot_net
http://www.windwardreports.com


小隔间战争 - http://www.windwardreports.com/film.htm


" John Timney(MVP)"写道:
Approach 1 is my present plan. But that means for every one of those links I
have to have code in my codebehind to determine the filename. I was hoping to
avoid that.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


"John Timney (MVP)" wrote:

为什么不根据他们的

国家代码将超链接设置为正确的URL,或让他们都访问相同的帮助文件,当他们点击

超链接并在其中放入逻辑以确定服务器的位置。转移他们

到,如果你有一个可以寻找正确的本地文件之前

进行转账。


问候


John Timney(MVP)

访问我的网站:
http://www.johntimney.com


" David Thielen" < th ***** @ nospam.nospamwrote in message

news:1A ************************* ********* @ microsof t.com ...
Why dont you set the hyperlink instead to the correct URL based on their
country code, or have them all access the same help file when they click the
hyperlink and put logic in that to determine where to server.transfer them
onto, which could look for the correct local file if you had one prior to
doing the transfer.

Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"David Thielen" <th*****@nospam.nospamwrote in message
news:1A**********************************@microsof t.com...

嗨;


我有帮助我的ASP.NET webapp的每个页面的html页面。所以对于页面

datasource.aspx,我有帮助\\\ atatasource.htm。


Bu点击超链接时我想要的是什么按顺序查找

以下文件(假设我是从美国运行的):

help\datasource_en_US.htm

help \ datasource_en.htm

help \datasource.htm


因此根据客户端用户的语言环境,我得到的是最好的

语言适合我们。有没有简单的方法来做到这一点?或者我需要在页面加载中设置

这些是什么?


-

谢谢 - 戴夫

david_at_windward_dot_net
http://www.windwardreports。 com


小隔间战争 - http://www.windwardreports.com/film.htm






这篇关于需要locale超链接帮助文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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