hi,
Try This Article:
http://www.codeguru.com/Csharp/Csharp/cs_data/xml/article.php/c7141/
i think the error will be in:
dim fs as new filestream(server.mappath("C:\Documents and
Settings\l\cd_catelog.xml"),filemode.open,fileaccess.read)
may be FileStream not support ReadXML()
srikanth <[EMAIL PROTECTED]> wrote:
<[EMAIL PROTECTED] namespace="system.io"%>
<[EMAIL PROTECTED] namespace="system.data"%>
<html>
<script language="vb" runat="server">
sub form_load(src as object,e as EventArgs)
dim ds as dataset()
dim fs as new filestream(server.mappath("C:\Documents and
Settings\l\cd_catelog.xml"),filemode.open,fileaccess.read)
dim r as new streamreader(fs)
ds.ReadXml(r)
fs.close()
dim sv as new dataview(ds.tables(0))
s.innerhtml=sv.table.tablename
k.datasource=sv
k.databind()
end sub
</script>
<body>
<span runat="server" id="s"/>
<p>
<asp:datagrid id="k" runat="server"/>
</body>
</html>
the above is the actual program, when i execute this the error it
shows is readxml is not a member of system.array namespace
pleas tell wat actual is the problem over here
Compiler Error Message: BC30456: 'ReadXml' is not a member
of 'System.Array'.
Source Error:
Line 8: dim fs as new filestream(server.mappath("C:\Documents and
Settings\srudra1
\Desktop\xml\cd_catelog.xml"),filemode.open,fileaccess.read)
Line 9: dim r as new streamreader(fs)
Line 10: ds.ReadXml(r)
Line 11: fs.close()
Line 12: dim sv as new dataview(ds.tables(0))
SPONSORED LINKS
Programming languages C programming language Computer programming languages
Java programming language C programming language History of computer
programming language
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "AspNetAnyQuestionIsOk" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
------------------------------------
Appreciating your help,
Mohammed Rady
Solution Developer
Cell: 010 49 79 444
Email: [EMAIL PROTECTED]
Think Fast, Listen Too Much, Speak Too Slowly
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/