G
Guest
I have created a web control (.ascx).
I placed the control on one of my asp.net page.
In the control I have following properties..
public int itemId;
private string itemName;
public string iName
{
get
{
return itemName;
}
}
Code in the control gets the itemId and writes Item information through the
render function and sets the value of itemName like
this.itemName = dtReader.getString(2);
Within the control I have verified that the property itemName or iName
works, but on the ASP.NET page it comes empty.
I can't figure out what am I doing wrong.
Any help?
I placed the control on one of my asp.net page.
In the control I have following properties..
public int itemId;
private string itemName;
public string iName
{
get
{
return itemName;
}
}
Code in the control gets the itemId and writes Item information through the
render function and sets the value of itemName like
this.itemName = dtReader.getString(2);
Within the control I have verified that the property itemName or iName
works, but on the ASP.NET page it comes empty.
I can't figure out what am I doing wrong.
Any help?