上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 107 下一页
摘要: 作者:网际浪子专栏(曾用名littlehb) http://blog.csdn.net/littlehb/上传图片,要求图片200100象素,大小小于2M,如果图片不符合要求,不能上传,否则上传图片,上传以后对图片按系统日期动态命名,保留路径到数据库里。private void Button1_Click(object sender, System.EventArgs e){if(File1.PostedFile.ContentType.ToUpper().IndexOf("IMAGE")-1){System.Drawing.Image img= System.Drawing.Image.F 阅读全文
posted @ 2004-10-26 19:27 leonardleonard 阅读(192) 评论(0) 推荐(0) 编辑
摘要: EMBED SRC="MY_LIFE.RPM" WIDTH=300 HEIGHT=134 Tip:SRC是可以省略的,当mime Type 参数如下时:EMBED ...,TYPE="audio/x-pn-realaudio-plugin",...,这样做会产生不可预料的结果,因此强烈推荐你包含SRC属性,并且提供一个空的文件的文件名。 阅读全文
posted @ 2004-10-26 19:24 leonardleonard 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 将一些HTML替换掉eg:strContent=strContent.Replace("&","&");strContent=strContent.Replace("'","''");strContent=strContent.Replace("","<");strContent=strContent.Replace("",">");strContent=strContent.Replace("chr(60)","<");strContent=strContent.Replace("chr(37)",">");strContent=strContent.Replace 阅读全文
posted @ 2004-10-26 19:23 leonardleonard 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Response.Write("scriptwindow.opener=null;window.close();/script") ; 阅读全文
posted @ 2004-10-26 19:22 leonardleonard 阅读(120) 评论(0) 推荐(0) 编辑
摘要: public static long DirSize(DirectoryInfo d) { long Size = 0; // Add file sizes. FileInfo[] fis = d.GetFiles(); foreach (FileInfo fi in fis) { Size += fi.Length; } // Add subdirectory sizes. DirectoryInfo[] dis = d.GetDirectories(); foreach (DirectoryInfo di in dis) { Size += DirSize(di); } r 阅读全文
posted @ 2004-10-26 19:21 leonardleonard 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 如何得到数据库中所有表字段及字段中文描述以下资料,通过csdn的一位师兄从SQL版主那得到:sql中SELECT (case when a.colorder=1 then d.name else '' end) N'表名',a.colorder N'字段序号',a.name N'字段名',(case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end) N'标识',(case when (SELECT count(*)FROM sysobjectsWHERE (name in (SELECT name FRO 阅读全文
posted @ 2004-10-26 19:20 leonardleonard 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 作者:网际浪子专栏(曾用名littlehb) http://blog.csdn.net/littlehb/CREATE PROCEDURE LoginUser @loginUN char(50) OUTPUT, @loginPW char(40)ASif @loginPW = (select [password] from users where username=@loginUN) return 0;else return -1;GO要loginUN返回值,把它定义成OUTPUT的,相应的SqlCommand的参数定义里也定义也ParameterDirect.InputOutput类型的,这 阅读全文
posted @ 2004-10-26 19:18 leonardleonard 阅读(112) 评论(0) 推荐(0) 编辑
摘要: asp:RegularExpressionValidator id="revTextBox1" runat="server" ForeColor="Red" Display="Dynamic" ControlToValidate="textBox1" ValidationExpression="(\w|\W){1,100}"格式错误-只能输入不超过100个字符/asp:RegularExpressionValidator 阅读全文
posted @ 2004-10-26 19:18 leonardleonard 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 作者:网际浪子专栏(曾用名littlehb) http://blog.csdn.net/littlehb/在域控制器或备份域控制器上安装 Microsoft Visual Studio .NET 或 Microsoft .NET 框架后,如果您尝试运行 ASP.NET 应用程序,则浏览器会显示下面的错误信息: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Ref 阅读全文
posted @ 2004-10-26 19:15 leonardleonard 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 微软的解决办法using System; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Windows.Forms; public class PagingSample: Form { // Form controls. Button prevBtn = new Button(); Button nextBtn = new Button(); static DataGrid myGrid = new DataGrid(); static Label pageLbl = new 阅读全文
posted @ 2004-10-26 19:12 leonardleonard 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 107 下一页