调用功能背后的代码 [英] Calling Code Behind Function

查看:72
本文介绍了调用功能背后的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在代码后面生成锚标签。



 lblM.Text =  <aönclick=想要调用代码功能< span class =code-string>  />我的链接< / a>  





这将是标签文本。我想点击此链接调用代码后面的代码。



如何编写/调用来自onclick of anchor tag?





谢谢

解决方案

check这个

在javascript中调用代码隐藏功能/ [ ^ ]



从javascript调用函数后面的代码 [ ^ ]

Hi all,

I am generating anchor tag in code behind.

lblM.Text = "<a önclick="WANT TO CALL CODEBEHIND FUNCTION" />My Link</a>



this will be label text. I want to call code behind function on click of this link.

How to write/call it from onclick of anchor tag?


Thanks

解决方案

check this
calling code behind function in javascript/[^]

calling code behind function from javascript[^]


这篇关于调用功能背后的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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