Click here to Skip to main content
15,902,299 members

Comments by akhil.krish (Top 80 by date)

akhil.krish 26-Jan-16 5:48am View    
hello krishna rao,

iam using this code working fine...

Private Sub BindGrid()
Using ds As New DataSet()
ds.ReadXml(Server.MapPath("~/SiteInfo1.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo2.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo3.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo4.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo5.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo6.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo7.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo8.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo9.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo10.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo11.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo12.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo13.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo14.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo15.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo16.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo17.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo18.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo19.xml"))
ds.ReadXml(Server.MapPath("~/SiteInfo20.xml"))
GridView1.DataSource = ds
GridView1.DataBind()
End Using
End Sub

output file:
http://postimg.org/image/s1xtuzun7/


XML File....

<schema><sitename>
Al-Kharj
<devicename>
Netmate
<currdate>
29/06/2013
<currtime>
08:45
<temperature>
50.77
<humidity>
44.31
<waterleakage>
0
<smokedetect>
0
<ipaddress>
172.16.66.99
<contactname>
lijibin
<contactemail>
lijibin@139.com
<contactmobile>
13416424136
<contactphone>
02087344237

<generalinfo>
normal

<ipcam>
http://172.30.1.104



sir here i need any xml file error loop will continue .. leave to error XML file..

Environment Monitor device give every 5mins give to the XML file.. total 20 device is there.. some time any data center device problem.. leave to the that device remaining 19 device ping take the data..

errorfile:


http://postimg.org/image/pkvb2q745/


how to write this loop code.. here.

Advance Thanks
akhil.krish 26-Jan-16 2:31am View    
Private Sub BindGrid()
Using ds As New DataSet()
ds.ReadXml(Server.MapPath("~/Customers.xml"))
GridView1.DataSource = ds
GridView1.DataBind()
End Using
End Sub

where to add your code.. i have 20xml file there..

20xml data display on grid view sir..

please help me..

thanks for reply...
akhil.krish 2-Jun-14 5:14am View    
damith sl
checkbox also same code?
akhil.krish 2-Jun-14 4:48am View    
DamithSL Thanks for reply and solution....
akhil.krish 29-May-14 5:36am View    
outer join not working....