随笔分类 - Asp.net
摘要:创建表及插入模拟数据:CREATE TABLE [sysMenuTree]([NoteId] [decimal](18, 0) NOT NULL,[ParentId] [decimal](18, 0) NULL,[sText] [nvarchar](50) NULL,[sValue] [nvarchar](50) NULL,[sURL] [nvarchar](50) NULL,[sTarget] [nvarchar](50) NULL,[Chger] [nvarchar](50) NULL,[ChgTime] [nvarchar](50) NULL)insert into sysMenuTre
阅读全文
摘要:实现效果:技术实现:前台代码:%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASPNet探秘._Default" %%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPre
阅读全文
摘要:效果图:技术实现:前台:%@ Page Language="C#" AutoEventWireup="true" CodeFile="RuKD.aspx.cs" Inherits="HuoDGL_DaY_RuKD" %!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml" head runat="server" t
阅读全文
摘要:WebService应用中如果收到的信息非常大时出错。1:Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。说明: 执行当前 Web 请求期间,出现未处理的异常。...
阅读全文
摘要:(一)后台写JavaScript方式Response.Write("<script>widow.alert(\" " + this.Test1.text + "\")</script>" );(二)Button的OnClientClick 属性方式注:点取消则不执行服务器端的OnClick事件例:<asp: button OnClientClick="return c...
阅读全文
摘要:在webform上实现走马灯效果 前台:<MARQUEE.stop().start() scrollamount=1 scrolldelay=1 direction= left border="1" style="width: 31%; height: 16px;"><%=Structure%></MARQUEE> 后台:public string Struct...
阅读全文
摘要:在webform开发中难免会遇到将GrilView中的数据转换成DataTable,下面的类将实现这个功能,但仅是显示出来的数据,如有分页得另行处理。 using System;using System.Collections.Generic;using System.Text;using System.Web.UI.WebControls;using System.Data;using Syst...
阅读全文
摘要:在Ajax Control Toolkit控件包中,发现CalendarExtender日历控件,只要把控件拖入就能够使TextBox弹出日期选择。可显示的都是英文。解决方案:在<asp:ScriptManager>控件里设置两个属性,如:<asp:ScriptManager EnableScriptGlobalization=true EnableScriptLocalizat...
阅读全文
摘要:基本用法:<frameset rows="20%,*"> <!--水平划分的第一个部分加载sample25_top.htm文件--> <frame src="sample_top.htm" name="top"> <!--水平划分的第二个部分并没有加载文件,是再垂直划分为两个部分--> <frameset cols="30%,*">...
阅读全文
摘要:在Asp.net 中Cookie的用法 protected void Page_Load(object sender, EventArgs e) { HttpCookie cookie = new HttpCookie("aspcn");//声明 Response.AppendCookie(cookie); } protected void Button1_Click(object sender,...
阅读全文
摘要:以下是html调用示例,ClassID为用vb自带的打包工具,打包获得的。<html><br><OBJECT ID="CtiClient"CLASSID="CLSID:FA2B1B95-359E-4320-BAB5-286450B9D863"CODEBASE="Cti_Client1100504.CAB#version=1,0,0,8"></OBJECT&...
阅读全文