Hi
- <td>
-
-
<span style="font-weight: bold;">Languages
-
</span>
-
<input
-
name="lang_id" id="langid" maxlength="25"
-
size="25" type="text"> <a
-
href="javascript:open()">Details</a></td>
-
<td><a
-
href="javascript:open_win()"><br>
-
</a></td>
In JS file
it will open the window and display the details
- function open()
-
{
-
window.open("Open.asp","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=320, height=400")
-
}
-
In Open.asp
Just to display the values in the table.
-
<%
-
Dim tt_Connection
-
Dim tt_Recordset
-
Dim counter
-
counter=0
-
Set tt_Connection = Server.CreateObject("ADODB.Connection")
-
Set tt_Recordset = Server.CreateObject("ADODB.Recordset")
-
tt_Connection.Open "DRIVER={MySQL ODBC 3.51 Driver};SERVER`=localhost;PORT=3306;DATABASE=table1;USER=root;PASSWORD=pass;OPTION=3;"
-
tt_Recordset.ActiveConnection = tt_Connection
-
tt_Recordset.open "Select Language_ID,Language from table1",tt_Connection
-
Response.Write "<table class='SearchTable' border='3' cellpadding='2' cellspacing='2' width='100%'>" &_
-
"<tbody> <tr>"
-
While (counter < tt_Recordset.fields.Count )
-
Response.Write "<td><b>" & tt_Recordset.fields(counter).Name & "</b></td>"
-
counter = counter + 1
-
Wend
-
counter = 0
-
Response.Write "</tr> <tr>"
-
While Not tt_Recordset.EOF
-
While (counter < tt_Recordset.fields.Count )
-
Response.Write "<td>" & tt_Recordset.fields(counter).Value & "</td>"
-
counter = counter + 1
-
Wend
-
Response.Write "</tr>"
-
tt_Recordset.MoveNext
-
counter = 0
-
Wend
-
Response.Write "</tbody></table>"
-
%>
-
I have finished till display. Now my task is to display the Language_ID in the textbox, which id i am selecting from the table.... Also it shd be in A href. I don knw how to proceed... pls help me...
Thanks