Javascript popup window with ASP variable
I have an asp page which reads records from a database and builds up a table. Part of this table has an input button which calls a javascript function called popupwin, passes across the url and other stuff.
The main problem I have is that I am trying to pass across an asp variable called strRoomTypeCode but I am having no luck.
Code;
<input class=classbuttontiny onclick="javascript:popupWin('roomdetails.asp?room code=' <%=strRoomTypeCode%>,640,500,'yes')" type=button value=L>
If I omit the <%=strRoomTypeCode%>, it works fine but obviously does not pass across this variable.
If I leave this code in I just get the appearance of a button being pushing in and nothing else.
Help would be great.
Any help would be great.
|