i have a lnkbutton in a datagrid.
commandname = viewpage
commandargument =
when the link is clicked the datagrid onitemcommand is called
and i want to set the attributes of the iframe source to the commandargument.
however a null reference exception occurs...
the walkthrough shows e.commandargument.tostring() has a value ( but the error still states a null refernce occurs.
any thoughts as to what i'm doing wrong?
Mr. Steve
commandname = viewpage
commandargument =
when the link is clicked the datagrid onitemcommand is called
and i want to set the attributes of the iframe source to the commandargument.
Code:
if (e.commandname == "viewpage")
iframe1.attributes["src"] = e.commandargument.tostring();
however a null reference exception occurs...
the walkthrough shows e.commandargument.tostring() has a value ( but the error still states a null refernce occurs.
any thoughts as to what i'm doing wrong?
Mr. Steve