Home All Groups Group Topic Archive Search About

URL as a hyperlink in EventLog

Author
24 Nov 2004 4:06 PM
Shads
Hi,

I'm trying to write a url as a hyperlink in the Eventlog,
does anyone know if this is possible ??

I have tried the following but this doesn't appear as a
hyperlink.  Microsoft have done the same thing with there
support link.

System.Diagnostics.EventLog.WriteEntry("MyLog",
@"http://www.mylog.com");

Thanks in advance

Shads

Author
24 Nov 2004 9:00 PM
Eric Cadwell
Have you tried writing it as HTML?

<a href='http://www.mylog.com'>http://www.mylog.com</a>

HTH;
Eric Cadwell
http://www.origincontrols.com
Author
24 Nov 2004 9:19 PM
Eric Cadwell
Don't bother, that doesn't seem to work either.
I know there are differences in the way the .NET writes to the log (doesn't
use insertion strings). Maybe this is a limitation of those differences.

-Eric
Author
25 Nov 2004 9:08 AM
anonymous
>-----Original Message-----
>Don't bother, that doesn't seem to work either.
>I know there are differences in the way the .NET writes
to the log (doesn't
>use insertion strings). Maybe this is a limitation of
those differences.
>
>-Eric

Hi Eric,

Yeah I tried this approach as well, I have found the
following article which proves it can be done.

http://www.codeproject.com/dotnet/evtvwr.asp

AddThis Social Bookmark Button