hi lebisol,
I put the target on "main" but still the page is open on a new window
when I refresh all the frames then its open on the MAIN frame
and when on "edit mode" its open a new window
this is very strange for me also
see coding
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/tm.asp" -->
<%
Dim rscallid__MMColParam
rscallid__MMColParam = "1"
If (Request.Form("CallID") <> "") Then
rscallid__MMColParam = Request.Form("CallID")
End If
%>
<%
Dim rscallid
Dim rscallid_numRows
Set rscallid = Server.CreateObject("ADODB.Recordset")
rscallid.ActiveConnection = MM_tm_STRING
rscallid.Source = "SELECT * FROM Call WHERE CallID = '" + Replace(rscallid__MMColParam, "'", "''") + "' ORDER BY CallID ASC"
rscallid.CursorType = 0
rscallid.CursorLocation = 2
rscallid.LockType = 1
rscallid.Open()
rscallid_numRows = 0
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/content.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
@import url("css/newstyle.css");
-->
body {
background-color: #BBE7F9;
}
-->
</style></head>
<body OnLoad="document.form1.callid.focus();">
<form action="listviewresult.asp" method="post" name="form1" target="main">
<table width="200" border="0">
<tr>
<th scope="row"> </th>
<th scope="row"><div align="left">
<input name="callid" type="text" id="callid" onFocus="if(this.value=='Your callid')this.value='';" value="Your callid" maxlength="8">
</div></th>
</tr>
<tr>
<th scope="row"> </th>
<th scope="row"><div align="left">
<input type="submit" name="Submit" value="search">
</div></th>
</tr>
</table>
</form>
</body>
</html>
<%
rscallid.Close()
Set rscallid = Nothing
%>
gr. kisoen