Click here to Skip to main content
15,881,248 members

Comments by Maho^^^ (Top 7 by date)

Maho^^^ 16-Mar-13 10:09am View    
tnx for your time, here you go:

string categoryId = Request.QueryString["CategoryID"];
string colorId = Request.QueryString["ColorID"];

if (categoryId == null & colorId == null)
{
this.ProductsDataList.DataSource = GetAllProducts();
this.ProductsDataList.DataBind();
}
else if (CategoryId != null)
{
this.ProductsDataList.DataSource = GetProductsByCategory(categoryId);
this.AdvList.DataBind();
}
else if (colorId != null)
{
this.ProductsDataList.DataSource = GetProductsByColor(colorId);
this.ProductsDataList.DataBind();
}
else if (categoryId != null && color != null)
{
this.ProductsDataList.DataSource = GetProductsByCatAndColor(categoryId, colorId);
this.ProductsDataList.DataBind();
}
But this nothing got to do with QueryString Parameters and Url... Im trying to find a way how to deal with querystrings in Url...
Maho^^^ 15-Mar-13 14:59pm View    
yes, Im doing that. Im passing QueryString to method and i get the result but im wondering how to filter retrieved data using second and third querystring...
Maho^^^ 23-Nov-12 11:15am View    
tnx it helped me.
Maho^^^ 12-Nov-12 15:33pm View    
yes I have tried that ... but I think e.Item or something like that is used for handling evants, I just want to access <asp:Image control and to add ImageUrl to it which is just a string value
Maho^^^ 12-Nov-12 15:20pm View    
yes, exception thrown exactly at "img.ImgUrl = a.ImagePath"