Ok found it a bug in my code this is the code: var javaScriptText = new StringBuilder(); javaScriptText.Append("<script type=\"text/javascript\"> function onNeroClickButton() { "); <br /> javaScriptText.Append(string.Format("var control = document.getElementById('{0}'); ", this.txtInput.ClientID)); <br /> javaScriptText.Append(string.Format("var url = '{0}?popUp=true&code=' + control.value ;", url)); <br /> javaScriptText.Append("return dnnModal.show(url,/*showReturn*/true,300,650,true,''); } </"); <br /> javaScriptText.Append("script>"); <br /> <br /> Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "popupnero", javaScriptText.ToString()); |