S
Simon
In asp I have the code like this:
<%
sub createUrl(name,link,clas)
if clas=1 then
class="top"
else
class="left"
end if
url="<a class='"&class&"' href='"&link&"'>"&name&"</a>"
response.write url
end sub
%>
....
<tr><td><%=createUrl("page","page.asp",1)</td></tr>
<tr><td><%=createUrl("page1","page1.asp",2)</td></tr>
....
enywhere in page I need something I just call the sub or function with
<%Call sub or function%>.
I don't know how I can create the same in asp.net. I read one book but I
didn't found any example.
Can someone help me?
Thank you,
Simon
<%
sub createUrl(name,link,clas)
if clas=1 then
class="top"
else
class="left"
end if
url="<a class='"&class&"' href='"&link&"'>"&name&"</a>"
response.write url
end sub
%>
....
<tr><td><%=createUrl("page","page.asp",1)</td></tr>
<tr><td><%=createUrl("page1","page1.asp",2)</td></tr>
....
enywhere in page I need something I just call the sub or function with
<%Call sub or function%>.
I don't know how I can create the same in asp.net. I read one book but I
didn't found any example.
Can someone help me?
Thank you,
Simon