May 27, 2009

Data read from xml

DataSet ds = new DataSet();
ds.ReadXml(Server.MapPath("AlertTemplate.xml"));
DataView dv = new DataView(ds.Tables[0]);

string template = dv[0]["AlertTemplate"].ToString().Trim();

template = template.Replace("#Inventor1#", Name);
template = template.Replace("#ApplicationNo#", Application);
ds.Dispose();


In xml file :

write within alerttemplate tags

No comments:

Post a Comment