Click here to Skip to main content
15,909,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how sloved this problem

ASP.NET
<asp:HyperLink ID="F" runat="server" Font-Underline="false"  NavigateUrl="StageCourseExeList.aspx?id="+ <%TFCourseID.Text.Trim(); %>  rel="[facebox]" rev="iframe|300|400"> <img  style="cursor:pointer" alt="" src="/Images/admin/grid/Show.gif" /></asp:HyperLink>

this error
The server tag is not well formed.
Posted
Comments
petra.elhashem 6-Sep-14 14:11pm    
use the codebehind
F.NavigateUrl=StageCourseExeList.aspx?id="+ TFCourseID.Text.Trim();
in page load event
if u just want to set it once but if it needs updating on TFCourseID text change u might one use javascript
saeed1364 9-Sep-14 23:59pm    
thanks

1 solution

The problem is around that + in the middle of nowhere - you should not mess with the code and the markup!
ASP.NET
<asp:hyperlink id="F" runat="server" font-underline="false" NavigateUrl="StageCourseExeList.aspx?id=<%=TFCourseID.Text.Trim();%>" rel="[facebox]" rev="iframe|300|400">
  <img style="cursor:pointer" alt="" src="/Images/admin/grid/Show.gif" />
</asp:hyperlink>
 
Share this answer
 
v3

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