日期:2014-05-19  浏览次数:20458 次

大家看看怎么做?
<%@   Page   language= "c# "   Codebehind= "WebForm1.aspx.cs "   AutoEventWireup= "false "   Inherits= "WZTEST.WebForm1 "   %>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN "   >
<HTML>
<HEAD>
<title> WebForm1 </title>
<meta   name= "GENERATOR "   Content= "Microsoft   Visual   Studio   .NET   7.1 ">
<meta   name= "CODE_LANGUAGE "   Content= "C# ">
<meta   name= "vs_defaultClientScript "   content= "JavaScript ">
<meta   name= "vs_targetSchema "   content= "http://schemas.microsoft.com/intellisense/ie5 ">
</HEAD>
<body   MS_POSITIONING= "GridLayout ">
<OBJECT   id= "aaaaa "   codeBase= "ActiveX/aa.Exe "   height= "96 "   width= "184 "   classid= "clsid:9551B223-6188-4387-B293-C7D9D8173E3A "
VIEWASTEXT>

</OBJECT>
<form   id= "Form1 "   method= "post "   runat= "server ">
<input   type= 'button '   onclick= 'aaaaa.ShowMessage( "Hello   World! ") '   value= 'Click '>
<asp:TextBox   id= "TextBox1 "   style= "Z-INDEX:   101;   LEFT:   408px;   POSITION:   absolute;   TOP:   184px "
runat= "server "> BBBBB </asp:TextBox>
</form>
</body>
</HTML>

我要怎么样才可以把TextBox1.text   的值放在   aaaaa.ShowMessage( "Hello! ")的参数中aaaaa.ShowMessage(TextBox1.text   的值)

------解决方案--------------------
aaaaa.ShowMessage(document.getElementById( "TextBox1 ").value);