In global.asax.vb I have:
Sub Application_Sta rt(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the application is started
Application("OZ N") = "HUF"
End Sub
But then on some the page nothing shows:
<%=Application( "OZN")%>
What that could be?
No error message and normal session also work. For example:
sesion("test")= "HUF" works.
Just application session won't work.
Any idea why?
Thanks,S 3 1052
I think the binding statement have to be to a public variable of the
webform. In addition you have to run Page.DataBind during Page_Load event to
make it appear.
Have not tied this directly for globals, but if it doesent work then you
could allways assign the global to the page public variable before databind
occurs
"simon" <si*********@st ud-moderna.si> wrote in message
news:OU******** ******@TK2MSFTN GP09.phx.gbl... In global.asax.vb I have:
Sub Application_Sta rt(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application is started Application("OZ N") = "HUF" End Sub
But then on some the page nothing shows:
<%=Application( "OZN")%>
What that could be?
No error message and normal session also work. For example:
sesion("test")= "HUF" works.
Just application session won't work.
Any idea why?
Thanks,S
<%= %> is not a binding syntax, so there is no need to do a databind. either
the Application_Sta rt event is not firing, or you have code that clears the
value.
-- bruce (sqlwork.com)
"Mr Newbie" <he**@now.com > wrote in message
news:eB******** ******@TK2MSFTN GP10.phx.gbl... I think the binding statement have to be to a public variable of the webform. In addition you have to run Page.DataBind during Page_Load event to make it appear.
Have not tied this directly for globals, but if it doesent work then you could allways assign the global to the page public variable before databind occurs
"simon" <si*********@st ud-moderna.si> wrote in message news:OU******** ******@TK2MSFTN GP09.phx.gbl... In global.asax.vb I have:
Sub Application_Sta rt(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application is started Application("OZ N") = "HUF" End Sub
But then on some the page nothing shows:
<%=Application( "OZN")%>
What that could be?
No error message and normal session also work. For example:
sesion("test")= "HUF" works.
Just application session won't work.
Any idea why?
Thanks,S
I misread the text then. Is <% functionaName() % > A way of binding ( Or
whatever term you want to use ) to the return value of a global function ?
Thanks in advance
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:OE******** *****@TK2MSFTNG P15.phx.gbl... <%= %> is not a binding syntax, so there is no need to do a databind. either the Application_Sta rt event is not firing, or you have code that clears the value.
-- bruce (sqlwork.com) "Mr Newbie" <he**@now.com > wrote in message news:eB******** ******@TK2MSFTN GP10.phx.gbl...I think the binding statement have to be to a public variable of the webform. In addition you have to run Page.DataBind during Page_Load event to make it appear.
Have not tied this directly for globals, but if it doesent work then you could allways assign the global to the page public variable before databind occurs
"simon" <si*********@st ud-moderna.si> wrote in message news:OU******** ******@TK2MSFTN GP09.phx.gbl... In global.asax.vb I have:
Sub Application_Sta rt(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application is started Application("OZ N") = "HUF" End Sub
But then on some the page nothing shows:
<%=Application( "OZN")%>
What that could be?
No error message and normal session also work. For example:
sesion("test")= "HUF" works.
Just application session won't work.
Any idea why?
Thanks,S
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: William LaMartin |
last post by:
I have a problem, mentioned here before, of Session and Application
variables disappearing at one site but not at others or on my development
computer.
The problem is illustrated by an example at
http://www.lamartin.com/dotnet/sessiontestset.aspx, were I set Session,
Application and Cache variables on the first page and then on the second
page view them as the second page is refreshed every five seconds. Before
10 refreshes, the...
|
by: Pavils Jurjans |
last post by:
Hello,
I wanted to get some light in the subject. As I develop ASP.NET
applications, it's necessary to understand how exactly the server- communication happens. It seems like initially application is
"sleeping", and it is not loaded in the memory. Then, after very first
request to the app, it is compiled (aspx files), loaded into memory, and
executed. Then, a separate thread is issued to serve my page request, and it
takes care for me...
|
by: Just D |
last post by:
Hi,
How slowly is to work with these objects - Application and Session ? Is
it much better to create a huge project or some static library and place all
variables/constants there instead of many Session objects?
When I removed some of Session objects and replaced by another approaches
I got an illusion that application started working significantly faster? Is
it true?
|
by: Pavils Jurjans |
last post by:
Hello, I have a couple of unclear questions about ASP.NET sessions:
First, I'd like to have some way to see how many sessions currently are
running on the certain application, and, possibly, have some way to peek in
the data of these sessions. If there is no such utility for IIS, perhaps
there is some API that I could use to write a standalone console .NET EXE,
that could talk to IIS (or some other relevant instance) and discover these...
|
by: Steve Taylor |
last post by:
I am having trouble understanding the ASP.NET application boundaries. Here's my setup:
1. Win2003 Server with IIS 6 and an application defined at the root "SalesNow" (www.salesnow.com).
2. A Default.aspx at the root which redirects the user to "Pages/Main.aspx" using javascript window.location.
3. On the Pages/Main.aspx page a HyperLink control which I add a javascript onclick event which does the
following:
- NewLeadWin =...
| |
by: Lars Netzel |
last post by:
Hi
We have an ASP.NET application running on a Live server and we have had some
problems with the Application pool beeing recycled due to heavy load on the
server. The load is really not that bad and this should nto occur. The
application is using a lot of Session varaibles but I have no idea if this
is a problem. I need the session variabled to make passing varibles between
pages more secure. We also have many Datasets in the session.
...
|
by: Chase |
last post by:
I'm pretty new to asp.net and am having problems with my application timing
out.
I've written an application that loops through all of the information on an
excel spreadsheet and does certain things with it, like creating and
configuring WSS sites.
My application runs fine for approximately 25 minutes, then I get the 'Page
cannot be displayed' error. It seems like my browser times out before the
application can finish what its doing.
|
by: Victor |
last post by:
I've got two domain names sharing the same IP address that use ASP VBScript
If I set a session variable with domain 1, it is only available for domain 1 - this is
correct?
If I set an application variable with domain 1, the app variable is sharing across all
domains using that IP address - this is correct?
This is the behavior I am seeing and I want to make sure that my server is set up
correct. I especially want to make sure...
|
by: illegal.prime |
last post by:
Hi all, I have a service that needs to start a regular windows
application.
I'm running the service as ServiceAccount.LocalSystem.
But, when it starts the process (using Process.Start) the GUI for the
application doesn't appear - however, I can see the process in the
TaskManager.
Now, feel free to mention that starting a regular windows application
|
by: Alex |
last post by:
Hello,
This is a follow-up to my earlier post about having issues with our
application pool recycling. We currently use Session State InProc, but if I
were to choose to move the existing application to SQL instead, would the
only change in the application be the SessionState setting within
web.config? I know I'd also need to setup our MS SQL database to handle
sessions (detailed in MS Article 317604), but outside of this, is there...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: 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...
| |