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 1285
Can you show us some code? By startup time - do you mean inside
Application_Sta rt?
--
Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury"
<cF*****@discus sions.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.EventArg s) Handles MyBase.Load
sys.Branch = "000"
end sub
End Class
In file InvMaint.aspx.v b
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_Sta rt?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury" <cF*****@discus sions.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*****@discus sions.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.EventAr gs) Handles MyBase.Load sys.Branch = "000" end sub
End Class
In file InvMaint.aspx.v b 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_Sta rt?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury" <cF*****@discus sions.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="Inv Maint.aspx.vb"
Inherits="DTA.I nvMaint" validateRequest =false%>
the section: “validateRequ est=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*****@discus sions.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.EventAr gs) Handles MyBase.Load sys.Branch = "000" end sub
End Class
In file InvMaint.aspx.v b 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_Sta rt?
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 31 Jan 2005 08:11:04 -0800, "cFleury" <cF*****@discus sions.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*****@discus sions.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="Inv Maint.aspx.vb" Inherits="DTA. InvMaint" validateRequest =false%> the section: validateReques t=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
that says 'never' do this, or that.
1. I have 3 site folders s1, s2, s2 and a common DB folder outside
the site roots.
/sites/s1
/sites/s2
|
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 config
file, that had entries like host=localhost etc, etc.
After reading, I used explode with "=" as a separator,... then finally
created some dynamic vars $$key=$val
They are valid, it seems and printout/echo correct normal values:...
|
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 lost when they move to a new
record. This seems to be the case when there are multiple users. When there
is a single user using it, we don't seem to have that problem.
It seems that we had this problem when we first converted from an MDB back
end...
|
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 function Y using DEBUG to display information
|
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 'templates' in a way).
As such, each template has a function call at the top:
<% retrieveData() %>
and then within the page, wherever they want to show some text from the db,
they just use one of the variables sent in the vb file:
| |
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 temporarily is placed on the client's machine until the session ends? ...so that you can't use session
variables if the client has disabled cookies on their browser? So, this makes session vars much more secure than hidden fields,
which are transmitted...
|
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 this problem, but it
hasnt work. On top of that it seems total random.
I have a start.aspx page that all other web application call to begin the
process. This start page creates needed Sessions and other miscellaneous
tasks, and then redirects...
|
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 consolidate all my JSON lists into one and modify my scripts so that they were more generic and reusable. So far so good.
The problem is that my JSON lists used variables for many pieces of code that performed multiple iterations to create several...
|
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 to a list: myList
Then I want to past that list around and alter one of those values.
That is I want to increment the value of corn:
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |