in ProductBox1.ascx usercontrol this following event not fire
protected void btnProductDetails_Click(object sender, CommandEventArgs e)
{
int productId = Convert.ToInt32(e.CommandArgument);
string productURL = SEOHelper.GetProductUrl(productId);
Response.Redirect(productURL);
}
eg. http://localhost:1675/category/29-books.aspx
when i was selected one book name say : AspPro2008 this name was rename as useing urlrewrinting
http://localhost:1675/products/114-Asp-Pro-2008.aspx -----> new url generated by nopcommerce code
i was got this url but in CategoryNavigation.ascx.cs page
protected void CreateChildMenu(List<Category> breadCrumb, int rootCategoryId, Category currentCategory, int level)
{
int padding = level++ * 15;
foreach (var category in CategoryManager.GetAllCategories(rootCategoryId))
{
var link = new NopCommerceLi();
phCategories.Controls.Add(link);
string categoryURL = SEOHelper.GetCategoryUrl(category);
if (currentCategory != null && currentCategory.CategoryId == category.CategoryId)
link.CssClass = "active";
else
link.CssClass = "inactive";
link.HyperLink.NavigateUrl = categoryURL;
link.HyperLink.Text = Server.HtmlEncode(category.LocalizedName);
if (padding > 0)
link.LiLeftMargin = padding.ToString();
for (int i = 0; i <= breadCrumb.Count - 1; i++)
if (breadCrumb[i].CategoryId == category.CategoryId)
CreateChildMenu(breadCrumb, category.CategoryId, currentCategory, level);
}
}
In place of categoryURL writen old url i.e http://localhost:1675/category/29-books.aspx in place of http://localhost:1675/products/114-Asp-Pro-2008.aspx
when we click books category Detail button is not working in local site as well as on websever we can debuge a hole page but not fire the btnProductDetails_Click() event ..
Please any one have the solution then tell me .
Dipesh