kiunx3
kiunx3

Reputation: 43

How do I send data from C# textbox to a HTML textbox?

I am working with a C# program which has a textbox txtPath and an HTML website that has another textbox txtWebPath. The website is written in JavaScript.

txtPath is being filled by openFileDialog, while txtWebPathis being filled via drag-and-drop. My goal is to have a button that sends txtPath value to txtWebPath.

Is there a way to do that?

Upvotes: 0

Views: 175

Answers (1)

SpeedyCodes
SpeedyCodes

Reputation: 11

You could look into using WebSockets: they connect a server (the C# program in your case) with a web browser (in Javascript). You can find more about how you would write such programs here:

Upvotes: 1

Related Questions