2007年2月17日

Td,Table等自定义滚动条

摘要: 滚动条相关颜色属性:face-color:滑块颜色hightlight-color:高亮颜色3dlight-color:三维光线颜色darkshadow-color:暗影颜色shadow-color:阴影颜色arrow-color:箭头颜色tack-color:滑道颜色滚动条属性:overflow:auto为自动,yes为有,no为无overflow-x:横向滚动条overflow-y:纵向滚动条 阅读全文

posted @ 2007-02-17 12:05 badyue 阅读(1625) 评论(0) 推荐(0) 编辑

2007年2月7日

Aspx 静态化HTML

摘要: //生成HTML页 public static bool WriteFile(string strText,string strContent,string strAuthor) { string path = HttpContext.Current.Server.MapPath("/news/"); Encoding code = Encoding.GetEncoding("gb2312"); // 读取模板文件 string temp = HttpContext.Current.Server.MapPath("/news/... 阅读全文

posted @ 2007-02-07 12:53 badyue 阅读(697) 评论(0) 推荐(0) 编辑

2007年1月26日

一个生成缩略图的例子

摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Drawing.Imaging;using System.IO;public class iMerl 阅读全文

posted @ 2007-01-26 14:46 badyue 阅读(216) 评论(0) 推荐(0) 编辑

2007年1月19日

DataList里RadioButtonList的取值问题

摘要: RadioButtonList rbtl; foreach (DataListItem oDataListItem in DataList1.Items) { rbtl = (RadioButtonList)oDataListItem.FindControl("Rblselect"); string a = rbtl.SelectedValue.ToString(); this.Response.Write("<script>alert('" + a + "')</script>"); }下面还 阅读全文

posted @ 2007-01-19 22:23 badyue 阅读(231) 评论(0) 推荐(0) 编辑

Datalist里的RadiobuttonList绑定问题

摘要: 刚做了一点东西,一个考试的,我有了一点体会,表应该认真思考后建,不能想当然,比如说一个选择题的,用Datalist实现,(个人比较喜欢DataList嘿),选择项用RadioButtonList做,我刚开始是这样建表,sid sname sa sb sc sd,sabcd是选择项,然后绑定就是出问题,后来我发现建立2张表对现在提到的功能就能很好的完成表1(问题表)问题id(主键),问题内容,正确答案ID(从表的ID)表2(答案表)问题id(主键),答案id(主键),答案内容页面中写<ItemTemplate><tr><td><asp:label id= 阅读全文

posted @ 2007-01-19 20:56 badyue 阅读(491) 评论(0) 推荐(0) 编辑

一个不错的倒计时

摘要: <script language="javascript"> var _t;var a=parseInt(<%=str %>);//引入的一个后台变量if(a<60){ var _h = 0; var _m = 0; var _s = a; }if(a==60){var _h=0;var _m=1;var _s=0} else if (a<3600&&60<a){ var _h=0; var _m=parseInt(((a)/60).toString()); var _s=a%60;} else if (a>= 阅读全文

posted @ 2007-01-19 20:46 badyue 阅读(148) 评论(0) 推荐(0) 编辑

2006年6月13日

AJAX初探第一天

摘要: 呵呵学到这个东西XMLHttpRequest()open():建立到服务器的新请求。 send():向服务器发送请求。 abort():退出当前请求。 readyState:提供当前 HTML 的就绪状态。 responseText:服务器返回的请求响应文本0:请求未初始化(还没有调用 open())。1:请求已经建立,但是还没有发送(还没有调用 send())。2:请求已发送,正在处理中(通常现在可以从响应中获取内容头)。3:请求在处理中;通常响应中已有部分数据可用了,但是服务器还没有完成响应的生成。4:响应已完成;您可以获取并使用服务器的响应了。 阅读全文

posted @ 2006-06-13 18:34 badyue 阅读(103) 评论(0) 推荐(0) 编辑

2006年6月8日

Javascript的时间

摘要: <SCRIPT language=JavaScript>var day="";var month="";var ampm="";var ampmhour="";var myweekday="";var year="";mydate=new Date();myweekday=mydate.getDay();mymonth=mydate.getMonth()+1;myday= mydate.getDate();myyear= mydate.getYear();year 阅读全文

posted @ 2006-06-08 16:52 badyue 阅读(188) 评论(0) 推荐(0) 编辑

2006年5月31日

net开发日记13

摘要: <HTML><HEAD><script language="javascript">var m=39var s=60function daojishi(){if(m!=0){if(s!=0){s=s-1}else {m=m-1s=60aa() }window.defaultStatus=m+":"+ssetTimeout("aa()",1000)}}</script></HEAD></HTML> 阅读全文

posted @ 2006-05-31 17:27 badyue 阅读(113) 评论(0) 推荐(0) 编辑

NET开发日记12

摘要: <script> funtion mm() { .... }<script>btnNex.attribute.add("onclick","mm()");//----------------------------------------------------------------------<script language=javascript> function test() { alert("in javascript function"); }</script>Page.Re 阅读全文

posted @ 2006-05-31 16:37 badyue 阅读(109) 评论(0) 推荐(0) 编辑

导航