This topic is locked

Setting Default Values

10/18/2005 10:42:35
ASPRunnerPro General questions
dcampbe11 author

I have a a table that includes:
Name 1

Name 2
I want to set the default value for Name2 to Name1 so it displays on the ADD page, but still allow the user to revise the Name2 value if it is not the same as Name1.
In the Formatting section the formating section, I set the default value for Name2 to Session("Name1"), but when I tested it on the ADD page the value for Name2 was blank.
DC

Sergey Kornilov admin 10/18/2005

Answered to your personal email.

cagleyleslie 10/18/2005

I'm interested in this also. Can you please post the solution? Thanks!

dcampbe11 author 10/19/2005

I'm interested in this also. Can you please post the solution? Thanks!



Richard,
to use Session variables you need to populate it first.
Somewhere on the ADD page you need to execute the following piece of code (after recordset is open)
Session("Name1") = rs("Name1")
--

Best regards,

Sergey Kornilov

E-Mail: support@xlinesoft.com