[Error] : Using HREF Error The resource cannot be found. In ASP.NET

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Jika kita menggunakan Tag Href di dalam page ASP.NET dan telah masuk ke dalam sub folder maka error "[Error] : Using HREF Error The resource cannot be found. In ASP.NET

Solusi untuk masalah diatas adalah menambahkan attribut runat="server" dan menambahkan slash ("~") di awal link.

Recommended Reading:
Page has one or more controls that do not correspond with controls in the Master Page

Seperti contoh dibawah ini.

Before :
<a href="forms/Monitoring.aspx">Monitoring</a>

After :
<a href="~/forms/Monitoring.aspx" runat="server">Monitoring</a>

Semoga posting artikel "[Error] : Using HREF Error The resource cannot be found. In ASP.NET" diatas dapat bermanfaat.


Salam,

Popular posts from this blog

K2 Error Value Cannot Be Null. Parameter Name: s In SmartView and SmartObject

Cara inject USB 3.0 Driver pada instalasi Windows - How to Inject USB 3.0 Driver in Windows 7

Pentaho Spoon Error : "Could Not Create The Java Virtual Machine"