[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Javasript in asp

Posted on 2004-10-20
3
Medium Priority
?
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
nan1217 earned 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…
Suggested Courses

656 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