This topic is locked

Read Only box display's Master Info

8/12/2008 3:54:26 PM
ASPRunnerPro General questions
S
stealthwifi author

I have 2 tables Policy and Claims

Policy is the master page for Claims
Policy contains a few field like Policy #, Client, Start, End
I would like those fields to be displayed in a read only boxes on the Add/Edit page for the Claims table.
How would one go about doing that?
Cheers,
P.S I found these links in the forum and they don't seem to cover what I need:
http://www.asprunner.com/forums/index.php?...+in+detail+page

P
Philip 8/12/2008

Stealth,
I had a similar problem und solved it by an "befor display" event this way:
'** Custom code ****

str = "select * from TABLENAME where KEYFIELD=" & Request("editid1")

Set rsTemp = server.CreateObject("ADODB.Recordset")

rsTemp.open str, dbConnection
Session("Fieldname_A") = rsTemp("Fieldname_A")

Session("Fieldname_B") = rsTemp("Fieldname_B")
'** Custom code: ****
Response.write session("Fieldname_A")

Response.write session("Fieldname_B")
Hope this helps.

Philip