使用c#中的StringBuilder进行href onclick事件 [英] href onclick event with StringBuilder in c#
本文介绍了使用c#中的StringBuilder进行href onclick事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用C#中的字符串构建器编写href onclick事件
how to write the href onclick event with string builder in C#
sbNews.Append("<a href="\'"">Click here to view more</a>");
如何为上述href
how to write the href onclick event for the above href
推荐答案
嗨
你在写引号时犯了错误。
你应该写这样的
Hi you have made mistake while writing quotes.
you should write like this
sbNews.Append("<a href='/'>Click here to view more</a>")
也适用于onclick活动。
for onclick event also.
sbNews.Append("<a href='/' >Click here to view more</a>")
这篇关于使用c#中的StringBuilder进行href onclick事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文