Ask a Question related to ASP Database, Design and Development.
-
Rebecca #1
How to get value entered in one file to a pop-up open new window's field??
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
Rebecca Guest
-
SOS! To validate if form field entered by user is validnumber (not a negative value)
Pls see my question as below... gclausen, This is actually a school assignment, which doesn't allow the use of Javascript. Anyone can help,... -
Validate if form field entered by user is valid number(not a negative value)
Thank you so much for reading my question. Hi, I have a actionpage that allows update of information/price to my database. My form page... -
Open file, make changes, save file, close, re-open, file contents not changed
I've now run into this several times and it's completely destroyed all of my confidence in Ilustrator CS on Mac. I'm hoping someone can confirm that... -
Window's Mouse Moving
Is there any chance to move the real windows mouse button with actionscript? Like Authorware! I'll Appreciate any suggestions! bye! -
Automatically update a field when another field is entered.
I am trying to create a field in a form that will be automatically populated when another field is entered. I have facility names with related ID...



Reply With Quote

