技术原创

     摘要: 有时为了布局需要,我们通常要把从数据库里取出来的标题只显示我们要求的个数,比如“热烈庆祝空军第一航空学院.......”,这里我是用c#在codebehind文件里加一个函数实现的:

#region 截取新闻标题
public string GetShortTitle(string str_title,int str_lenth)
{
if (str_title.Length > str_lenth)
  阅读全文
posted @ 2006-11-25 12:21 ddr888 阅读(1012) | 评论 (6)  编辑
     摘要:
<%
conn1.Conn();
//访问IP
String Ip=request.getRemoteAddr();
//获取IP来源算法
String ip1,ip2,ip3,ip4;

int x=Ip.indexOf(".");
ip1=Ip.substring(0,x);
Ip=Ip.substring(x+1,Ip.length());.....  阅读全文
posted @ 2006-10-13 15:14 ddr888 阅读(493) | 评论 (5)  编辑