Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

Monday, March 13, 2017

Read XML file and display data using asp.net MVC

Sunday, March 12, 2017

Import XML data into Sql table using Sqlbulkcopy in asp.net

In this article I am going to explain how to import XML file data into Sql table using Sqlbulkcopy in asp.net.


Description:
I have an xml file (student) which store the information of student and want to import its data into Sql table using Sqlbulkcopy.

Saturday, March 11, 2017

Import XML file data into sql table using store procedure in ASP.NET

In this article I am going to explain how to import xml file data into sql table using store procedure in asp.net.


Description:
I have an xml file (student) which store the information of student and want to import its data into sql table.

Wednesday, May 29, 2013

How to Bind XML file to Gridview in Asp.net


Introduction: In this post I will explain how we can bind the XML file to Gridview in Asp.net.
Description:
I have created a XML file named Student_Detail.xml and have data below mention:
<?xml version="1.0" encoding="utf-8" ?>
<Detail>
  <Student>
  <Name>Vijay</Name>
  <Address>Himachal</Address>
  <Marks>600</Marks>
  </Student>
  <Student>
    <Name>Anil</Name>
    <Address>Delhi</Address>
    <Marks>800</Marks>
  </Student>
  <Student>
    <Name>John</Name>
    <Address>Kerla</Address>
    <Marks>900</Marks>
  </Student
</Detail>

Now add a new webform to project. Drag and drop the

Monday, May 13, 2013

How to bind Dropdownlist with XML file in Asp.net


Intoduction: In this I will explain how we can bind the Dropdownlist with Xml file.
Description:
Open Visual Studio> go to File>New>Website. After that add new item and select .xml file.

Add the below mention to .xml file.

<?xml version="1.0" encoding="utf-8" ?>
<countries>
    <Country ID="-1" Name="[--Select--]"></Country>
    <Country ID="1" Name="India"></Country>
    <Country ID="2" Name="Afghanistan"></Country>
    <Country ID="3" Name="Albania"></Country>
    <Country ID="4" Name="Algeria"></Country>
    <Country ID="5" Name="America"></Country>
    <Country ID="6" Name="Andorra"></Country>
    <Country ID="7" Name="Angola"></Country>
    <Country ID="8" Name="Anguilla"></Country>
    <Country ID="9" Name="Antarctica"></Country>
    <Country ID="10" Name="Antigua and Barbuda"></Country>
    <Country ID="11" Name="Argentina"></Country>
    <Country ID="12" Name="Armenia"></Country>
    <Country ID="13" Name="Aruba"></Country>
    <Country ID="14" Name="Australia"></Country>
    <Country ID="15" Name="Austria"></Country>
    <Country ID="16" Name="Azerbaijan"></Country>
    <Country ID="17" Name="Bahamas"></Country>
    <Country ID="18" Name="Bahrain"></Country>
    <Country ID="19" Name="Bangladesh"></Country>