Pass parameters to a user control - asp.net
- by Cristian Boariu
Hi,
I have this user control:
<user:RatingStars runat="server" product="<%= getProductId() %>" category="<%= getCategoryId() %>"></user:RatingStars>
You see that i fill the product and category by calling two methods:
public string getProductId()
{
return productId.ToString();
}
public string getCategoryId()
{
return categoryId.ToString();
}
I do not understand why, in the user control, when i take the data received (product and category) it gives me "<%= getProductId() %" instead of giving the id received from that method...
Any help would be kindly appreciated...