Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Something wrong when xml control is not showing data

Thread Tools

Something wrong when xml control is not showing data

Posts: n/a

I am using VB/ 2005. When I click submit it refreshes the page without entering the data from all the text boxes and not entering in the Game1.xml.

here is the asp.vb code
Imports System.Xml

Partial Class _game1

Inherits Web.UI.Page


Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

Dim xDoc As New XmlDocument


Dim newComment As XmlDocumentFragment = xDoc.CreateDocumentFragment()

newComment.InnerXml = "<Game>" + _

"<Wname>" + Server.HtmlEncode(txtWName.Text) + "</Wname>" + _

"<Bname>" + Server.HtmlEncode(txtBName.Text) + "</Bname>" + _

"<date>" + Server.HtmlEncode(txtDate.Text) + "</date>" + _

"<opening>" + Server.HtmlEncode(txtOpening.Text) + "</opening>" + _





Dim root As XmlElement = xDoc.DocumentElement




End Sub


End Class


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid with no data, not showing data cms3023 ASP .Net 0 05-20-2007 04:17 PM
ASP 1.1: DataGrid - Showing/Not Showing Buttons Ray Booysen ASP .Net 2 03-28-2006 02:49 PM
Help me understand what is wrong (Data not showing) Lorenzo ASP .Net Datagrid Control 1 12-28-2005 06:32 PM
First div class=something not showing background or borders (IE only) HTML 3 10-14-2005 12:45 AM
Is XML Doc wrong or is Schema wrong? (or both) Matthew XML 7 01-07-2005 10:05 PM