Use axWebBrowser in ASP.net to submit a form

Source: Internet
Author: User

<TR bgColor = # ffffff width = "100%">
<TD align = middle colSpan = 2>
<Form id = "form1">
<INPUT language = javascript class = button id = Btton style = "BORDER-TOP-STYLE: groove; BORDER-RIGHT-STYLE: groove; BORDER-LEFT-STYLE: groove; BORDER-BOTTOM-STYLE: groove "onclick =" if (typeof (Page_ClientValidate) = 'function') Page_ClientValidate (); "type = submit value =" Start "onclick =" alert (''dd'') "name = Btton> </TD> </TR>
</Form>
<Input type = "button" onclick = "alert (''test'')" id = "button1">
Bytes -----------------------------------------------------------------------------------
Form1.cs
Using System;
Using System. Drawing;
Using System. Collections;
Using System. ComponentModel;
Using System. Windows. Forms;
Using System. Data;
Using mshtml;
Namespace WindowsApplication2
{
/// <Summary>
/// Summary of Form1.
/// </Summary>
Public class Form1: System. Windows. Forms. Form
{
Private AxSHDocVw. AxWebBrowser axWebBrowser1;
Private System. Windows. Forms. Button button1;
Private System. Windows. Forms. Button button2;
/// <Summary>
/// Required designer variables.
/// </Summary>
Private System. ComponentModel. Container components = null;
Public Form1 ()
{
//
// Required for Windows Form Designer support
//
InitializeComponent ();
//
// TODO: add Any constructor code after InitializeComponent calls
//
}
/// <Summary>
/// Clear all resources in use.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.