Hi,
I have a public structure which is initialized only at startup time but at
least one of the elements of this structure is losing its value, this
particular element is ONLY initialized at the same time the structure is also
initialized and nowhere else in the code. Worth mentioning here is that this
behavior (losing its value) ONY happens when the code is executed outside the
IDE, if executed from the IDE it will work ALLWAYS !!!
Thanks
C.Fleury 5 1267
Can you show us some code? By startup time - do you mean inside
Application_Start?
--
Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury"
<cF*****@discussions.microsoft.com> wrote: Hi, I have a public structure which is initialized only at startup time but at least one of the elements of this structure is losing its value, this particular element is ONLY initialized at the same time the structure is also initialized and nowhere else in the code. Worth mentioning here is that this behavior (losing its value) ONY happens when the code is executed outside the IDE, if executed from the IDE it will work ALLWAYS !!!
Thanks
C.Fleury
Scott,
I mean that the var (sys.BranchNbr) which is public and defined elsewhere is
initialized at my Default.aspx.vb. See below the code sections involved in
this:
Module DTA
Public Structure _sys
Public Branch As String
Public Session As String
Public SessionOld As String
Public DataType As String
Public WebServerIP As String
End Structure
Public sys As _sys
End Module
In file Default.aspx.vb
Public Class _Default
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
sys.Branch = "000"
end sub
End Class
In file InvMaint.aspx.vb
The var sys.Branch will be empty
Thanks
C.Fleury
"Scott Allen" wrote: Can you show us some code? By startup time - do you mean inside Application_Start?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury" <cF*****@discussions.microsoft.com> wrote:
Hi, I have a public structure which is initialized only at startup time but at least one of the elements of this structure is losing its value, this particular element is ONLY initialized at the same time the structure is also initialized and nowhere else in the code. Worth mentioning here is that this behavior (losing its value) ONY happens when the code is executed outside the IDE, if executed from the IDE it will work ALLWAYS !!!
Thanks
C.Fleury
That is odd - is there anything happening between Default.aspx and
InvMaint.aspx that could be resetting the application? Like a change
to web.config?
--
Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 11:23:02 -0800, "cFleury"
<cF*****@discussions.microsoft.com> wrote: Scott,
I mean that the var (sys.BranchNbr) which is public and defined elsewhere is initialized at my Default.aspx.vb. See below the code sections involved in this:
Module DTA Public Structure _sys Public Branch As String Public Session As String Public SessionOld As String Public DataType As String Public WebServerIP As String End Structure
Public sys As _sys
End Module
In file Default.aspx.vb Public Class _Default Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load sys.Branch = "000" end sub
End Class
In file InvMaint.aspx.vb The var sys.Branch will be empty
Thanks
C.Fleury
"Scott Allen" wrote:
Can you show us some code? By startup time - do you mean inside Application_Start?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury" <cF*****@discussions.microsoft.com> wrote:
>Hi, >I have a public structure which is initialized only at startup time but at >least one of the elements of this structure is losing its value, this >particular element is ONLY initialized at the same time the structure is also >initialized and nowhere else in the code. Worth mentioning here is that this >behavior (losing its value) ONY happens when the code is executed outside the >IDE, if executed from the IDE it will work ALLWAYS !!! > >Thanks > >C.Fleury
Scott,
I don’t know if this makes any sense, but at the top of my aspx file I had
the line:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="InvMaint.aspx.vb"
Inherits="DTA.InvMaint" validateRequest=false%>
the section: “validateRequest=false” was added there by me but I can’t
remember why, and since I remove it, it looks like the problem went away…any
ideas ?
Thanks
C.Fleury
"Scott Allen" wrote: That is odd - is there anything happening between Default.aspx and InvMaint.aspx that could be resetting the application? Like a change to web.config?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 11:23:02 -0800, "cFleury" <cF*****@discussions.microsoft.com> wrote:
Scott,
I mean that the var (sys.BranchNbr) which is public and defined elsewhere is initialized at my Default.aspx.vb. See below the code sections involved in this:
Module DTA Public Structure _sys Public Branch As String Public Session As String Public SessionOld As String Public DataType As String Public WebServerIP As String End Structure
Public sys As _sys
End Module
In file Default.aspx.vb Public Class _Default Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load sys.Branch = "000" end sub
End Class
In file InvMaint.aspx.vb The var sys.Branch will be empty
Thanks
C.Fleury
"Scott Allen" wrote:
Can you show us some code? By startup time - do you mean inside Application_Start?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury" <cF*****@discussions.microsoft.com> wrote:
>Hi, >I have a public structure which is initialized only at startup time but at >least one of the elements of this structure is losing its value, this >particular element is ONLY initialized at the same time the structure is also >initialized and nowhere else in the code. Worth mentioning here is that this >behavior (losing its value) ONY happens when the code is executed outside the >IDE, if executed from the IDE it will work ALLWAYS !!! > >Thanks > >C.Fleury
That would be checking the request coming in from the browser to make
sure the data doesn't contain any "malicious looking" data. This can
help prevent people from uploading javascript to the server for cross
site scripting attacks, for instance.
As to why that setting might have been affecting the behavior of your
program - I'm not sure. If the request validation sees something
suspicious it should give an obvious error message.
--
Scott http://www.OdeToCode.com/blogs/scott/
On Tue, 1 Feb 2005 06:39:08 -0800, "cFleury"
<cF*****@discussions.microsoft.com> wrote: Scott, I dont know if this makes any sense, but at the top of my aspx file I had the line: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="InvMaint.aspx.vb" Inherits="DTA.InvMaint" validateRequest=false%> the section: validateRequest=false was added there by me but I cant remember why, and since I remove it, it looks like the problem went awayany ideas ?
Thanks
C.Fleury This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kenny Ashton |
last post by:
Hello gurus
Can I ask you opions on the best compromise for storing Access
Ado connection strings in a IIS4 standard ASP environment.
For any method I use, there seems to be an article somewhere...
|
by: webguynow |
last post by:
My Dynamic variables print out, same as strings but aren't the same.
They are not correct when using them as DB.connection vars.
I was using my own routine, that read in string values from a...
|
by: Neil Ginsberg |
last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC
linked tables. I recently created a new set of tables for the app, and users
are complaining that unsaved data is being...
|
by: r.roest |
last post by:
Hi,
I'm looking for a way to fill static vars from a different c-file.
Here is what I want to do:
file1.c
static DEBUG
calling function X using DEBUG to display information
calling...
|
by: Darrel |
last post by:
I'm working on an app where the ASPX pages aren't precompiled with the
class.vb files I'm. This is so people can add their own ASPX pages down the
road to the app (the .aspx pages become...
|
by: Jeff |
last post by:
....still new to .net 2005 using VB.
Do I understand correctly that the value of a session variable is actually stored in the server's ram, but relies on the asp.net
session ID cookie that...
|
by: =?Utf-8?B?SlA=?= |
last post by:
All the sudden my app has started to loose Session values after a
Response.Redirect to another page in the same project. Ive read several post
about setting the Terminate Boolean to false to solve...
|
by: RMWChaos |
last post by:
Previously, I had used independent JSON lists in my code, where the lists were part of separate scripts. Because this method did not support reuse of a script without modification, I decided to...
|
by: Ross |
last post by:
Forgive my newbieness - I want to refer to some variables and indirectly
alter them. Not sure if this is as easy in Python as it is in C.
Say I have three vars: oats, corn, barley
I add them...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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 projectplanning, coding, testing,...
| |