Website openantrag.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
OpenAntrag/OpenAntragLib/Extensions/TagBuilderExtension.vb

25 lines
552 B

Imports System.Runtime.CompilerServices
Imports System.Web.Mvc
Imports System.Text
Public Module TagBuilderExtension
<Extension()>
Public Sub Append(tb As TagBuilder, value As String)
Dim stb As New StringBuilder(tb.InnerHtml)
stb.Append(value)
tb.InnerHtml = stb.ToString
End Sub
<Extension()>
Public Sub Append(tb As TagBuilder, value As TagBuilder)
Dim stb As New StringBuilder(tb.InnerHtml)
stb.Append(value.ToString)
tb.InnerHtml = stb.ToString
End Sub
End Module