thanks. but, when I run the code. I got an error. please help.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'System.Web.UI.WebControls.XmlDataSource' does not contain a definition for 'LoadXml' and no extension method 'LoadXml' accepting a first argument of type 'System.Web.UI.WebControls.XmlDataSource' could be found (are you missing a using directive or an assembly reference?)
Source Error:
|
Line 32: XmlDataSource xds = new XmlDataSource();
Line 33: xds.EnableCaching = false; // Caching is enabled by default. You must do this or your databound control will NEVER update
Line 34: xds.LoadXml(xml.InnerXml);
Line 35:
Line 36: |
here is my code:
localhost.getempinfo myempinfo = new localhost.getempinfo();
XmlNode xml = myempinfo.GetEmpDetailsXML(); // call method, return a xmlcodment which has firstname,lastname,email..
XmlDataSource xds = new XmlDataSource();
xds.EnableCaching = false;
xds.LoadXml(xml.InnerXml);
rpMyRepeater.DataSource = xds;
rpMyRepeater.DataBind();