自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

程趣园

玉不琢,不成器

  • 博客(22)
  • 收藏
  • 关注

原创 jquery获取json对象属性

由于.net frameword3.5以上添加了对contenttype的检查,当ajax发送请求时,如果设置了contenttype为json,那么请求webservice时,会自动将返回的内容转为json的格式,json的格式iruxia{"d":"webservice方法返回的字符串内容"}这时出现一个问题了,如果方法返回的是一个json格式的字符串,那么如何获得实际的json对

2012-02-22 14:09:47 15552 2

转载 子页面访问父页面 和 跨iframe访问

1. A iframe的页面访问B iframe页面的内容。   parent.document.getElementById('B  iframe的ID').contentWindow.document.getElementById('B  iframe页面要访问的元素ID')2.  A iframe的3级页面访问B iframe页面的内容。    window.op

2012-02-20 12:27:20 1658

转载 javascript 获取页面高度(多种浏览器)

function getInfo(){    var s = "";    s += " 网页可见区域宽:"+ document.body.clientWidth;s += " 网页可见区域高:"+ document.body.clientHeight;    s += " 网页可见区域宽:"+ document.body.offsetWidth + " (包括边线和滚动条的宽

2012-02-10 12:27:59 480

转载 Asp.Net处理Session失效解决方案

检查ASP.NET Session是否失效,是否超时,默认是20分钟,设置的方法是Session.TimeOut=30;或者您可以设置到更高,这个数值的单位是分钟,大家视情况而定。      检查代码有无Session.Abandon()之类的。一旦调用 Abandon 方法,当前会话不再有效,同时会启动新的会话。ASP.NET中使用了ACCESS数据库,而且数据库是放在bin目录中的。解

2012-02-09 13:53:58 846

转载 C#打印(PrintDocument、PrintDialog、PageSetupDialog、PrintPreviewDialog)

这几天一直在弄C#打印,下面整理过后的打印范例,主要介绍了PrintDocument的主要属性、方法的应用。及打印过程中可能用的到得PrintDialog、PageSetupDialog、PrintPreviewDialog对话框。代码:using System;using System.Collections.Generic;using System.ComponentMod

2012-02-09 13:47:29 3066

转载 C#中直接打印Report文件(rdlc)

Visual Studio自带的报表文件(rdlc,后面提到的报表,都指rdlc报表文件)虽然功能相对不是十分强大,但应付一般的报表要求也是绰绰有余了。关于rdlc报表的使用和设计方法,这里就不做讲解了,本文主要介绍一下如何不使用报表预览控件(ReportViewer),直接将报表的内容在打印机上打印出来。一般情况下,我们设计好报表后,在程序运行的时候,会将其加载到ReprotViewer控件

2012-02-09 13:44:43 6902

原创 Validation of asp.net radiobuttonlist

http://www.w3.org/1999/xhtml">                    function RadioButtonList1_Validation(sender, args) {            args.IsValid = false;            args.IsValid = $('# input:radio:checked

2012-01-19 17:01:50 388

原创 Validation CheckBoxList in asp.net form

http://www.w3.org/1999/xhtml">                    function CheckList1_Validator(sender, args) {            args.IsValid = false; //Default the validation return value to false

2012-01-19 16:35:54 371

原创 Validation date range in aps.net form

http://www.w3.org/1999/xhtml">                            $(document).ready(function () {            var startDate = $('#txtStartDate');            var endDate = $('#txtEndDate');

2012-01-19 16:17:46 440

原创 char limit validation in multiline asp.net textbox

http://www.w3.org/1999/xhtml">                .alertmessage        {            color:#FF0000;        }                    $(document).ready(function () {            var minCou

2012-01-19 14:21:53 290

原创 Validation of basic field types in a user profile form

.errorContainer        {            display: none;        }        .alertMsg        {            margin-left: 20px;            color: #660000;        }        .input-heightlight

2012-01-19 12:08:23 382

原创 validation of a simple user login form

http://www.w3.org/1999/xhtml">                .alertmsg        {            color: #FF0000;        }                        $(document).ready(function () {            var val

2012-01-19 10:22:33 319

原创 Updating url of asp.net hyperlink at runtime

http://www.w3.org/1999/xhtml">                    $(document).ready(function () {            $('# input:radio').bind("change", function () {                $('a').attr("href", $(this).va

2012-01-18 17:17:32 344

原创 Creating back to top asp.net hyperlink

http://www.w3.org/1999/xhtml">                .backtotoplink        {            cursor:hand;            color:#00FF00;        }                    $(document).ready(function (

2012-01-18 17:03:17 332

原创 Append items at runtime to a dropdownlist

http://www.w3.org/1999/xhtml">                    $(document).ready(function () {            $('#').bind("change", function () {                $('# option').remove();                v

2012-01-18 16:47:06 252

原创 get select text and value from dropdownlist

http://www.w3.org/1999/xhtml">                    $(document).ready(function () {            $('#').bind("keyup change", function () {//use bind() to attach a handler to the keyup and chan

2012-01-18 16:31:31 465

原创 selecting deselecting all items in checklist

http://www.w3.org/1999/xhtml">                    $(document).ready(function () {            $('#').click(function () {                //Use the jQuery selector to retrieve all checkboxe

2012-01-18 16:11:41 246

原创 Display selected items of a checkboxlist

http://www.w3.org/1999/xhtml">                    $(document).ready(function () {            $('#').click(function () {                var str = "";                $('#message').text(s

2012-01-18 15:42:54 275

原创 Highlight text in textbox and copy

http://www.w3.org/1999/xhtml">                ::selection        {            background-color:#0000FF;        }        a        {            cursor:hand;            color:#0000F

2012-01-18 15:17:50 404

原创 Disallowing cut copy paste operations on a textbox

http://www.w3.org/1999/xhtml">                    $(document).ready(function () {            $('#').bind("cut copy paste", function (e) {//use bind to attach the required event handler for

2012-01-18 14:43:51 338

原创 Auto focus on the first textbox and tab on the entery key

$(document).ready(function () {            $('input:text:first').focus();//use $('input:text:first') selector to retrieve a handle to the first ASP.NET TextBox            $('input:text').bind("key

2012-01-18 14:40:36 413

原创 Creating default text for textbox

http://www.w3.org/1999/xhtml">                .defaultText        {            font-style:italic;            color:#CCCCCC;        }                    $(document).ready(

2012-01-18 14:36:02 494

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除