Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,


I am designed the .html page.Then in the .aspx page I have put link button.If we click on link button it should go to the .html page.I tried by giving postbackurl on the link button.But i am getting below error message.

The HTTP verb POST used to access path '/WebSite1/dashboard-spy-template.html' is not allowed. 


Plz help me
Posted
Comments
[no name] 6-Dec-13 6:13am    
Are you using any URL rewriting?
Member 10234093 6-Dec-13 6:14am    
below is the code i have used in .aspx page.

<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/dashboard-spy-template.html">Go to Home Page
Member 10234093 6-Dec-13 6:17am    
sry.that property is not there in link button.
Member 10234093 6-Dec-13 6:21am    
That property is appearing in hyperlink button.Is this equal to linkbutton?
[no name] 6-Dec-13 6:22am    
U can use OnClick event

1 solution

try this

C#
The ASP.Net ISAPI DLL was plugged-in to translate all (*) URLs so had to follow these steps:

Click on the website
Choose Properties and on Virtual Directory tab click Configuration
Remove the ASP.Net ISAPI DLL (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll)
Restart IIS and try again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900