xml generation in c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bujjai
    New Member
    • May 2007
    • 8

    xml generation in c#

    please help me i have dataset which has the textboxes value now what i need is it should store automatically in xml and from this xml i have read the xml and populate the textboxes value into other websites textboxes by searching the keyword first name ,country and place the values of this textboxes from my xml to otherwebsites textboxes.pleas e let me know i can place my data to other website page.please help me

    ds.Tables("dumm y").Rows.Add(my Row)
    GridView1.DataS ource = ds.Tables("dumm y").DefaultV iew
    GridView1.DataB ind()

    Sub Button1_Click(B yVal sender As Object, ByVal e As System.EventArg s) Handles BtnFill.Click

    strFstNm = txtFstNm.Text
    strSndNm = TxtSndNm.Text
    strCntry = txtCntry.Text
    strCity = txtCity.Text
    strAdd = txtAddr.Text

    Dim ds As New DataSet()
    Dim dt As New DataTable("dumm y")
    Dim myRow As DataRow
    dt = getdata(dt)

    ds.Tables.Add(d t)
    myRow = dt.NewRow
    myRow(0) = strFstNm
    myRow(1) = strSndNm
    myRow(2) = strCntry
    myRow(3) = strCity
    myRow(4) = strAdd
    ds.Tables("dumm y").Rows.Add(my Row)
    GridView1.DataS ource = ds.Tables("dumm y").DefaultV iew
    GridView1.DataB ind()

    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s) Handles Me.Load


    End Sub

    Function getdata(ByVal dt As DataTable) As DataTable

    dt.Columns.Add( "First Name")
    dt.Columns.Add( "Last Name")
    dt.Columns.Add( "Country")
    dt.Columns.Add( "City")
    dt.Columns.Add( "Address")
    Return dt

    End Function
Working...