随笔分类 -  c#

上一页 1 2 3 4 5 6 7 下一页
支持Flash swf 格式的HTML标签
摘要:<tr> <td> <embed src="images/index.swf" width="712" height="429"></embed> </td></trffff.swf就是flash<tr> <td> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.c 阅读全文
posted @ 2012-07-06 08:31 小东北 阅读(725) 评论(0) 推荐(0) 编辑
winform中 saveFileDialog 和openFileDialog 保存文件的用法
摘要:saveFileDialog 用法#region saveFileDialog的实现 { //string localFilePath, fileNameExt, newFileName, FilePath; string localFilePath = String.Empty; SaveFileDialog saveFileDialog1 = new SaveFileDialog(); //设置文件类型 save... 阅读全文
posted @ 2012-07-04 09:11 小东北 阅读(21614) 评论(0) 推荐(1) 编辑
winform下读取excel文件并绑定datagridview例子。
摘要:首先我要读取这个excel文件然后生成Datable用winform编程的方式前台界面:后台的代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace 读Excel文件{ public partial class Form1 :... 阅读全文
posted @ 2012-07-04 08:55 小东北 阅读(8279) 评论(0) 推荐(1) 编辑
关于按照数据库中date类型的数据更新。
摘要:intime 字段在数据库中存储的是date 类型 我要更新spr字段 按照intime 字段 更新 语句 如下:update cms_info_tbl set spr='aaaa' where intime = to_date('2012-6-21 10:49:09','yyyy-mm-dd hh24:mi:ss') 阅读全文
posted @ 2012-06-21 13:40 小东北 阅读(337) 评论(0) 推荐(0) 编辑
asp.net 中实现附件批量上传与下载。
摘要:实际上我这里一次性只能上传10个附件,就是通过js控制。 (另一个asp.net的批量上传:http://www.cnblogs.com/52net/archive/2012/06/14/2549174.html)上传界面:点击添加附件,添加完一个附件后,点击后面的继续可以继续添加附件。HTML代码: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="附件上传.aspx.cs" Inherits="wsw_测试_附件上传与下载_附件上传" %> 阅读全文
posted @ 2012-06-15 13:50 小东北 阅读(3818) 评论(4) 推荐(0) 编辑
绑定gridview去掉标题文字粗体。
摘要:<asp:TemplateField HeaderText="任务名称" HeaderStyle-Font-Bold="false"> <ItemTemplate> <asp:LinkButton ID="lbtn" runat="server" CommandName="Edit" Text='<%# Bind("RWMC") %>' ToolTip='<%# Bind(... 阅读全文
posted @ 2012-06-12 13:44 小东北 阅读(539) 评论(0) 推荐(0) 编辑
一个简单的显示阴历的日历。
摘要:源码:用.html的页打开 csdn 地址:http://download.csdn.net/detail/njxiaogui/4367847<html><head><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type&q 阅读全文
posted @ 2012-06-12 11:13 小东北 阅读(3450) 评论(1) 推荐(0) 编辑
Menu菜单的使用与样式。。。
摘要:最近的项目用到Menu菜单的使用,选中某一项后绑定gridview 并赋值 。CSS样式.mnuTopMenu{ background-color: #ecf6ff; border: solid 1px #d6e8ff; font-family: 宋体; font-size: 20px; color: #1E5494; }.DynamicMenuStyle /*动态菜单矩形区域样式*/{ background-color: #ecf6ff; border: solid 1px #d6e8ff; padding: 1px 1px 1px... 阅读全文
posted @ 2012-06-12 09:41 小东北 阅读(6805) 评论(0) 推荐(0) 编辑
一个好看的textbox鼠标滑动样式。。
摘要:当我鼠标移到第一个textbox上时,它明显变大了 并且带有颜色。html+CSS//CSS样式<style type="text/css"> .input_on{padding:2px 8px 0pt 3px;height:18px;border:1px solid #C9E0FF;background-color:#FAFAFA;}.input_off{padding:2px 8px 0pt 3px;height:18px;border:1px solid #C9E0FF;background-color:#FFF;}.input_move{padding: 阅读全文
posted @ 2012-06-12 09:15 小东北 阅读(1597) 评论(0) 推荐(0) 编辑
.net字段显示过长用...代替
摘要:比如说绑定gridview某个字段过长,用。。。显示,然后鼠标放上去显示全部内容。HTML代码:这时gridview用lable绑定。 ToolTip 是显示鼠标移上去的内容。<asp:GridView ID="grv" runat="server" DataKeyNames="zcbm" CssClass="dataTableStyle" ForeColor="#333333" CellPadding="3" CellSpacing="1" Gri 阅读全文
posted @ 2012-05-18 15:11 小东北 阅读(517) 评论(0) 推荐(0) 编辑
c#中定时器的实现。
摘要:c/s结构下定时器的实现在c/s结构下我就是想把时间实时更新出来。我用个lable显示出来。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 计时器{ public partial class Form1 : Form { public Form1()... 阅读全文
posted @ 2012-05-16 16:34 小东北 阅读(15373) 评论(0) 推荐(0) 编辑
jQuery实现公告无限循环滚动
摘要:http://www.cnblogs.com/qianduanzu/archive/2012/05/10/2493903.html 阅读全文
posted @ 2012-05-10 13:32 小东北 阅读(165) 评论(0) 推荐(0) 编辑
连接SQLServer,Oracle数据库语句。。。
摘要:连接SQLserver数据库: string albumName = TextBoxName.Text.Trim();//获取新建相册的名字 SqlConnection conn = new SqlConnection("Server=(local);database=电子相册;uid=sa;pwd=zouming");//连接数据库 conn.Open(); string sql = "insert into Table_Name (name)values('" + albumName + "')"; SqlComm 阅读全文
posted @ 2012-05-09 15:24 小东北 阅读(3302) 评论(0) 推荐(0) 编辑
鼠标放到图片上替换图片,改变样式。
摘要:方法一:用onmouseover和onmouseout 实现<asp:Imgbutton runat="server" src="drop.gif" onmouseover="this.src='drop.gif'" onmouseout="this.src='tabs2_2.gif'" />方法二:用 css 自带的样式去实现。CSS样式/*大按钮*/.btn_big{ border-style: none; border-color: inherit; border- 阅读全文
posted @ 2012-05-09 15:15 小东北 阅读(4178) 评论(0) 推荐(0) 编辑
JS控制checkbox实现把已经勾选的列出。
摘要:默认情况时这个样子的。当我勾选上两项后 点击已选择 就把我已经勾选的显示出来 没有勾选的不显示。点击全部 就把全部列出来。当我点击已选择 后点击已选择 <input id="Button2" type="button" value="已选择" onclick ="yxz();" /></td>JS控制:GridView_zc为帮点字段gridview的ID<script type="text/javascript"> function yxz() {//查看已 阅读全文
posted @ 2012-05-08 09:53 小东北 阅读(2967) 评论(0) 推荐(0) 编辑
gridview中某一列保留数值位有效小数位后两位。。
摘要:<asp:BoundField DataField="yz" HeaderText="原值" DataFormatString="{0:f2}" > <ItemStyle HorizontalAlign="Right" /> </asp:BoundField>红色的部份为保留位数。参考:http://www.cnblogs.com/lushuicongsheng/archive/2010/11/29/1891477.html 阅读全文
posted @ 2012-05-08 09:38 小东北 阅读(979) 评论(0) 推荐(0) 编辑
汉子字符转换成大写英文字母开头。。
摘要://ChineseStr为你自己想输入的汉子。。。。。 public static string ChineseCap(string ChineseStr) { string Capstr = ""; byte[] ZW = new byte[2]; ... 阅读全文
posted @ 2012-05-07 09:34 小东北 阅读(2536) 评论(0) 推荐(2) 编辑
asp.net 弹框的事件
摘要:asp.net中弹框的方式有很多种:1、基本方式: Response.Write("<script>alert('弹框!')</script>");2、页面有ScriptManager控件的时候: Page.ClientScript.RegisterStartupScript(Page.GetType(), "<script>alert('弹框!');</script>");3、执行 增、删、改 后提示,提示,之后跳转: Page.ClientScript.RegisterS 阅读全文
posted @ 2012-04-28 16:19 小东北 阅读(306) 评论(0) 推荐(0) 编辑
关于FCKeditor的使用与注意事项。
摘要:FCKeditor的使用。首先可以去我的CSDN下载FCKeditor;地址:http://download.csdn.net/detail/njxiaogui/4255422我的是已经设置好的了。。要引用进来 FredCK.FCKeditorV2.dll 这个文件。要把下载下来的fckeditor文件夹放在你项目的根目录下。首先在页面的开头要引用:<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2 阅读全文
posted @ 2012-04-25 16:13 小东北 阅读(1286) 评论(0) 推荐(1) 编辑
Javascript刷新父页面并关闭子页面
摘要:<script language="javascript">window.opener.opener = null;window.opener.location.replace(window.opener.location.href);window.close();</script> 阅读全文
posted @ 2012-04-24 09:13 小东北 阅读(319) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 下一页