When you asked a similar question yesterday:
Can we convert console application in to web application in C#[
^] it was about a single application, which you haven't got working yet (since you were still asking questions under an hour ago).
With two, it's getting worse, particularly when you want to run them "in a web page" - you cannot start apps on the client from a web page, or from the server - or malicious sites would kill or infect every machine that approached them - so the apps would have to run at the server. And since you need that "every program has again input and output options" the advice I gave you for the last question still applies: sit down, and work out what the UI should be, and recreate the app for the new environment. You are fast approaching the point where any other approach is going to give you more work to do than it could ever save you, as well as being next to impossible to maintain.