Unfamiliar behaviour with webforms

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

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
 
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


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
 
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
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


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
 
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
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


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
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


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
 
Back
Top