微软开发模式中的Tilde问题 [英] Problems with Tilde in Microsoft Development Model

查看:58
本文介绍了微软开发模式中的Tilde问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




几年来,我一直在使用

单独的网站(独特的IP)来开发我的每个客户网站我的本地开发站和生产服务器之间的相对URL的问题。


最近,我需要与使用Source的其他开发人员协作

安全。但是,为了让源安全正常工作,你真的需要在默认网站的虚拟目录中工作。


很好,所以我开始转换网站并开始使用〜字符

将图像等解析到应用程序的根目录。


但是,某些项目,例如backbround等。 < TD>的元素和

< table>标签不提供〜的分辨率。这个场景的正确方法是什么?


Shawn Zavoda

Hi,

For a few years, I have been developing each of my clients websites using a
seperate web site (unique IP) to solve problems with relative URL''s between
my local dev station and the production server.

Recently, I have needed to collaborate with other developers using Source
Safe. But, in order to get source safe working properly, you really need to
be working in virtual directories of the default web site.

Fine, so I started to convert over sites and began using the "~" character
to resolve images, etc. to the root of the application.

However, certain items such as the "backbround" element of the <TD> and
<table> tags does not provide resolution of the "~" character.

What is the proper method for this scenario?

Shawn Zavoda

推荐答案

Shawn写道:


几年来,我一直在开发我的每个客户网站
使用一个单独的网站(独特的IP)解决我的本地开发站和生产服务器之间的相对URL问题。

最近,我需要与其他开发人员合作使用站点的虚拟目录中工作。

很好,所以我开始转换网站并开始使用〜
字符将图像等解析到应用程序的根目录。

然而,某些项目,例如backbround等。 < TD>
和< table>的元素标签不提供〜的分辨率。角色。

这种情况的正确方法是什么?

Shawn Zavoda
Hi,

For a few years, I have been developing each of my clients websites
using a seperate web site (unique IP) to solve problems with relative
URL''s between my local dev station and the production server.

Recently, I have needed to collaborate with other developers using
Source Safe. But, in order to get source safe working properly, you
really need to be working in virtual directories of the default web
site.

Fine, so I started to convert over sites and began using the "~"
character to resolve images, etc. to the root of the application.

However, certain items such as the "backbround" element of the <TD>
and <table> tags does not provide resolution of the "~" character.

What is the proper method for this scenario?

Shawn Zavoda




代字号仅适用于服务器控件。


如果你只是添加runat = server,我认为它会起作用到你的< table>标签。


-


Edge



The tilde only works with server controls.

I think it will work if you just add "runat=server" to your <table> tags.

--

Edge


你对Runat是正确的=服务器问题。但是,表和td

以及许多其他html控件即使在那时也不支持它。这是一个问题

,我看到其他用户没有任何解决方案。


谢谢!


Shawn


" Edge"写道:
You are correct about the Runat=server problem. However, the table and td
and many other html controls do not support it even then. This is a problem
that I have seen other users have without any resolution.

Thanks!

Shawn

"Edge" wrote:
Shawn写道:


几年来,我一直在开发我的每个客户网站<使用单独的网站(独特的IP)来解决我的本地开发站和生产服务器之间相对的URL问题。

最近,我需要进行协作与其他开发人员使用
Source Safe。但是,为了让源安全正常工作,你真的需要在默认的web
站点的虚拟目录中工作。

很好,所以我开始转换网站并开始使用〜
字符将图像等解析到应用程序的根目录。

然而,某些项目,例如backbround等。 < TD>
和< table>的元素标签不提供〜的分辨率。角色。

这种情况的正确方法是什么?

Shawn Zavoda
Hi,

For a few years, I have been developing each of my clients websites
using a seperate web site (unique IP) to solve problems with relative
URL''s between my local dev station and the production server.

Recently, I have needed to collaborate with other developers using
Source Safe. But, in order to get source safe working properly, you
really need to be working in virtual directories of the default web
site.

Fine, so I started to convert over sites and began using the "~"
character to resolve images, etc. to the root of the application.

However, certain items such as the "backbround" element of the <TD>
and <table> tags does not provide resolution of the "~" character.

What is the proper method for this scenario?

Shawn Zavoda



代字号仅适用于服务器控件。

如果你只是添加runat = server,我认为它会起作用。到你的< table>标签。

-

Edge



The tilde only works with server controls.

I think it will work if you just add "runat=server" to your <table> tags.

--

Edge



Hello Shawn,

~字符仅适用于使用Page.ResolveUrl

方法解析网址的runat = server控件。


-

Matt Berther
http://www.mattberther .com
Hello Shawn,

The ~ character only works with runat=server controls that use the Page.ResolveUrl
method to resolve the url.

--
Matt Berther
http://www.mattberther.com
你对Runat = server问题是正确的。但是,即使这样,表
和td以及许多其他html控件也不支持它。这个
是我看到的其他用户没有任何解决方案的问题。

谢谢!

Shawn

边缘写道:
You are correct about the Runat=server problem. However, the table
and td and many other html controls do not support it even then. This
is a problem that I have seen other users have without any resolution.

Thanks!

Shawn

"Edge" wrote:
Shawn写道:
Shawn wrote:


几年来,我一直在开发每一个我的客户网站
使用一个单独的网站(独特的IP)来解决我的本地开发站和生产服务器之间的相对URL的问题。
最近,我需要与使用
Source Safe的其他开发人员合作。但是,为了让源安全正常工作,你真的需要在默认的web
站点的虚拟目录中工作。

很好,所以我开始转换网站并开始使用〜
字符将图像等解析到应用程序的根目录。

然而,某些项目,例如backbround等。 < TD>
和< table>的元素标签不提供〜的分辨率。角色。

这种情况的正确方法是什么?

Shawn Zavoda
Hi,

For a few years, I have been developing each of my clients websites
using a seperate web site (unique IP) to solve problems with
relative URL''s between my local dev station and the production
server.

Recently, I have needed to collaborate with other developers using
Source Safe. But, in order to get source safe working properly, you
really need to be working in virtual directories of the default web
site.

Fine, so I started to convert over sites and began using the "~"
character to resolve images, etc. to the root of the application.

However, certain items such as the "backbround" element of the <TD>
and <table> tags does not provide resolution of the "~" character.

What is the proper method for this scenario?

Shawn Zavoda


代字号仅适用于服务器控件。

我认为如果你只是添加runat = server,它会起作用。到您的< table>
标签。

-

Edge


The tilde only works with server controls.

I think it will work if you just add "runat=server" to your <table>
tags.

--

Edge


这篇关于微软开发模式中的Tilde问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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