Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
Generalsubclassed controls Pin
vlusardi10-Feb-03 9:55
vlusardi10-Feb-03 9:55 
GeneralRe: subclassed controls Pin
leppie10-Feb-03 10:10
leppie10-Feb-03 10:10 
GeneralRe: subclassed controls Pin
vlusardi10-Feb-03 11:06
vlusardi10-Feb-03 11:06 
GeneralCOM+ in .NET::C# & DLLs Pin
sss_dr10-Feb-03 8:23
sss_dr10-Feb-03 8:23 
GeneralOwner Draw... Pin
Yuval Kaplan10-Feb-03 1:56
Yuval Kaplan10-Feb-03 1:56 
GeneralRe: Owner Draw... Pin
TigerNinja_10-Feb-03 2:40
TigerNinja_10-Feb-03 2:40 
GeneralRe: Owner Draw... Pin
Yuval Kaplan10-Feb-03 6:08
Yuval Kaplan10-Feb-03 6:08 
GeneralWebBrowser API problem. Pin
GriffonRL10-Feb-03 1:49
GriffonRL10-Feb-03 1:49 
Hello,

I'm extensively using the Webbrowser control and everything is almost fine...
Actually I found a strange problem.

I crawl to a page containing the following code:




When using the IHTMLAnchorElement and asking for the 'href' property, I get the following result:

http://pubs.mgn.net/event.ng/Type=click&FlightID=6121&AdID=17734&TargetID=1165&Segments=108,143,292,365,382,1035,1227&Targets=273,1165&Values=31,43,51,60,72,81,91,100,110,150,206,213,237,474,601,625,763,934,938,940,1007,1009,1046,1253,1282,1448,1907,1963,2018&RawValues=&Redirect=http://www.fnac.com/Shelf/article.asp?PRID=1391122&Origin=2003.2.10.12.24.24.0&OriginClick=yes

But If I issue an HTTP GET request, I get a 404 error (after redirection, the web server is a Netscape Entreprise Server).
I know that if I use this URL instead (like IE does !), I will work:

http://pubs.mgn.net/event.ng/Type=click&FlightID=6121&AdID=17734&TargetID=1165&Segments=108,143,292,365,382,1035,1227&Targets=273,1165&Values=31,43,51,60,72,81,91,100,110,150,206,213,237,474,601,625,763,934,938,940,1007,1009,1046,1253,1282,1448,1907,1963,2018&RawValues=&Redirect=http:%2F%2Fwww.fnac.com%2FShelf%2Farticle.asp%3FPRID%3D1391122%26Origin%3D2003.2.10.12.24.24.0%26OriginClick%3Dyes

The difference is that the second URL has HTML decoded all & but kept all URL encoded characters.
Using the debugger I found that because the WebBrowser control is misparsing the anchor, I also get wrong values for the 'search' property (of IHTMLAnchorElement) and so on.

Is it a bug ? What can I do to deal with this problem and get a perfectly parsed URL ?


Regards,


R. LOPES
Just programmer.
GeneralRe: WebBrowser API problem (repost because first URL translated). Pin
GriffonRL10-Feb-03 1:54
GriffonRL10-Feb-03 1:54 
GeneralControl DLL and resx files problems Pin
Braulio Dez9-Feb-03 23:51
Braulio Dez9-Feb-03 23:51 
GeneralFileSystemWatcher with 98 and ME Pin
BigAndy9-Feb-03 23:04
BigAndy9-Feb-03 23:04 
GeneralRe: FileSystemWatcher with 98 and ME Pin
Thomas Caudal10-Feb-03 11:02
Thomas Caudal10-Feb-03 11:02 
GeneralRegex pattern Pin
Roger Alsing9-Feb-03 21:38
Roger Alsing9-Feb-03 21:38 
GeneralRe: Regex pattern Pin
Giles10-Feb-03 12:27
Giles10-Feb-03 12:27 
GeneralHooking into IE Pin
NishantD9-Feb-03 16:39
NishantD9-Feb-03 16:39 
Generaldeploying .net application on pc without a common run time Pin
king_of_the_world9-Feb-03 15:26
king_of_the_world9-Feb-03 15:26 
GeneralRe: deploying .net application on pc without a common run time Pin
BigAndy9-Feb-03 22:56
BigAndy9-Feb-03 22:56 
GeneralAdding a form Pin
chito9-Feb-03 14:19
chito9-Feb-03 14:19 
GeneralTesting for whole number Pin
draco_iii9-Feb-03 11:30
draco_iii9-Feb-03 11:30 
GeneralRe: Testing for whole number Pin
Jon Sagara9-Feb-03 11:40
Jon Sagara9-Feb-03 11:40 
GeneralRe: Testing for whole number Pin
draco_iii9-Feb-03 13:51
draco_iii9-Feb-03 13:51 
GeneralTreeView selection Pin
Mr BallyDaHob9-Feb-03 4:59
Mr BallyDaHob9-Feb-03 4:59 
GeneralRe: TreeView selection Pin
Stephane Rodriguez.9-Feb-03 5:37
Stephane Rodriguez.9-Feb-03 5:37 
GeneralTrackpopupMenu(Ex) problem Pin
Thomas Caudal9-Feb-03 2:32
Thomas Caudal9-Feb-03 2:32 
QuestionHow to reuse the WebBrower control in my c# windows application Pin
ybw9-Feb-03 0:54
ybw9-Feb-03 0:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.