VB/HTML button - i cant get it to work

Hi guys,

i'm trying to add a button in my request/response, but for some reasone it not working and i cant figure out why :S
If i do it with a simple text it works

kindly help:

this is what i have:

else
		Response.Write L_PasswordChanged_Text & " " & L_System_Login &".<p>"
		Response.write ("<a href='https://www.google.dk/'>test</a>") '<--this works but no button
		Response.Write ("<input type='button' id='butTest' value='Knap' onclick='window.location=https://www.google.dk/'>") '<---- doesn't work
		Response.Write "<br><H3><a href=" & Server.HTMLEncode(Request.ServerVariables("HTTP_REFERER")) & ">" & L_Back_Text & " </a></H3>"
		Response.End

Open in new window

LVL 1
HakumAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FarWestCommented:
could you post the source text "from view source" of the generated html
0
HakumAuthor Commented:
Here it is:

<HTML style="font-family: arial;">
<p><img src="/iisverpwd/shb-logo166x18-hex005fa4.png" style="float:right;"></p>  
<h2 style="font-family: arial;">HITS/Espresso Password
</h2>

<head>
	<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
</head>
<title>HITS Autenticering</title>
<STYLE>
</STYLE>

	
<BODY BGCOLOR=#FFFFFF LINK=000000 VLINK=000000>





<!-- Windows NT Server with IIS  -->

	<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
	<TR VALIGN=CENTER>
		<TD></TD>
		<TD WIDTH=20> </TD>
		<TD><FONT SIZE=+3 COLOR=#000000><B><BR> <FONT SIZE=-1><FONT></B></FONT></TD>
	</TR>
	</Table>
   

<!-- Windows NT Workstation with PWS  -->

<p style="font-family: arial;">

Dit password er hermed ændret.  Du kan få adgang til xxxxxxx Applikationer ved at klikke på et af de nedenstående links.<p>
<a href='https://www.google.dk'>Espresso</a>

Open in new window

0
KimputerCommented:
Are you sure it's correct ? Source says "test", while your page says "Espresso" (and misses two lines)?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

FarWestCommented:
I mean after executing the code, and the control is shown in the form,
or this is not happening?
0
HakumAuthor Commented:
Sorry sent you the wrong source :S

this the correct one

<HTML style="font-family: arial;">
<p><img src="/iisverpwd/shb-logo166x18-hex005fa4.png" style="float:right;"></p>  
<h2 style="font-family: arial;">HITS/Espresso Password
</h2>

<head>
	<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
</head>
<title> HITS Autenticering</title>
<STYLE>
</STYLE>

	
<BODY BGCOLOR=#FFFFFF LINK=000000 VLINK=000000>




<p style="font-family: arial;">
<br>
Dit password er hermed ændret.  Du kan få adgang til xxxxxx Applikationer ved at klikke på et af de nedenstående links.<p><br><br><a href='https://incident.shbmain.shb.biz'>Incidentrapportering</a><input type='button' id='butTest' value='Knap' onclick='window.location=https://www.google.dk/'>

Open in new window

0
HakumAuthor Commented:
I think i figured it out. since this works:

Response.Write ("<input type='button' id='butTest' value='Knap' onclick=window.location.href=https://www.google.dk/'>")

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HakumAuthor Commented:
Thanks alot tho!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.