Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query To HTML In Web Browser Control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01379853
Message ID:
01379905
Vues:
23
>>>I was thinking of display query results in a web browser. The data will a categorized list of part numbers and other data. The part numbers will be links.
>>>
>>>I know I can used the Navigating event to trap when a link is clicked. The question is, how can I detect when a part hyperlink is clicked as opposed to some other link? Can I 'attach' anything to the link that I can test for?
>>
>>You can tell just by looking at the URL passed in the events of the Navigating event (as long as you make them unique in some way).
>
>
>That's exactly the problem. There's nothing unique about the data. For example, a product number might be "A6153AR" and a part number might be "A4926A" or "A6153-10005". How would you know that the first is a product and the other two are parts?

Do you control the code which generates the HTML? If so, just change the URL based on which link you're rendering. If you don't control this, about all you can do is compare a product link and a part link. If there literally is no difference except for the number (and they look identical to one another) you're out of luck.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform