Solved

Javasript in asp

Posted on 2004-10-20
3
201 Views
Last Modified: 2010-04-06
Can I put something like this:  <FORM><INPUT TYPE="BUTTON" VALUE="Go Back"
ONCLICK="history.go(-1)"></FORM>
in a response.write statement?

maybey I am just thinking wrong but I want the button to appear when an if is true.
0
Comment
Question by:dtolo
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
nan1217 earned 250 total points
ID: 12360761
Yes, you can do that.  For instance...

If myvalue=true Then
   Response.Write "<FORM><INPUT TYPE=""BUTTON"" VALUE=""Go Back"" ONCLICK=""history.go(-1)""></FORM>"
end if

Notice that in order to get the quotes to output, you have to escape them with another quote so all of the quotes are doubled up.

0
 
LVL 2

Author Comment

by:dtolo
ID: 12360870
This ends up giving me two back buttons.
0
 
LVL 2

Author Comment

by:dtolo
ID: 12360945
I am sorry.  I am buggin' thanks for your help ;)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to build a joomla menu that works like this flash example 8 60
iOS retina Display, HTML Email Signature 5 509
Format results with PHP 3 75
CSS Question.. 3 85
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question