or
| var combo = $find("<%= RadComboBox1.ClientID %>"); var item = combo.findItemByText(text); |
js =
"var BAN = $find('" + BAN.ClientID + "'); ";
ScriptManager.RegisterStartupScript(this, this.GetType(), "InitControls", js, true);
| string js = "var BAN, CompanyName, Contact, Address1, Address2, City, State, Zip, LocalBAN, Phone, Email; "; |
| ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "DeclareControls", js, true); |
| js = "BAN = $find('" + BAN.ClientID + "'); "; |
| js += "CompanyName = $find('" + CompanyName.ClientID + "'); "; |
| js += "Contact = $find('" + Contact.ClientID + "'); "; |
| js += "Address1 = $find('" + Address1.ClientID + "'); "; |
| js += "Address2 = $find('" + Address2.ClientID + "'); "; |
| js += "City = $find('" + City.ClientID + "'); "; |
| js += "State = $find('" + State.ClientID + "'); "; |
| js += "Zip = $find('" + Zip.ClientID + "'); "; |
| js += "LocalBAN = $find('" + LocalBAN.ClientID + "'); "; |
| js += "Phone = $find('" + Phone.ClientID + "'); "; |
| js += "Email = $find('" + Email.ClientID + "'); "; |
| ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "InitControls", "function InitControls() {" + js + "}", true); |
| ScriptManager.RegisterStartupScript(this, this.GetType(), "InitControlsCall", "Sys.Application.remove_load(InitControls); Sys.Application.add_load(InitControls);", true); |