如何与herf发送prametr [英] how send prametr with herf

查看:63
本文介绍了如何与herf发送prametr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题如何解决



 <   asp:HyperLink     ID   =  F    runat   =  server   字体下划线  =  false < span class =code-attribute>     NavigateUrl   =  StageCourseExeList.aspx?id =     <%TFCourseID.Text.Trim();     >  rel =[facebox]rev =iframe | 300 | 400\" > <   img      样式  =  cursor:指针    alt   =     src   =  / Images / admin / grid / Show.gif    /  >  <  < span class =code-leadattribute> / asp:HyperLink  >  



这个错误

服务器标签格式不正确。

解决方案

问题出在附近t + 在不知名的地方 - 你不应该乱用代码和标记!

 <   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 < span class =code-attribute> alt = src = /Images/admin/grid/Show.gif\" / >
< / asp:hyperlink >


how sloved this problem

<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.

解决方案

The problem is around that + in the middle of nowhere - you should not mess with the code and the markup!

<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>


这篇关于如何与herf发送prametr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆