我怎樣才能在剃刀CSHTML頁面格式的字符串,如果它不再那麼X caracters:替換字符串點結束時,如果字是不再那麼X
<p>@Model.Council</p>
Example for an X = 9
-> if Council is "Lisbon", then the result is "<p>Lisbon</p>"
-> if Council is "Vila Real de Santo António", then the result is "<p>Vila Real...</p>" with the title over the <p> "Vila Real de Santo António" showing the complete information
感謝。
嗨,謝謝你的幫助。由於他的簡單性,我決定爲您的解決方案。再次感謝。 – Patrick
這是我的答案的確切副本 –
它在你之前,或在同一時間。 :( – WhyMe