Asp.net中的“喜欢"和“评论"功能 [英] like and comment functionality in Asp.net
本文介绍了Asp.net中的“喜欢"和“评论"功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨!
我需要使用喜欢"和评论"链接实现博客功能
在我的ASP.Net应用程序中.有人可以提供URL或代码吗?
谢谢!
Hi!
I need to implement blog functionality with Like and Comment links
in my ASP.Net application. Can anybody provide URLs or code please?
Thanks!
推荐答案
我确实想与您分享一个URL: http://www.google.com/ [^ ]
这是一些代码:
I do have an URL I''d like to share with you: http://www.google.com/[^]
Here is some code:
private void likeButtonWasClicked(int messageID)
{
IStorage store = StorageFactory.GetStorage();
IMessage msg = store.Load(typeOf(IMessage), messageID);
msg.Liked();
store.Save(typeOf(IMessage), msg)
}
干杯!
Cheers!
这篇关于Asp.net中的“喜欢"和“评论"功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文