2 vb.net asp.net textbox loops multiline
我正在尝试遍历多行文本框的每一行.就像是:
For Each line In Me.txtBox1.Lines
Response.Write line.Text
Next
Run Code Online (Sandbox Code Playgroud)
有没有任何巧妙的方法来做到这一点,或者我需要编写逐字符解析器并寻找回车?
谢谢你的帮助,
贾森
For Each line As String In Me.txtBox1.Text.Split(vbLf)
Response.Write(line)
Next
Run Code Online (Sandbox Code Playgroud)