I want to redirect using to another page after item added, main point is to redirect user to another page on item adding(item should be added first) or item added.
EDIT
class ClassName: SPItemEventReceiver { HttpContext current; public ClassName() { current = HttpContext.Current; }
public override void ItemAdded(SPItemEventProperties properties)
{
try
{
this.DisableEventFiring();
if (IamRightItem(properties))
DOThis(properties);
else
{
string webAppUrl = string.Empty;
using (SPSite site = new SPSite(properties.SiteId))
{
webAppUrl = site.WebApplication.GetResponseUri(SPUrlZone.Default).AbsoluteUri;
}
if (!string.IsNullOrEmpty(webAppUrl))
{
string redirectLink = string.Format("{0}{1}{2}{3}{4}", webAppUrl, "my/page.aspx", "?Action=abcAction", "&URL=", properties.WebUrl);
SPUtility.Redirect(redirectLink, SPRedirectFlags.Trusted, current);
}
}
}
This code works for ItemUpdating but not for ItemAdded, why not :S

