usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespaceLK. Bpms. cslogin{ Public Partial classClientwb:form { Public stringToken {Get;Set; } PublicCLIENTWB (stringtoken) {InitializeComponent (); This. token =token; } stringPath = system.configuration.configurationsettings.appsettings["Uri"]; Private voidClientwb_load (Objectsender, EventArgs e) { stringJS ="<script type=\ "text/javascript\" >window.onload=function () {document.getElementById (\ "tokenid\"). Click ( );} </script>"; Webbrowser1.documenttext="<form action=\ ""+ Path +"\ "method=\" post\ "><input type=\" submit\ "id=\" tokenid\ "name=\" token\ " value=\""+ token +"\ "Onsubmit=\" return Checkform () \ "/></form>"+ JS +""; //webbrowser1.navigate (UT); } }}
JS Demo form Submission