摘要:
源代码完全公开,欢迎大家灌水!部分代码如下1. //Response.ContentType是输出流的 HTTP MIME 类型 //Response.ContentType --- word文件 //application/vnd.ms-excel --- excel文件 //更多格式请参考http://walleyekneel.iteye.com/blog/979524 HttpContext.Current.Response.Charset = "utf-8"; HttpContext.Current.Response.ContentEncoding = System 阅读全文
摘要:
父窗口的js代码: <script type="text/javascript"> function testalert() { var returnval = window.showModalDialog('default.aspx', 'example04','dialogWidth:400px;dialogHeight:300px;center:yes;help:yes;resizable:yes;status:yes'); alert(returnval); } </script>然后调用这个方 阅读全文
摘要:
1.配置文件部分节点 <connectionStrings> <add name="connstr" connectionString="dffsafds"/> </connectionStrings>获取string s = ConfigurationManager.ConnectionStrings["connstr"].ToString();2.配置文件部分节点<appSettings><add key="conn" value="~/App_D 阅读全文