Author: svetsarn | Posted on: 11/5/2010 12:09:15 AM | Views : 249

I have a page with lots of controls that get there info from my db. First time I load the page everything works fine, in this case I can take the productId from the querystring. When I change color or size in dropdowns I don't know how I can get the new productId.
When I change the size in a dropdown, I have it set to autopostback. Efter the postback I need to get the new product from the db. There is a new product for every color and size.
This is my code: 

public string ProductId; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ProductId = Request.QueryString["ProductId"]; bindControls(); bindDropDowns(); } bindControls(); bindDropDowns(); } private void bindControls() { rptCategories.DataSource = ProductAccess.GetCategoriesWithPro ...

Go to the complete details ...