ASP.Net 删除xml文件中的数据(delete操作)

XML文件请见 ASP.Net中实现XMl的标识列(ID列)或自增长列
代码如下:
删除按钮事件:
None.gif   private   void  Btn_Delete_Click( object  sender, System.EventArgs e)
ExpandedBlockStart.gif        
{
InBlock.gif             
string uid = Session["uid"]//取得主键;
ExpandedSubBlockStart.gif
                string [] values = {uid};
ExpandedBlockEnd.gif                OperateXmlByDataSet.DeleteXmlRows(ViewState[
"filename"].ToString(),"userid",values);        }
OperateXmlByDataSet的DeleteXmlRow方法:

ContractedBlock.gif   DeleteXmlRows

你可能感兴趣的:(asp.net,delete,xml,string,session)