| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 449 人关注过本帖
标题:请问这个应该怎么样改?
只看楼主 加入收藏
lihaoru
Rank: 1
等 级:新手上路
帖 子:74
专家分:0
注 册:2004-11-11
收藏
 问题点数:0 回复次数:1 
请问这个应该怎么样改?
本来在ctc.vbs里是这样的
Sub Dwclient1_CallerIDComing(CallerID,ConnectStr)
m_InCallRef = 1
m_CallerID = ""
m_InboundCallTime = Now()
m_CallerID = CallerID
DialNumber.value = m_CallerID
m_CallLogID = InsertCallLog(time(), m_CallerID, "")
ExtStatus.innerHTML = CallerID + "来电"

CallerID = change(CallerID)
   Dim conn
'dim rstData
'conn = ConnDataBase2()
Set Conn = CreateObject("ADODB.Connection")
'Set Conn = CreateObject("ADODB.Connection")
'Conn.Open ConnStringTest
conn.open "DRIVER={SQL Server};SERVER=192.168.0.100;DATABASE=aa;UID=sa;PWD="aa"
   strSql = "SELECT * FROM T_Customerinfo where Chandset1 = '" & CallerID & "' or Chandset2 = '" & CallerID & "' or Ctel like '" & CallerID & "'"
'msgbox (strSql)
set rstData = DataToRsStatic(conn, strSql)
'Dim RsStatic1
    'On Error Resume NexT
    'Set RsStatic1 = server.CreateObject("ADODB.RecordSet")
    'RsStatic1.CursorLocation = 3
    'RsStatic1.Open strSql,Conn,3,3
dim con
con=rstData.recordcount
'msgbox (con)

if (rstData.BOF and rstData.EOF) Then
Cnickname.innerHTML="无记录"
else
'Do Until rstData.EOF
rstData.movefirst
dim n_Cnickname
n_Cnickname = rstData("Cnickname")
dim m_Cname
n_Cname = rstData("Cname")
dim m_Csex
n_Csex = rstData("Csex")
dim n_Caddress
n_Caddress = rstData("Caddress")
dim n_Chandset1
n_Chandset1 = rstData("Chandset1")
dim n_Chandset2
n_Chandset2 = rstData("Chandset2")
dim n_Ctelfirst
n_Ctelfirst = rstData("Ctelfirst")
dim n_Ctel
n_Ctel = rstData("Ctel")
dim n_Cblack
n_Cblack = rstData("Cblack")
dim n_Cstatus
n_Cstatus = rstData("Cstatus")
dim n_Cconsumescore
n_Cconsumescore = rstData("Cconsumescore")
dim n_Cscore
n_Cscore = rstData("Cscore")
dim n_Clevel
n_Clevel = rstData("Clevel")

   Cnickname.innerHTML = n_Cnickname
   Cname.innerHTML = n_Cname
Csex.innerHTML = n_Csex
   Caddress.innerHTML = n_Caddress
   Chandset1.innerHTML = n_Chandset1
Chandset2.innerHTML = n_Chandset2
Ctelfirst.innerHTML = n_Ctelfirst
    Ctel.innerHTML = n_Ctel
Cblack.innerHTML = n_Cblack
    Cstatus.innerHTML = n_Cstatus
Cconsumescore.innerHTML = n_Cconsumescore
Cscore.innerHTML = n_Cscore
Clevel.innerHTML = n_Clevel
count.innerHTML="共有" & con & "条记录"
在index.asp里的文件是这样的
<table table cellspacing=1 cellpadding=0 border=0 width="69%" bgcolor="#c3bfb3">
                                          <tr>
                                            <td width="100" bgcolor="#CCCCCC" class="td-detail"><div align="left">注册帐号</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Cnickname" style="COLOR: #666666"> </span></div></td>
                                          </tr>
                                          <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">会员姓名</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Cname" style="COLOR: #666666"> </span></div></td>
                                          </tr>
                                          <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">性别 </div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Csex" style="COLOR: #666666"> </span></div></td>
                                          </tr>
                                          <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">家庭住址</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Caddress" style="COLOR: #666666"> </span></div></td>
                                          </tr>
                                          <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">手机1</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Chandset1" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">手机2</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Chandset2" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"><div align="left">固定电话区号</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Ctelfirst" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">固定电话号码</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Ctel" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"><div align="left">是否黑名</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Cblack" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">会员状态</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Cstatus" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"><div align="left">消费积分</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Cconsumescore" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"> <div align="left">会员积分</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Cscore" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            <tr>
                                            <td bgcolor="#CCCCCC" class="td-detail"><div align="left">会员级别</div></td>
                                            <td width="120" bgcolor="#FFFFFF"><div align="center"><span id="Clevel" style="COLOR: #666666"> </span></div></td>
                                          </tr>
            
             </table>
本来是在VBS里输出的,现在我想让其在.asp的文件里输出(也就是在SERVER操作数据库),也就是当CallerID有值的时候让其刷新页面,请问这个asp里的事件应该怎么写,怎么样让CallerID值传过来
本来是想用window.open的,但他会打开个新页面,请问有没有其他的办法

[此贴子已经被作者于2005-10-19 13:32:45编辑过]


2005-10-19 13:30
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
window.open("url","_self")
window.location.href="url"

Response.Redirect(url)
2005-10-19 13:35
快速回复:请问这个应该怎么样改?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.027006 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved