Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のWebページでは、テキストエリアを使用してユーザーから詳細を取得し、データベースに保存しています。
1.これは、ユーザーが入力した方法です
2.データベースへの格納方法
私たちのニーズ: 1.WireSet 2.Amps 3.Lights
今、私はいくつかの他のページで詳細を取得しています画像に表示されているように結果を表示する方法(1)
これを試して
var text = "Our Needs: 1.WireSet 2.Amps 3.Lights"; string[] items = text.Split(':')[1] .Split('.') .Where((s,i) => i % 2 != 0) .Select(s => s);
html で表示する場合は、次のようにします。
text.Replace(Environment.NewLine, "<br />");