我下一步:我想設置值的HTML控件時出現錯誤
在Page_Load事件:
string linkPatches = "PageProcessor.aspx?Page=Patches.aspx&system=" + Request.QueryString["system"];
在HTML:
<li><a href="<% =linkPatches %>" style="color:White;">Патчи</a></li>
我也得到一個錯誤:
CS0103: The name 'linkPatches' does not exist in the current context
+1。我喜歡你的建議比糾正錯誤更好。 –
@SimonWhitehead Thx。我也是+1,因爲它仍然是一個很好的概念。 – MikeSmithDev
@MikeSmithDev保護有什麼問題?爲什麼它應該公開。 –