我想在网站上保留会员推荐链接.如何在ASP.NET中保持引荐链接 [英] I want to keep a affiliate referral link in website. How to keep referral link in asp.net

查看:49
本文介绍了我想在网站上保留会员推荐链接.如何在ASP.NET中保持引荐链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,亲爱的朋友,
我正在使用C#,ASP.NET开发一个新项目.我的项目已经准备就绪,但是我的客户还有1个要求,即用户可以通过注册的用户参考或直接访问他的网站.这意味着他想制定会员营销计划.现在我想知道,如果要添加此模块,如何将其添加到我的项目中.
例如:我发送www.codeproject.com/register/用户名 .aspx或www.codeproject.com/register/123456.aspx给我的朋友,他必须加入通过该链接.

有人可以解决我的这个查询吗?

Hello My Dear Friend,
I am Developing a new project using C#, ASP.NET. My project is ready but my client has 1 more requirement that a user can come to his site by registered user reference or directly. It means he want to make affiliate marketing program. Now I want to know that If I want to Add this module how can I add this in to my project.
For Example : I send www.codeproject.com/register/username.aspx or www.codeproject.com/register/123456.aspx to my friend and he must be join through that link.

Can anybody solve my this query?

推荐答案

最简单的方法是在会话中存储任何affiliate =查询参数,并且在注册新用户时,您拥有该会话变量可用,并且可以使用它来完成您喜欢的操作(我想将它记录在users表以及存储联盟会员奖励记录的某些表中).然后,用户可以将人们发送到yoursite.com/?affiliate= 用户ID .通常,除了注册外,您不希望对其进行任何操作,但是最好在整个会话过程中记住它,因为通常人们会浏览几页(丢失仅在URL中编码的任何内容),然后注册.
The simplest thing is to store any affiliate= query parameter in the session, and when registering a new user, you have that session variable available and can do what you like with it (I guess record it in the users table and also in some table that stores records of affiliate rewards). Then users can send people to yoursite.com/?affiliate=userid. Generally you don''t want to do anything with it except in registration, but it''s better to remember it for the whole session because often people will browse a few pages (losing anything that was encoded only in the URL) and then sign up.


这篇关于我想在网站上保留会员推荐链接.如何在ASP.NET中保持引荐链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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