TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chitra
NA
34
21k
Error in reading xml file
Aug 9 2011 2:36 AM
hi,
i am getting the following error,'http:/synd.cricbuzz.com/ashwl/scores-multi.xml' is not a valid virtual path. please suggest me how to remove this error.
protected void Page_Load(object sender, EventArgs e)
{
string xmlfilepath = Server.MapPath(@"http://synd.cricbuzz.com/ashwl/scores-multi.xml");
if (File.Exists(xmlfilepath))
{
using (DataSet ds = new DataSet())
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(File.ReadAllText(xmlfilepath));
ds.ReadXml(new XmlNodeReader(doc));
Repeater2.DataSource = ds;
Repeater2.DataBind();
}
}
Reply
Answers (
1
)
Get character position and select in Web browser control on mouse hover event
Silverlight UserControl Button page Navigation