Changing Target

Results 1 to 2 of 2

Thread: Changing Target

  1. #1
    Join Date
    Dec 1969

    Default Changing Target

    I have an asp that has a form on it with a submit button. When submit is pressed the action is to another asp and the target is set at that time.<BR>&#060;FORM METHOD="POST" ACTION="/content/scripts/result1.asp" Target="Report"&#062;<BR>Based on a checkbox selection in the first asp, I would like to change the target in the second asp. Is there a way to do this?<BR>Thanks, Dan<BR>

  2. #2
    Q.L Guest

    Default RE: Changing Target

    use variable in the target as :<BR>&#060;%dim sTarget<BR>if (checked) then<BR> sTarget="Report"<BR>else<BR> sTarget="Other target"<BR>end if<BR>%&#062;<BR>&#060;FORM METHOD="POST" ACTION="/content/scripts/result1.asp" Target="&#060;%=sTarget%&#062;"&#062;<BR>&#060;/form&#062;<BR><BR>it should work<BR><BR>happy programming<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts