<div id="divvvv" runat="server"> <select id="ddlSelect" onchange="changeTest()" name="select1"> <option value="0" selected="selected">Choose a color</option> <option value="1">Red Star</option> <option value="2">Yellow Star</option> <option value="3">Pink Star</option> </select> in cs file call like this divvvv.Attributes.Add("onClick", "javascript:return BindSelect();");
ScriptManager.RegisterStartupScript(Me, [GetType](), "DatePicker", "DatePicker();", True)
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), 'yourKey', 'YourJSFunction();', true);
StringBuilder strBuilder = new StringBuilder(); strBuilder.Append("<script laungauge='javascript'>"); strBuilder.Append(" MethodName();"); //javascript function name strBuilder.Append("</script>"); //register script Page.ClientScript.RegisterStartupScript(GetType(), "InitDiag", strBuilder.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)