<script language="javascript" type="text/javascript"> function Connect() { var doc = document.forms[0]; var PrinterControl = document.applets('PrinterObject1'); PrinterControl.UserText = document.form1.hdnConString.value + ',' + document.form1.hdnCategory.value + ',' + document.form1.hdnLoginID.value + ',' + document.form1.hdnPassword.value + ',' + document.form1.hdnCategoryType.value; } </script> <body önload="Connect()"> <form id="form1" runat="server" > . . . . </form> </body>
public String UserText { get { return conString; } set { conString = value; string[] arrID = conString.Split(','); conStr = Convert.ToString(arrID[0]); category = Convert.ToString(arrID[1]); loginID = Convert.ToString(arrID[2]); password = Convert.ToString(arrID[3]); categoryType = Convert.ToString(arrID[4]); } }