I m working on an
web application which gives information of user which use specific mailing system
i get user name, mobilenumber,...., account lock status of user from oracle database.
this information is diplayed in Grid.
this is bound to webpage at runtime.
i m using
web service to bind datagrid to page at runtime
i m asked to add one more column to this grid with name "Unlock user" which contains a link.
if 'account lock status' value taken from database is "Y" then i need to show the "unlock link" in "Unlock Column" else show nothing.
i have bound the column to grid
I have bound this column using XML document. now to fulfill the above requrement i need to put if condition in xml document sayinf if lock status=y then only bind value of unlock link else not.
currently since i have not put the condition i get unlock link in all rows of unlock column
here is xml line for binding the unlock column
new XElement("cell", row["LOC_FLG"]),
new XElement("cell", "<img src='../Images/edit.gif' onClick=redirectpage('" + row["USER_ID"].ToString().Trim() + "'); ToolTip = 'Update'>" ),
can anyone tell me how to add if condition here