删除超链接? [英] remove hyperlinks?

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

问题描述

我有一个页面,它在HTML表格中获取数据,然后将其导出到Excel

文件中。它工作正常,但我想要电子表格的几件事看起来与HTML版本不同。像字体和颜色的东西。我想我可以

为后者使用样式表,但我还没想出如何从某些项目中删除

超链接。在HTML页面上,超链接是有用的,但我不希望电子表格有它们。


所以在我的ASP页面上构建Excel文件,我有这个:


< TH vAlign = top align = left width =" 7%">< A

href =" DisplaySortableTickets.asp?SearchYes = true& am p; selectTSE = 200& amp; Assist

Emp =& amp; Status =& amp; Environment =& amp; CustomerCode = & amp; amp1 =& amp; date2 =& am

p; DateSearch =& amp; Sort = TKTID& amp; SortToggle = 1& amp; ReportType =& amp; ShowIntern

al =& amp; ShowExternal =& amp; searchtext =& amp; SearchSD R =& amp; SearchCustTicketID =

& amp; RootCauseID =& amp; CauseMatchType ="> TKT ID:< / A>< / TH>


如何使用ASP删除开头和关闭< A>标签?替换

函数不起作用,因为它每次都不同。

解决方案

middletree写道:

如何使用ASP删除开始和结束< A>标签?
替换功能不起作用,因为它每次都不同。




这不是模式匹配的全部要点吗?


-

戴夫安德森


未经请求的商业电子邮件将以

的费用阅读

每条消息500。使用

此电子邮件地址即表示同意这些条款。请不要直接联系

我或要求我直接与您联系以获取帮助。如果您的

问题值得询问,那就值得张贴。


什么是模式匹配?

戴夫安德森 < GT ********** @ spammotel.com>在消息中写道

新闻:#f ************** @ TK2MSFTNGP10.phx.gbl ...

middletree写道:< blockquote class =post_quotes>如何使用ASP删除开始和结束< A>标签?
替换功能不起作用,因为它每次都不同。
这不是模式匹配的全部要点吗?

-

未经请求的商业电子邮件将以

的成本阅读

I have a page which takes data in an HTML table, and exports it to an Excel
file. It works fine, but I want several things about the spreadsheet to look
different from the HTML version. Things like fonts and colors. I think I can
use a style sheet for the latter, but I haven''t figured out how to remove
hyperlinks from some of the items. On the HTML page, the hyperlinks are
useful, but I don''t want the spreadsheet to have them.

So on my ASP page which builds the Excel file, I have this:

<TH vAlign=top align=left width="7%"><A
href="DisplaySortableTickets.asp?SearchYes=true&am p;selectTSE=200&amp;Assist
Emp=&amp;Status=&amp;Environment=&amp;CustomerCode =&amp;date1=&amp;date2=&am
p;DateSearch=&amp;Sort=TKTID&amp;SortToggle=1&amp; ReportType=&amp;ShowIntern
al=&amp;ShowExternal=&amp;searchtext=&amp;SearchSD R=&amp;SearchCustTicketID=
&amp;RootCauseID=&amp;CauseMatchType=">TKT ID:</A></TH>

How can I use ASP to remove the opening and closing <A> tags? A replace
function won''t work, because it''s different every time.

解决方案

middletree wrote:

How can I use ASP to remove the opening and closing <A> tags? A
replace function won''t work, because it''s different every time.



Isn''t that the whole point of pattern matching?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of


500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it''s worth posting.


What is pattern matching?
"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:#f**************@TK2MSFTNGP10.phx.gbl...

middletree wrote:

How can I use ASP to remove the opening and closing <A> tags? A
replace function won''t work, because it''s different every time.
Isn''t that the whole point of pattern matching?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of


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

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