4
Reply

C# equivelent of a VBscript sub routine

Max Tenenbaum

Max Tenenbaum

Mar 10 2011 5:24 AM
2.1k
Hi,

I have just recently moved from VBscript / ASP classic to C# ASP.NET 3.5 and wanted to reuse a function which displays and image every time it's called using <%moregif%>

Sub MoreGif
response.write("<img border=""0"" src=""../images/more.gif""  style=""vertical-align:middle; margin-right:5px; margin-top:15px; width:66px; height:14px; padding-bottom:1px;"" />")
End Sub

How should I go about doing this?

Thanks

Answers (4)