Click here to Skip to main content
15,895,084 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XSLT generator Pin
Yoyosch29-Nov-07 23:17
Yoyosch29-Nov-07 23:17 
AnswerRe: XSLT generator Pin
George L. Jackson30-Nov-07 15:35
George L. Jackson30-Nov-07 15:35 
QuestionMedia RSS 2.0 parser Pin
rajshri_newase27-Nov-07 22:21
rajshri_newase27-Nov-07 22:21 
Questionhow can i create xml data abd how can i update delete and insert.. Pin
Rajeshwar Code- Developer27-Nov-07 21:05
Rajeshwar Code- Developer27-Nov-07 21:05 
AnswerRe: how can i create xml data abd how can i update delete and insert.. Pin
Prateek G27-Nov-07 22:35
Prateek G27-Nov-07 22:35 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
Rajeshwar Code- Developer28-Nov-07 2:03
Rajeshwar Code- Developer28-Nov-07 2:03 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
George L. Jackson28-Nov-07 2:54
George L. Jackson28-Nov-07 2:54 
GeneralRe: how can i create xml data abd how can i update delete and insert.. Pin
Member 46484919-Dec-07 17:45
Member 46484919-Dec-07 17:45 
Check This Out...It will work out... Smile | :)


Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
Dim i As Integer = GridView1.Rows(e.RowIndex).DataItemIndex
Dim strId As String = CType(GridView1.Rows(e.RowIndex).Cells(2).Controls(0), TextBox).Text
Dim strName As String = CType(GridView1.Rows(e.RowIndex).Cells(3).Controls(0), TextBox).Text
GridView1.EditIndex = -1
BindGrid()
' Update the XML file using the new values

Dim oDs As Data.DataSet = GridView1.DataSource
oDs.Tables(0).Rows(i).Item(0) = strId
oDs.Tables(0).Rows(i).Item(1) = strName
oDs.WriteXml(Request.PhysicalApplicationPath + "books.xml")
BindGrid()
End Sub

Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GridView1.RowDeleting
BindGrid()
Dim oDs As Data.DataSet = GridView1.DataSource
oDs.Tables(0).Rows(GridView1.Rows(e.RowIndex).DataItemIndex).Delete()
oDs.WriteXml(Request.PhysicalApplicationPath + "books.xml")
BindGrid()
End Sub


Protected Sub GridView1_RowCancelingEdit(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GridView1.RowCancelingEdit
GridView1.EditIndex = -1
BindGrid()
End Sub

Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
GridView1.EditIndex = e.NewEditIndex
BindGrid()
End Sub

Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
GridView1.PageIndex = e.NewPageIndex
BindGrid()
End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
BindGrid()
End If
End Sub

Sub BindGrid()
Dim oDs As New Data.DataSet
oDs.ReadXml(Request.PhysicalApplicationPath + "books.xml")
GridView1.DataSource = oDs
GridView1.DataBind()
End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If txtId.Text = "" Or txtName.Text = "" Then
MsgBox("A Value Is Required...!")
Else
BindGrid()
Dim oDs As Data.DataSet = GridView1.DataSource
Dim oDr As Data.DataRow = oDs.Tables(0).NewRow
oDr("Name") = txtId.Text
oDr("Author") = txtName.Text
oDs.Tables(0).Rows.Add(oDr)
oDs.WriteXml(Request.PhysicalApplicationPath + "books.xml")
BindGrid()
txtId.Text = ""
txtName.Text = ""
txtId.Focus()
End If
End Sub

Regards
Abhishek,Nanda
QuestionHow to view MathML in IE6 using MathPlayer? Pin
Hariharan210527-Nov-07 2:13
Hariharan210527-Nov-07 2:13 
AnswerRe: How to view MathML in IE6 using MathPlayer? Pin
XML-Gene30-Nov-07 18:37
XML-Gene30-Nov-07 18:37 
Questionxml verifier Pin
Nom Qureshi25-Nov-07 11:28
Nom Qureshi25-Nov-07 11:28 
QuestionConfigurationManager Pin
econner24-Nov-07 11:17
econner24-Nov-07 11:17 
QuestionUse XML to define SQL Server security? Pin
Clive Richardson22-Nov-07 2:31
Clive Richardson22-Nov-07 2:31 
Questioncode for creating a table using xml Pin
ayyappa swamy21-Nov-07 23:28
ayyappa swamy21-Nov-07 23:28 
AnswerRe: code for creating a table using xml Pin
J4amieC22-Nov-07 3:16
J4amieC22-Nov-07 3:16 
AnswerRe: code for creating a table using xml Pin
XML-Gene30-Nov-07 18:44
XML-Gene30-Nov-07 18:44 
QuestionCreate a new nested branch efficiently with DOM Pin
Nick Alexeev20-Nov-07 8:57
professionalNick Alexeev20-Nov-07 8:57 
AnswerRe: Create a new nested branch efficiently with DOM Pin
Prateek G20-Nov-07 20:13
Prateek G20-Nov-07 20:13 
QuestionHow to sort all data use xslt? Pin
guiqul16319-Nov-07 22:08
guiqul16319-Nov-07 22:08 
AnswerRe: How to sort all data use xslt? Pin
Prateek G19-Nov-07 22:58
Prateek G19-Nov-07 22:58 
GeneralRe: How to sort all data use xslt? Pin
guiqul16320-Nov-07 13:20
guiqul16320-Nov-07 13:20 
GeneralRe: How to sort all data use xslt? Pin
Prateek G20-Nov-07 20:10
Prateek G20-Nov-07 20:10 
GeneralRe: How to sort all data use xslt? Pin
guiqul16320-Nov-07 20:14
guiqul16320-Nov-07 20:14 
QuestionProblem with binding XMl data into nested repeater control?? Pin
Vishnu Narayan Mishra18-Nov-07 20:43
Vishnu Narayan Mishra18-Nov-07 20:43 
QuestionProblem with displaying parent node and child node attribute in c#-- need urgent [modified] Pin
Vishnu Narayan Mishra15-Nov-07 17:35
Vishnu Narayan Mishra15-Nov-07 17:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.