我有一個html響應消息,我想添加一個鏈接。是否有可能將鏈接添加到以下幾點:c#如何添加一個鏈接到響應消息
responseMsg.InnerText = "Your postcode is in the network, so please proceed to Step 2.";
我嘗試以下,但它造成的用戶控件崩潰:
responseMsg.InnerText = "Your postcode is in the network, so please <a href="#">proceed to Step 2</a>.";
你是什麼意思崩潰? – codingbiz
用單引號替換#周圍的雙引號,並在前面放置@符號。即@「Your post ... ... –
問題很明顯,這要歸功於語法突出顯示! – Blorgbeard