> Hi, I am invoking Firefox, and for testing IE, from my VB program. The
> instruction are of this kind:
[quoted text clipped - 22 lines]
>
> -Pam
BRAVO!!
this did it:
Try
FileName = "file:///" & FileName.Replace(" ", "%20")
System.Diagnostics.Process.Start("Firefox.exe", FileName)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Information)
End Try
Thank you verry much!!
PS
Firefox, is always more rigorous than IE, eh? !
Is any other char that, for generality, I should take care of?
-Pam
Paxton ha scritto:
> > Hi, I am invoking Firefox, and for testing IE, from my VB program. The
> > instruction are of this kind:
[quoted text clipped - 28 lines]
>
> /P.
Paxton - 26 Feb 2006 22:08 GMT
If you are using dotnet, the System.Web.HttpUtility class offers a
URLEncode method you can use which will take care of all chars that
might cause problems.
/P.
pamelaflue...@libero.it wrote:
> BRAVO!!
>
[quoted text clipped - 50 lines]
> >
> > /P.
pamelafluente@libero.it - 26 Feb 2006 23:23 GMT
I am doing a Windows Application, not a web application.
If I use:
FileName = System.Web.HttpUtility.HtmlEncode(FileName)
I get this compiler error: 'HttpUtility' is not a member of 'Web'
I am not sure whether the above can be used in Windows application
(??). It would seems that is related with the presence of a web server.
I am not sure but I am afraid I have to code the filtering manually.
Is there a place with a full list of all need to be filtered so that I
can do it?
I could do something on the lines (perhaps a little awkward, eh?):
Dim WebSymbols As String() = New String() { _
"&", "&", _
">", ">", _
"<", "<", _
...
" ", " ", _
vbCrLf, "<br>" _
}
Function MyHtmlEncode(ByVal Text As String) As String
Dim WebText As New System.Text.StringBuilder(Text)
For i As Integer = 0 To WebSymbols.Length - 1 Step 2
WebText = WebText.Replace(WebSymbols(i), WebSymbols(i + 1))
Next i
Return WebText.ToString
End Function
In this case I would need a complete list of symbols. Any hint or
pointer?
Paxton - 27 Feb 2006 10:03 GMT
> I am doing a Windows Application, not a web application.
> If I use:
[quoted text clipped - 33 lines]
> In this case I would need a complete list of symbols. Any hint or
> pointer?
I would have thought you could import the namespace into your project
and use its methods. I thought that was one of the main points behind
OOP in dotnet.
Alternatively, create a blank file in notepad, give it a name using all
the legal filename special characters and save it as an htm file -
something like "£$% ^&!*()_+=-.htm. Then browse to it with Firefox
and see which of the special chars it's happy with, and which ones it
encodes in the address bar.
If you want further advice/help with dotnet, one of the
microsoft.public.dotnet.framework* groups would be best. The CSS bods
of this group are probably wondering what on earth we are going on
about :-)
/P.
pamelafluente@libero.it - 27 Feb 2006 17:40 GMT
Yes, Christian is perfectly right!!
Actually, it's because the original question regarded essentially
Firefox.
I remember that in the past I came here a couple of times and actually
the guys here let me understand how important is Firefox in the
browser's world (where I am it is hardly known) and how important is to
make application which also support well Firefox.
I also remembered how good and helpful are the people in this group. So
having a question about Firefox, this seemed the first choice to go.
Sorry if it is turning OT.
Ah, an observation (more on topic) . I have seen that in web page we
(and hence any filter) replace " " with while within the command
line this doesn't work and it wants "%20". So I am just thinking that
perhaps for the the command line (file name, etc.) the replacement can
be different wrt to the html body (??) Is this so?
thank you very much
-Pam
The CSS bods
> of this group are probably wondering what on earth we are going on
> about :-)
>
> /P.
Shmuel (Seymour J.) Metz - 28 Feb 2006 13:25 GMT
In <1141062047.068833.228510@e56g2000cwe.googlegroups.com>, on
02/27/2006
at 09:40 AM, pamelafluente@libero.it said:
>I also remembered how good and helpful are the people in this group.
Sure, for questions about CSS. Why do you expect people to be less
helpful if you post a question to the proper group?

Signature
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
Christian Kirsch - 27 Feb 2006 11:57 GMT
pamelafluente@libero.it schrieb:
> BRAVO!!
>
[quoted text clipped - 8 lines]
>
> Thank you verry much!!
What's that got to do with CSS?