Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my WPF business application, when any of my users is creating new entities (essentially business profiles), I want them to be able to add a link to a button, so that when they save that specific entity, they can later re-open it, click the button, and it'll take them to that specific entity's website.

The webpage is www.brreg.no, and it's a Norwegian search site for businesses.
Each business has its own public profile on that site. That is the profile I need to create a link to.

The text field under "Finn foretak/selskap" on the site, is where I would insert the org.number of the business.

I would prefer if the users only added the org.no to the TextBox, and the button would be automatically updated with the link when the profile is saved. Doabel?

I have no idea how to do that. Any tips to get me looking in the right place?

What I have tried:

I know how to access URL's with a button click, f.ex:

Process.Start("explorer", "https://www.ExampleUrl.com/");

But I have no idea how to access a search field on that specific website.
Posted
Updated 8-Jul-21 10:50am
Comments
j snooze 8-Jul-21 17:50pm    
if you go to that specific site and put in a sample entity, do you see a querystring that shows up after the main URL? like https://www.ExampleUrl.com?entity=12345 ? you should be able to mimic that. even if you do a google search or something you'll see https://www.google.com/search?q=how+do+I+do+that......where I put "How do I do that" on the search text box
Adérito Silva 31-Jul-21 15:56pm    
Just like @snooze said, this would be done using the query string on the URL, just like most browsers do with default search engines. If, for some reason, the web site is not using query strings to specify the user profile, it must be doing it in some other way. For example, if the site uses HTTP post data instead of simple URL queries, you would need to use an HTTP client class, like HttpWebRequest, to mimic the website's search form post data.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900