WHY does the .Net Documentation show http://msdn.microsoft.com/library/de...mberstopic.asp
.NET Framework Class Library
HttpSessionStat e
Public Properties
Item = = = Overloaded. Gets or sets individual session values.
In C#, this property is the indexer for the
HttpSessionStat e class.
THEN using the MSDE example walkthrough:
int intImageId = SSDAL.AddImage( strFileNameOnly ,
txtImageDesc.Te xt,strServerPat h, strThumbFile,
Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)),2, 3);
ERROR
'System.Web.Ses sionState.HttpS essionState' does not contain a definition for
'Item'
WHY
Why can't there be someone available to help resolve these conflicts - it
is VERY frustrating to try to use the Microsoft products - that don't work
according to the documentation - and no one available to help.....
AM I the only one frustrated with Microsoft documentation that is not
accurate - WHAT are we to do?
CAN anyone please help me understand what is wrong in Visual Studio .Net and
why their sample walkthrough's won't work ? 4 1907
That's because the Item property is the indexer of the class, exactly as it
shown in the doc :)
( http://msdn.microsoft.com/library/de...mberstopic.asp)
Usage is something like this:
System.Web.Sess ionState.HttpSe ssionState state;
state[1] = val;
--
Victor Hadianto http://www.synop.com/Products/SauceReader/
"PaulThomas " <Pa********@dis cussions.micros oft.com> wrote in message
news:C8******** *************** ***********@mic rosoft.com... WHY does the .Net Documentation show: http://msdn.microsoft.com/library/de...mberstopic.asp .NET Framework Class Library HttpSessionStat e Public Properties Item = = = Overloaded. Gets or sets individual session values. In C#, this property is the indexer for the HttpSessionStat e class. THEN using the MSDE example walkthrough: int intImageId = SSDAL.AddImage( strFileNameOnly , txtImageDesc.Te xt,strServerPat h, strThumbFile, Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)),2, 3); ERROR 'System.Web.Ses sionState.HttpS essionState' does not contain a definition for 'Item' WHY Why can't there be someone available to help resolve these conflicts - it is VERY frustrating to try to use the Microsoft products - that don't work according to the documentation - and no one available to help..... AM I the only one frustrated with Microsoft documentation that is not accurate - WHAT are we to do?
CAN anyone please help me understand what is wrong in Visual Studio .Net and why their sample walkthrough's won't work ?
Thanks Victor,
The link you supplied takes me to the same documentation I am confused
about. The MSDE sample code is:
Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId))
trying to get the UserID Key from the Application Globals
The link you supplied actually shows "sample code" for JScript - I wish
Microsoft would be so kind as to show sample code for each language like it
does for JScript - should we be using JScript - because it sure is difficult
to try to figure out exactly how to get anything done in C#. I still don't
see why the MSDE sample code does not work - and I still don't know how I
should code to retrieve the SessionUserIDKe y. I have looked at other RAD
languages like Powerbuilder and Delphi and their documentation is very clear
- Microsoft documentation is very hard to understand (or is it just me).
Thanks for your reply.
"Victor Hadianto" wrote: That's because the Item property is the indexer of the class, exactly as it shown in the doc :) (http://msdn.microsoft.com/library/de...mberstopic.asp)
Usage is something like this:
System.Web.Sess ionState.HttpSe ssionState state; state[1] = val; -- Victor Hadianto http://www.synop.com/Products/SauceReader/
"PaulThomas " <Pa********@dis cussions.micros oft.com> wrote in message news:C8******** *************** ***********@mic rosoft.com... WHY does the .Net Documentation show: http://msdn.microsoft.com/library/de...mberstopic.asp .NET Framework Class Library HttpSessionStat e Public Properties Item = = = Overloaded. Gets or sets individual session values. In C#, this property is the indexer for the HttpSessionStat e class. THEN using the MSDE example walkthrough: int intImageId = SSDAL.AddImage( strFileNameOnly , txtImageDesc.Te xt,strServerPat h, strThumbFile, Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)),2, 3); ERROR 'System.Web.Ses sionState.HttpS essionState' does not contain a definition for 'Item' WHY Why can't there be someone available to help resolve these conflicts - it is VERY frustrating to try to use the Microsoft products - that don't work according to the documentation - and no one available to help..... AM I the only one frustrated with Microsoft documentation that is not accurate - WHAT are we to do?
CAN anyone please help me understand what is wrong in Visual Studio .Net and why their sample walkthrough's won't work ?
I don't understand, the MSDN documentation usually provides sample for C#,
VB.Net, C++ and JScript. The link that I showed you actually gives you the
example in all four languages. Unless there is something that I miss here?
Regards,
--
Victor Hadianto http://www.synop.com/Products/SauceReader/
"PaulThomas " <Pa********@dis cussions.micros oft.com> wrote in message
news:D2******** *************** ***********@mic rosoft.com... Thanks Victor, The link you supplied takes me to the same documentation I am confused about. The MSDE sample code is: Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)) trying to get the UserID Key from the Application Globals The link you supplied actually shows "sample code" for JScript - I wish Microsoft would be so kind as to show sample code for each language like it does for JScript - should we be using JScript - because it sure is difficult to try to figure out exactly how to get anything done in C#. I still don't see why the MSDE sample code does not work - and I still don't know how I should code to retrieve the SessionUserIDKe y. I have looked at other RAD languages like Powerbuilder and Delphi and their documentation is very clear - Microsoft documentation is very hard to understand (or is it just me). Thanks for your reply.
"Victor Hadianto" wrote:
That's because the Item property is the indexer of the class, exactly as it shown in the doc :) (http://msdn.microsoft.com/library/de...mberstopic.asp)
Usage is something like this:
System.Web.Sess ionState.HttpSe ssionState state; state[1] = val; -- Victor Hadianto http://www.synop.com/Products/SauceReader/
"PaulThomas " <Pa********@dis cussions.micros oft.com> wrote in message news:C8******** *************** ***********@mic rosoft.com... > WHY does the .Net Documentation show: > http://msdn.microsoft.com/library/de...mberstopic.asp > .NET Framework Class Library > HttpSessionStat e > Public Properties > Item = = = Overloaded. Gets or sets individual session values. > In C#, this property is the indexer for the > HttpSessionStat e class. > THEN using the MSDE example walkthrough: > int intImageId = SSDAL.AddImage( strFileNameOnly , > txtImageDesc.Te xt,strServerPat h, strThumbFile, > Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)),2, 3); > ERROR > 'System.Web.Ses sionState.HttpS essionState' does not contain a > definition > for > 'Item' > WHY > Why can't there be someone available to help resolve these conflicts - > it > is VERY frustrating to try to use the Microsoft products - that don't > work > according to the documentation - and no one available to help..... > AM I the only one frustrated with Microsoft documentation that is not > accurate - WHAT are we to do? > > CAN anyone please help me understand what is wrong in Visual Studio > .Net > and > why their sample walkthrough's won't work ? >
Thank You,
I have been beating my head all day trying to get a better habdle on .Net -
it's very frustrating. I see MSDN sample walkthrough code like:
int groupId = int.Parse(cboIm ageGroups.Selec tedValue);
cboImageGroups is a DropDownList in MyPics walkthrough - - and
SelectedValue is NOT valid... -so- I am just upset that they would show code
that does not work.
Thanks again,
Paul
"Victor Hadianto" wrote: I don't understand, the MSDN documentation usually provides sample for C#, VB.Net, C++ and JScript. The link that I showed you actually gives you the example in all four languages. Unless there is something that I miss here?
Regards, -- Victor Hadianto http://www.synop.com/Products/SauceReader/
"PaulThomas " <Pa********@dis cussions.micros oft.com> wrote in message news:D2******** *************** ***********@mic rosoft.com... Thanks Victor, The link you supplied takes me to the same documentation I am confused about. The MSDE sample code is: Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)) trying to get the UserID Key from the Application Globals The link you supplied actually shows "sample code" for JScript - I wish Microsoft would be so kind as to show sample code for each language like it does for JScript - should we be using JScript - because it sure is difficult to try to figure out exactly how to get anything done in C#. I still don't see why the MSDE sample code does not work - and I still don't know how I should code to retrieve the SessionUserIDKe y. I have looked at other RAD languages like Powerbuilder and Delphi and their documentation is very clear - Microsoft documentation is very hard to understand (or is it just me). Thanks for your reply.
"Victor Hadianto" wrote:
That's because the Item property is the indexer of the class, exactly as it shown in the doc :) (http://msdn.microsoft.com/library/de...mberstopic.asp)
Usage is something like this:
System.Web.Sess ionState.HttpSe ssionState state; state[1] = val; -- Victor Hadianto http://www.synop.com/Products/SauceReader/
"PaulThomas " <Pa********@dis cussions.micros oft.com> wrote in message news:C8******** *************** ***********@mic rosoft.com... > WHY does the .Net Documentation show: > http://msdn.microsoft.com/library/de...mberstopic.asp > .NET Framework Class Library > HttpSessionStat e > Public Properties > Item = = = Overloaded. Gets or sets individual session values. > In C#, this property is the indexer for the > HttpSessionStat e class. > THEN using the MSDE example walkthrough: > int intImageId = SSDAL.AddImage( strFileNameOnly , > txtImageDesc.Te xt,strServerPat h, strThumbFile, > Convert.ToInt32 (Session.Item(A ppGlobals.sessK eyUserId)),2, 3); > ERROR > 'System.Web.Ses sionState.HttpS essionState' does not contain a > definition > for > 'Item' > WHY > Why can't there be someone available to help resolve these conflicts - > it > is VERY frustrating to try to use the Microsoft products - that don't > work > according to the documentation - and no one available to help..... > AM I the only one frustrated with Microsoft documentation that is not > accurate - WHAT are we to do? > > CAN anyone please help me understand what is wrong in Visual Studio > .Net > and > why their sample walkthrough's won't work ? > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: angelag |
last post by:
I am currently taking a college course in Visual Basic.Net and I am a
beginner.
I bought Visual Studio.Net 2003 to do my homework at home. I built my
first project and e-mailed it to myself at school. When I tried to
open it in the lab, I got a message saying I couldn't open it because
it was created with a newer version. Evidently the lab is using Visual
Studio.Net 2002.
My professor doesn't just want the executable file, he wants...
|
by: Oliver Brausch |
last post by:
Hello,
have you ever heard about this MS-visual c compiler bug?
look at the small prog:
static int x=0;
int bit32() {
return ++x;
}
|
by: fiona |
last post by:
Innovasys Ltd., a leader in help authoring and documentation tools,
today announced the inclusion of a tailored version of the Innovasys
HelpStudio help authoring product, HelpStudio Lite, in the Microsoft
Visual Studio 2005 Software Development Kit. By providing a full help
authoring environment within the Visual Studio 2005 SDK, Innovasys is
providing developers building components and products that integrate
with Visual Studio 2005 a...
|
by: innovasys |
last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X
5, the fifth version of the documentation solution of choice for
developers using Microsoft Visual Studio or the .NET Framework.
Document! X 5 automatically produces professional quality technical
documentation and on-line help for Microsoft .NET Framework assemblies
(.NET Framework 1.0, 1.1 and 2.0 are all supported), COM components and
controls, Visual Basic source code,...
|
by: kbutterly |
last post by:
Good morning all,
I have a weird problem with my VS 2005 Documentation. When I open the
help file through Start -Visual Studion 2005 ->Visual Studio 2005
Documentation, I get what appears to be the VS 2005 help. The title
bar shows 'Search - Microsoft Visual Studio 2005 Documentation -
Microsoft Document Explorer'
However, if I select either Contents or Index, and click on the
Filtered by drop-down, every item listed is SQL Server...
| |
by: cmay |
last post by:
I have been looking on and off for the past 6 months or so for some
kind of guidance for creating asp.net unit tests with Visual Studio
Team System, but I have yet to find anything significant.
Does anyone know of any books/articles that address this?
Right now I created a very basic page and created unit tests for it
only to find that my webcontrols are not initialized when running the
unit tests. So either I am doing something wrong...
|
by: Kuldeep |
last post by:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
Could any one of you please let me know how to use NDoc in Visual Studio
2005.
If there is a source where I can find step by step information, I would be
greatly obliged.
|
by: Cramer |
last post by:
So, what is the relationship between Visual Studio and Visual Web Developer.
I find a lot of documentation on MSDN that presents Visual Web Developer as
it's own stand-alone product (which I'd expect of the Express editions), but
apparently there are NON Express versions of Visual Web Developer.
Is Visual Web Developer only built-in to Visual Studio 2008 Professional? I
see "Microsoft Visual Web Developer 2008" listed as an installed...
|
by: Jeff |
last post by:
hi
I'm trying to install Visual Studio 2005 and get this error:
Visual Studio 2005 Professional - ENU Disk 1
This is an msdn version my boss downloaded from msdn. It contain 2 folders
"DISK1" and "DISK2"
I've tryed and destroyed a few CD-R plates already (this is what I've
tryed):
|
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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...
|
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: 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.
| |