javascript - Email Script from server breaks Telerik RadGrid and RadDropDownList -
i using rad grid display information grid checkboxes mark items , using raddropdownlist can pick action , press button it. 1 of items send email emails of checked rows.
in button click call enumerate checked rows grid , put emails in string buffer , add script execute email on postback bring email.
clientscript.registerstartupscript(this.gettype(), "mailto", "<script type = 'text/javascript'>parent.location='mailto:" + emailtobuffer.tostring() + "'</script>") ;
this results in line
<script type = 'text/javascript'>parent.location='mailto:dana@here.com; '</script>
somehow innocent little line of javascript causes master checkbox on radgrid header line , raddropdownlist stop functioning completely. dropdown list not drop. value parent.location no else in view source html except inserted email line.
i cannot figure out solution problem, feels bug telerik objects break little self contained script. perhaps there way send email form browser given server not break telerik controls.
george
Comments
Post a Comment