473,790 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamically enable session state

Hi all,
I have a web service with two similar methods, one for production
and one for testing.

On the test method I enable session state so I can dump out debug
files named with the session id and cross reference them a log file.
It also keeps the files unique to each user session.

<WebMethod(Enab leSession:=True )_
Public Function Test(ByVal Data As String) As String

I don't have session state enabled on the production method to
conserve server resources.

<WebMethod()_
Public Function Production(ByVa l Data As String) As String

Ocasionally I need to enable logging for the production call,
and I'd like to do that with a web.config setting, rather than
editing the source and re-deploying the site.

Is there a way to enable session state for a web method at runtime
when the method is normally tagged to not enable session state?

Thanks,
kpg

Mar 4 '08 #1
0 1245

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

Similar topics

3
10808
by: Kiyomi | last post by:
Hello, I create a Table1 dynamically at run time, and at the same time, I would like to create LinkButton controls, also dynamically, and insert them into each line in my Table1. I would then like that, when clicking the LinkButton, the user can be navigated to another page, carrying a variable. I would like to use server.transfer method instead of QueryString as I don't want the carried variable to be visible for the user.
0
1317
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back door page with a login that would allow me to remotely enable and disable the site. The site is in a web farm. The site has a previously posted message to users when the site will go down. How can this be done safely and efficiently in a web farm...
0
870
by: BubbaThree | last post by:
I started having these problems Monday, I believe but I am not sure that our corporate office deployed some security patches??? First of all, when a go to my Web Application (written in ASP.NET 7.1.3088 on .Net framework 1.1.4322 sp1) the IE address bar has http://localhost/Projects/(zpthtrn2armpusfzos2fnh45)/Default.aspx ; the stuff in parenthesis was not there before Monday., The stuff in parenthesis changes each time I start a new...
2
5237
by: Ken Varn | last post by:
I have tried to enable session state in my tag, but it appears to not be working. When my web service is called, the session state is not preserved. The Web Service is being called from a Windows Form control assembly. Is there anything else I need to do to have session state work in my web service? -- ----------------------------------- Ken Varn Senior Software Engineer
2
2457
by: Pete Moss | last post by:
During a postback event, I am having trouble retrieving the state of a CheckBox Control that I am dynamically adding to a DataGrid Control using ASP.NET 1.1. I have no trouble adding the TemplateColumn dynamically. I persist a DataSet in my Session object and I bind the CheckBox to the DataSet. So far so good. The CheckBoxes show up and the user interacts with them (checks a few, unchecks a few). The problem is that during a postback...
9
16273
by: ad | last post by:
Hi, How can I dynamically change the MasterPager of a web page?
5
7283
by: =?Utf-8?B?QWxla3MgS2xleW4=?= | last post by:
I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I start application I get error in line session("aa")="bb" Error tells that I need to enable session state. I found in @page directive option enableSessionState which has values false, readonly and true. I put this value true, however it did not help. it is possible to put this value into web.config, but i did not find where. Also i need to add appropriate module...
1
5234
by: hello2008 | last post by:
Hi, I have just started coding in PHP. I have coded a web page using HTML, JS, and PHP. An HTML table has to be populated dynamically using the data from the backend. Presently I have 5 records in the backend table so I get 5 HTML-table rows. I have created a session object starting from the login page. The requirement is that as soon as I log in and my request gets forwarded to the foll PHP page I should be seeing the foll. dynamically...
2
2100
by: Robin9876 | last post by:
In an ASP.Net using framework v2 what is required to enable session state to be setup for the web code and the database?
0
9512
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,...
0
10200
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 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...
1
10145
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,...
0
9986
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 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...
0
9021
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, and deployment—without 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...
1
7530
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 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...
0
5422
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...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
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 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.