473,408 Members | 2,888 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,408 software developers and data experts.

Unfamiliar behaviour with webforms

hi,

i have a webform using VB.NET.

I have a couple of methods which fire on a few events.

now, i have noticed one particular behaviour which is strange.

On a Btn.Click event, i validate the fields and then pass to another method which adds those entries into xml file.

the strange thing is that it works sometimes and stops working sometimes. when it stops working, i go back to my code, put a response.write and run the code and this time it works just fine , except that it has this dirty response.write on top. when i remove it, it works fine. but after a while, when i get back to it , it stops again. i don't know what is causing this problme .. any advice

--
Thank You,
Sean
Nov 17 '05 #1
3 996
Sean,

Which part stops working the save to the xml file?

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Sean" <nospam@> wrote in message news:Oz**************@tk2msftngp13.phx.gbl...
hi,

i have a webform using VB.NET.

I have a couple of methods which fire on a few events.

now, i have noticed one particular behaviour which is strange.

On a Btn.Click event, i validate the fields and then pass to another method which adds those entries into xml file.

the strange thing is that it works sometimes and stops working sometimes. when it stops working, i go back to my code, put a response.write and run the code and this time it works just fine , except that it has this dirty response.write on top. when i remove it, it works fine. but after a while, when i get back to it , it stops again. i don't know what is causing this problme .. any advice

--
Thank You,
Sean
Nov 17 '05 #2
Yes.

The add to the xml file is a method, which then does the actual appending.

I call that method, once a validate the different fields, which is invoked by the 'ADD' Button.

Does it make a difference, if i call one method from another method and so on ?

Thank You
Sean
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:eu**************@tk2msftngp13.phx.gbl...
Sean,

Which part stops working the save to the xml file?

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Sean" <nospam@> wrote in message news:Oz**************@tk2msftngp13.phx.gbl...
hi,

i have a webform using VB.NET.

I have a couple of methods which fire on a few events.

now, i have noticed one particular behaviour which is strange.

On a Btn.Click event, i validate the fields and then pass to another method which adds those entries into xml file.

the strange thing is that it works sometimes and stops working sometimes. when it stops working, i go back to my code, put a response.write and run the code and this time it works just fine , except that it has this dirty response.write on top. when i remove it, it works fine. but after a while, when i get back to it , it stops again. i don't know what is causing this problme .. any advice

--
Thank You,
Sean
Nov 17 '05 #3
It doesn't seem to throw any error. I do have a Catch exc as exception in my code.

it doesn't append to the XML file but does the next thing, which is setting the enable property of the button to false.

I greatly appreciate your help.

Thank You
Sean
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:uy**************@TK2MSFTNGP12.phx.gbl...
Sean,

Calling the method from another is just fine. My question was simply to see where the real problem lay. Unfortunately I'm still not certain. What is the exact error message you receive?

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Sean" <nospam@> wrote in message news:eY**************@TK2MSFTNGP10.phx.gbl...
Yes.

The add to the xml file is a method, which then does the actual appending.

I call that method, once a validate the different fields, which is invoked by the 'ADD' Button.

Does it make a difference, if i call one method from another method and so on ?

Thank You
Sean
"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message news:eu**************@tk2msftngp13.phx.gbl...
Sean,

Which part stops working the save to the xml file?

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Sean" <nospam@> wrote in message news:Oz**************@tk2msftngp13.phx.gbl...
hi,

i have a webform using VB.NET.

I have a couple of methods which fire on a few events.

now, i have noticed one particular behaviour which is strange.

On a Btn.Click event, i validate the fields and then pass to another method which adds those entries into xml file.

the strange thing is that it works sometimes and stops working sometimes. when it stops working, i go back to my code, put a response.write and run the code and this time it works just fine , except that it has this dirty response.write on top. when i remove it, it works fine. but after a while, when i get back to it , it stops again. i don't know what is causing this problme .. any advice

--
Thank You,
Sean
Nov 17 '05 #4

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

Similar topics

3
by: rachel | last post by:
Hi all, I am new in ASP.Net. I have a question on link multiple web forms together. Here is the scenario: I create an Index.aspx WebForm which consists of a banner and three navigator...
1
by: Paul R | last post by:
Hi, I have a Winforms application that access some SQLServer2000 stored procedures. I have now written some new Webforms pages to use some of the same stored procs. The Webforms use the SAME...
3
by: Netserver | last post by:
Hi have a question hope there is a simple answer. I want to enter data in to 2 arrays from several webforms in project and be able to recall that data from any of the webforms, other then using a...
3
by: | last post by:
All the fields in webforms are automatically declared as protected. If I change them to public, they are converted back to protected. Why is this happening ? Thanks
20
by: Martin Rosén-Lidholm | last post by:
Although an impossible question to answer, I fell urged to raise it anyhow. Given a fairly complex ERP application scenario, what's your estimation for the X-ratio dev. time for...
2
by: Piotr Karwatka | last post by:
Hi! I have a little problem an qeustion. In .NET Windows Forms I can do something like that: - i have forms - Form1 Form2, on first form i have TextBox1 control on 2nd form I have Button1...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
5
by: Bit byte | last post by:
Can I use C# (Winforms) to design a website?. I am from C/C++ background but know nothing about Internet programming. My understanding of WebForms are that they are similar to WinForms in that...
0
by: JM | last post by:
Hi, I have uploaded an application written in asp.net 2.0 on server. By web controls started giving Javascript error and I figured it out from discussion groups that I have to put WebForms.js...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.