Referral or Affiliate Code tracking Module in ASP.NET
来源:互联网 发布:用友软件的售后 编辑:程序博客网 时间:2024/05/22 03:12
module define:
public class HttpModuleTrack : IHttpModule, IRequiresSessionState{ #region IHttpModule 成员 public void Dispose() { } public void Init(HttpApplication context) { context.AcquireRequestState += new EventHandler(context_AcquireRequestState); } void context_AcquireRequestState(object sender, EventArgs e) { if (!string.IsNullOrEmpty(HttpContext.Current.Request.QueryString["a"])) { HttpContext.Current.Session["affiliateid"] = HttpContext.Current.Request.QueryString["a"]; } if (!string.IsNullOrEmpty(HttpContext.Current.Request.QueryString["b"])) { HttpContext.Current.Session["bannerid"] = HttpContext.Current.Request.QueryString["b"]; } } #endregion}
web.config:
- Referral or Affiliate Code tracking Module in ASP.NET
- Tracking Visitors with ASP.NET
- ASP.NET MVC Module
- Asp.net Module原理
- Tracking Code
- “Invalid postback or callback argument” in ASP.NET 的解决办法
- Code Naming Conventions Used in 《ASP.NET Unleashed》
- Sample Code on ASP.NET Validation in Depth
- Implementing Pooling in Application Module Code
- Add module to asp.net
- asp.net Http Module 介绍
- Troubleshooting the Tracking Code
- Al-Qaeda affiliate in&…
- Code Generation in Microsoft .NET
- How to troubleshoot 'Procedure or function has too many arguments specified' in asp.net 2.0
- PRB: CS0013 or CS0016 Compilation Errors in ASP.NET Web Applications
- Read and Display Data From an Excel File (.xsl or .xlsx) in ASP.NET
- Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download
- CString ,string, char 的操作
- SQL Server下字符串,整数转换成16进制字符串的方法
- 实现 ajax 多项选择框
- 每日的心得
- C++ Primer 习题解答 第一章
- Referral or Affiliate Code tracking Module in ASP.NET
- “钱为”生活
- 有关UNICODE、ANSI字符集和相关字符串操作的总结
- 用Activator .CreateInstance代替new实现类的实例化
- [c++学习]const用法总结篇
- 两数最大公约数
- jap 登陆模块的实现
- asp.net 2复合控件
- linux精选网址大全