Hi,
I am trying to convert my classic asp code to .net. I have created user controls and put following code in one of the user controls.
and if my home page I have some code like this.
All my user controls are in a sub folder called "inc". In the topMenu user control it is giving me errors that it cannot recognize home and services variable.
What I need to do to make it work.
Thanks
I am trying to convert my classic asp code to .net. I have created user controls and put following code in one of the user controls.
Code:
<div id="buttons"> <ul id="topImages" class="menu" style="margin-left: -2px;"> <li> <img id="home" alt="Home" class="top" onclick="javascript:location.href='default.asp'" onmouseout="changeImage(this.id,'home_top<%=home%>.png');" onmouseover="changeImage(this.id,'home_top_over.png');" src="http://bytes.com/images/home_top<%=home%>.png" ></li> <li><img id="web" alt="Services" class="top" onclick="javascript:location.href='services.asp'" onmouseout="changeImage(this.id,'services_top<%=services%>.png');" onmouseover="changeImage(this.id,'services_top_over.png');" src="http://bytes.com/images/services_top<%=services%>.png" > </li> </ul></div>
Code:
<%@ Register TagPrefix="uc" TagName="topMenu" Src="~/inc/topMenu.ascx" %>
<%
Dim home, services As String
home = "_selected"
services = ""
%>
What I need to do to make it work.
Thanks
Comment