Click here to Skip to main content
15,888,246 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi
i want when i click on [result] testFunc function excuted
but i get this error
XML
Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1026: ) expected

Source Error:


Line 10:     <form id="form1" runat="server">
Line 11:
Line 12:     <a href ='<%#testFunc("myString"); %>'>[result]</a>
Line 13:
Line 14:



in my page class:(CS)
C#
public string testFunc(string str)
        {
            return "00000" + str;
        }


in my ASPX file:
HTML
<a href ='<%#testFunc("myString"); %>'>[result]</a>
Posted
Comments
Ed Nutting 15-Sep-12 9:26am    
The error means your code does not compile because there is a bracket in the wrong place (or some other part of your code is wrong). Please review your code in Visual Studio for errors (try building locally) then upload all your files to your server. Without seeing your entire CS file, we cannot solve this problem for you. Please use the Improve Question link above to edit your question and include the whole file.

Thanks,
Ed

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