• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Setting Form Field Value Via ASP

Seems pretty simply, but can't figure it out...

How do I do this at the very end of my ASP page?

if FX_ReqValue <> "" form1.company.value = session("Company")

The above code won't set the form field value.

Thanks,
MT
0
movoni
Asked:
movoni
1 Solution
 
thirdCommented:
if FX_ReqValue <> "" then

response.write "<script>form1.company.value = '" & session("Company") & "'</script>"

end if
0
 
movoniAuthor Commented:
Cool... thanks!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now