I has a form(file : hdnews.asp)...with many fields
including user id, name and contact no.On submit, the
system will post the data.
Beside the user id field, i put a button (named: Search)
with behavior on_click, it will open a window browser
(searchid.asp)with search user id function.

1) Below is the hdnews.asp code for the above button:
<td>
<input name="user_id" type="text" id="user_id" value="%">
<input name="user_id2" type="button" id="btnSearch"
onClick="MM_openBrWindow
('searchid.asp','SearchUser','scrollbars=yes,width =500,heig
ht=400');return document.MM_returnValue" value="Search">
</td>

2) The searchid.asp got 2 frame which is :top and bottom
frame,

3) The top frame code as below:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/helpdesk.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "%"
If (Request.QueryString("User_id") <> "") Then
Recordset1__MMColParam = Request.QueryString("User_id")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_helpdesk_STRING
Recordset1.Source = "SELECT User_id, User_Name,
Contact_no, Section_code FROM usermaster WHERE User_id
LIKE '%" + Replace(Recordset1__MMColParam, "'", "''")
+ "%'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<script language="JavaScript" src="searchid.asp"
type="text/javascript">
function close()
{
window.close();
}
</script>
<head>
<title>Search ID</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<p><strong><font size="5">Search User ID
</font></strong></p>
<form action="searchid_bottom.asp" method="post"
name="SearchForm" target="mainFrame" id="SearchForm">
<p>User ID :
<input name="U_ID" type="text" id="U_ID" value="%">
</p>
<p><input name="btnSearch" type="submit" id="btnSearch"
value="Search">

<input name="close" type="button" id="close"
onClick="return close()" value="Close">
</p>
</form>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

4) How to bring the value enter in user id field to top
frame field??

Thanks!

Rgds,
Rebecca