易截截图软件、单文件、免安装、纯绿色、仅160KB

js/css在ajax UpdatePanel 中没有效果的解决方法

js没效果:如果在以UpdatePanel的方式的局部回传中,普通的Javascript代码在这种局部回传中就不会在触发了,就必须使用scriptmanager.RegisterClientScript方法(在<form>后面注册<script>)和scriptmanager.RegisterStartupScript方法(在</form之前注册<script>)
在你的用户控件的后端的某个合适位置,采用合适的注册方法,比如说load事件可以写以下代码:
//你的javascript代码
string script="var a='helloworld';alert(a);";
this.page.scriptmanager.RegisterStartupScript(this.page,typeof(string),"scriptforusercontrol",script,true);
css没效果:
string   s   =   @"<LINK   href="Css/Styles5.css"   type="text/css"   rel="stylesheet">";  
ClientScript.RegisterStartupScript(this.GetType(), "", s);
这样就可以了。


相关文档:

AJAX Follow Me

最近网上提的很多的一个新概念就是 AJAX 了, 那么, AJAX 是什么呢? 以下内容引用网上资料:
AJAX全称为“Asynchronous JavaScript and XML”(异步JavaScript和XML),是指一种创建交互式网页应用的网页开发技术。它有机地包含了以下几种技术:
Ajax(Asynchronous JavaScript + XML)的定义
基于 web标准(sta ......

CSS的边界重叠规则

In this specification, the expression collapsing margins means that adjoining margins (no non-empty content, padding or border areas or clearance separate them) of two or more boxes (which may be next to one another or nested) combine to form a single margin.
In CSS 2.1, horizontal margins ne ......

基于JavaScript和CSS的Web图表框架横向对比

jQuery, MooTools, Prototype 等优秀的 JavaScript 框架拥有各种强大的功能,包括绘制 Web 图表,使用这些框架以及相应插件,我们可以非常轻松地实现曲线图,圆饼图,柱状图等 Web 图表的绘制,而不必象以往那样通过复杂的 Flash 技术实现。本文介绍了9个优秀的基于 JavaScript 与 CSS 的 Web 图表框架。 1. Flot Flot ......

div+css(二)

前言:CSS布局与传统表格(table)布局最大的区别在于:原来的定位都是采用表格,通过表格的间距或者用无色透明的GIF图片来控制文布局版块的间距;而现在则采用层(div)来定位,通过层的margin,padding,border等属性来控制版块的间距。
 
(一)  CSS2盒模型
盒模型主要定义四个区域:内容(content)、边框距(paddin ......

ajax repeater分页

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<mce:style type="text/css"><!--
.n{TEXT-DECORATION:none;cursor:pointer} a{color:black} a:hover{color:blue}
.m{TEXT-DECORATION:none;c ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号