<asp:TextBox ID="TESTBOX" runat="server">SOME TEXT Query=0 MORE TEXT</asp:TextBox>
Protected Sub btnReplace_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim QueryID As String
QueryID = Request.QueryString("Query")
Dim MyText As String = Me.TESTBOX.Text
Dim MyTextNew = MyText.Replace("Query=0", "Query=" & QueryID)
TESTBOX.Text = MyTextNew
End Sub
问题 如何在 ASP.NET VB 中用变量替换文本?