简体   繁体   English

如何为 clipboard.setText 的 html 代码添加前缀

[英]How to prefix html code for clipboard.setText

well trying to include in clipboard doesn't allowed in below code在下面的代码中不允许尝试包含在剪贴板中

 if (o["status"].ToString() == "200")
                {
                    TaskbarIcon tb = (TaskbarIcon)FindResource("notifyIcon");
                    tb.ShowBalloonTip("Upload Successful!", Screenshot.Properties.Resources.IMGURL + o["filename"].ToString(), BalloonIcon.Info);

                    Clipboard.SetText(Screenshot.Properties.Resources.IMGURL + o["filename"].ToString());

                }

below code need to pass下面的代码需要通过

Clipboard.SetText("<img src="Screenshot.Properties.Resources.IMGURL + o["filename"].ToString()\">"); 
Clipboard.SetText("<img src=\""+Screenshot.Properties.Resources.IMGURL + o["filename"].ToString()+"\">"); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM