473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Something wrong when xml control is not showing data

Hello,

I am using VB/ASP.net 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

xDoc.Load(Request.MapPath("game1.xml"))

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>" + _

...........

...........

...........

"</Game>"

Dim root As XmlElement = xDoc.DocumentElement

root.AppendChild(newComment)

xDoc.Save(Request.MapPath("game1.xml"))

Response.Redirect(".....")

End Sub

.........

End Class

TIA

Jan 2 '06 #1
0 1047

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below...
6
by: Michael Sparks | last post by:
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at...
10
by: MLH | last post by:
I am concerned. I have recently moved to A97 from Access 2.0 where I rolled out runtime apps with the ADT. Now, the Office Pro Developer's Edition with Access 97 is what I'm using. I find some...
0
by: Miquel | last post by:
Hi all. I felt frustrated when developing an 'UserControl' derivated from textBox, because sequence event (and Validate event) seems to fail. I Always thought my code was wrong. But after...
4
by: darrel | last post by:
I've been working on a few userControls that display data. I've been using datalists and repeater controls for this. I bind the data to the datalist or repeater, then display it. However,...
4
by: Hans Merkl | last post by:
Hi, Is there a way to show the column headers of a GridView control even if there is no data? The only thing I see is the EmptyDataTemplate but I would also like to display the column headers. ...
1
by: YYZ | last post by:
Sorry for the multipost, but no one was responding in the other thread. If any solution is forthcoming, I will return to the original thread and post it there as well. I've created a usercontrol...
0
by: Aaron | last post by:
Hello, I am using VB/ASP.net 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...
4
by: Benny Raymond | last post by:
Yesterday I noticed that the MonthCalendar is suddenly showing up wrong. Instead of nice colors it's showing up in grey tones and instead of the fancy circle selecting dates, the dates are selected...
1
by: fiaolle | last post by:
Hi The first set of source code is the class for a combobox in a grid, hopefully. In the second set of code we try to use the combobox class, but the grid is empty. I don't understand how this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.