开发者

Permanent cookies

I am trying to re-create the functionality seen on 43things.com, where you enter a text and it gets added to the list below and also brings up "123 people want to do this". This entry seems to be permanently stored when you are visiting the site from your machine.

I am just wondering how this works? Is it just a cookie placed on the user's machine?

I also wanted to know how开发者_开发技巧 I could do the text addition in Ajax rather than having to postback? For ex. I just want an entry to be made and the "xxx want to do this" displayed as soon as the text has been submitted, like how it works with Facebook comments. Is there a component in AJAX control toolkit for ASP.net for this - I couldn't seem to find one?


They simply store that information in their database. Every visitor has a unique id or is signed in. they could store a cookie to recognize frequent visitors.

For the second part you want to use UpdatePanels <asp:UpdatePanel />

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜