473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Using immediate window

Hello,

Can someone provide a simple example of how to use the immediate window with
ASP.NET? No matter what I type, I get the following statement: The
expression cannot be evaluated while in design mode.

Thanks, sck10
Aug 13 '06 #1
2 3247
You need to be stepping through the page in debug mode, not design mode. Try
these steps:

1. Set a breakpoint at

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

2. Execute the page in debug mode.
3. When the breakpoint is hit, in the Immediate window, type this command:

? request.ServerVariables("script_name")

4. Press enter. You should see the name of the script that you are executing
in the Immediate window.

Does this help?

Ken
Microsoft MVP [ASP.NET]

"sck10" <sc***@online.nospamwrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
Hello,

Can someone provide a simple example of how to use the immediate window
with ASP.NET? No matter what I type, I get the following statement: The
expression cannot be evaluated while in design mode.

Thanks, sck10

Aug 13 '06 #2
Thanks Ken, yes this helps much...
"Ken Cox [Microsoft MVP]" <BA**********@newsgroups.nospamwrote in message
news:OA**************@TK2MSFTNGP06.phx.gbl...
You need to be stepping through the page in debug mode, not design mode.
Try these steps:

1. Set a breakpoint at

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)

2. Execute the page in debug mode.
3. When the breakpoint is hit, in the Immediate window, type this command:

? request.ServerVariables("script_name")

4. Press enter. You should see the name of the script that you are
executing in the Immediate window.

Does this help?

Ken
Microsoft MVP [ASP.NET]

"sck10" <sc***@online.nospamwrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
>Hello,

Can someone provide a simple example of how to use the immediate window
with ASP.NET? No matter what I type, I get the following statement: The
expression cannot be evaluated while in design mode.

Thanks, sck10


Aug 13 '06 #3

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

Similar topics

2
by: Dave | last post by:
I'm getting different results when I display a value in the Output window as opposed to the Immediate window. Why? Code to recreate problem: 'Purpose: Get different results from Output...
2
by: Jon Davis | last post by:
How do I get the Immediate window back? It seems to be gone. Command window doesn't work. "View" menu items don't seem to show it Jon
1
by: Scott Lyon | last post by:
I'm a VB6 programmer, getting my first tastes of VB.NET. One thing that I've found IMMENSELY helpful in VB6 is the ability to type the beginning of a variable name (either in code, or in the...
3
by: Russell Stevens | last post by:
Can anyone tell me how to get to the immediate window in VS2005. The help file says (when debugging) to click Debug, Windows, Immediate. There is no Immediate window listed there, nor anywhere else...
1
by: DougS | last post by:
When I'm debugging an ASP 2.0 application and I'm trying to use the immediate window to interrogate some classes I cant reference anything in my code. When I type ?dvClient.Rows.Count it gives me...
2
by: raqib.rafique | last post by:
The immediate window in Vs.NET is giving me problems when i use it with C#. Simple example is I have the following line of code in a function String MyString = "abc.doc"; Then I put a...
5
by: vul | last post by:
In VB6 I used to use Immediate Window to get or change values of variables. It is very convenient while debugging. I used drag and drop operation to paste the variable name into Immediate Window....
6
by: Frank Rizzo | last post by:
I am using the Immediate Window a lot to see the progress of the application. In VS2003, if your cursor was at the very bottom, the window would scroll down whenever something new showed up. If...
4
by: Armin Zingler | last post by:
Hi, I feel fooled.. In the immediate window, if I enter ? DateTime.Now.Kind I get "Unspecified {0}". The result - I expected "local" - lead to some time consuming deliberations. Today, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
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...

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.