G
Guest
I have a user control with name FoldersManager in the user control i have a
datagrid to view items retrieved from XML file
in ItemDataBound i did
if(e.Item.ItemType == ListItemType.Header)
{
e.Item.Cells[0].Text = "<input onclick='refresh(this);' type=checkbox
id=allmsg>";
}
when I run the page containing the user control i view HTML source in found
the
control like this:
<input id="oFoldersManager_dgFoldersInfo__ctl9_delmsg" type="checkbox"
name="oFoldersManager:dgFoldersInfo:_ctl9:delmsg" />
oFoldersManager : my user control object
dgFoldersInfo : DataGrid In the user control.
why the ID has this form though i provided the ID of control in ItemDataBoud.
datagrid to view items retrieved from XML file
in ItemDataBound i did
if(e.Item.ItemType == ListItemType.Header)
{
e.Item.Cells[0].Text = "<input onclick='refresh(this);' type=checkbox
id=allmsg>";
}
when I run the page containing the user control i view HTML source in found
the
control like this:
<input id="oFoldersManager_dgFoldersInfo__ctl9_delmsg" type="checkbox"
name="oFoldersManager:dgFoldersInfo:_ctl9:delmsg" />
oFoldersManager : my user control object
dgFoldersInfo : DataGrid In the user control.
why the ID has this form though i provided the ID of control in ItemDataBoud.