Visual Studio - Documentation

G

Guest

WHY does the .Net Documentation show
http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp
.NET Framework Class Library
HttpSessionState
Public Properties
Item = = = Overloaded. Gets or sets individual session values.
In C#, this property is the indexer for the
HttpSessionState class.
THEN using the MSDE example walkthrough:
int intImageId = SSDAL.AddImage(strFileNameOnly,
txtImageDesc.Text,strServerPath, strThumbFile,
Convert.ToInt32(Session.Item(AppGlobals.sessKeyUserId)),2, 3);
ERROR
'System.Web.SessionState.HttpSessionState' 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 ?
 
G

Guest

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(AppGlobals.sessKeyUserId))
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 SessionUserIDKey. 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 said:
That's because the Item property is the indexer of the class, exactly as it
shown in the doc :)
(http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp)

Usage is something like this:

System.Web.SessionState.HttpSessionState state;
state[1] = val;



--
Victor Hadianto
http://www.synop.com/Products/SauceReader/


PaulThomas said:
WHY does the .Net Documentation show:
http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp
.NET Framework Class Library
HttpSessionState
Public Properties
Item = = = Overloaded. Gets or sets individual session values.
In C#, this property is the indexer for the
HttpSessionState class.
THEN using the MSDE example walkthrough:
int intImageId = SSDAL.AddImage(strFileNameOnly,
txtImageDesc.Text,strServerPath, strThumbFile,
Convert.ToInt32(Session.Item(AppGlobals.sessKeyUserId)),2, 3);
ERROR
'System.Web.SessionState.HttpSessionState' 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 ?
 
V

Victor Hadianto

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 said:
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(AppGlobals.sessKeyUserId))
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 SessionUserIDKey. 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 said:
That's because the Item property is the indexer of the class, exactly as
it
shown in the doc :)
(http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp)

Usage is something like this:

System.Web.SessionState.HttpSessionState state;
state[1] = val;



--
Victor Hadianto
http://www.synop.com/Products/SauceReader/


PaulThomas said:
WHY does the .Net Documentation show:
http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp
.NET Framework Class Library
HttpSessionState
Public Properties
Item = = = Overloaded. Gets or sets individual session values.
In C#, this property is the indexer for the
HttpSessionState class.
THEN using the MSDE example walkthrough:
int intImageId = SSDAL.AddImage(strFileNameOnly,
txtImageDesc.Text,strServerPath, strThumbFile,
Convert.ToInt32(Session.Item(AppGlobals.sessKeyUserId)),2, 3);
ERROR
'System.Web.SessionState.HttpSessionState' 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 ?
 
G

Guest

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(cboImageGroups.SelectedValue);
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 said:
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 said:
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(AppGlobals.sessKeyUserId))
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 SessionUserIDKey. 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 said:
That's because the Item property is the indexer of the class, exactly as
it
shown in the doc :)
(http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp)

Usage is something like this:

System.Web.SessionState.HttpSessionState state;
state[1] = val;



--
Victor Hadianto
http://www.synop.com/Products/SauceReader/


WHY does the .Net Documentation show:
http://msdn.microsoft.com/library/d...bsessionstatehttpsessionstatememberstopic.asp
.NET Framework Class Library
HttpSessionState
Public Properties
Item = = = Overloaded. Gets or sets individual session values.
In C#, this property is the indexer for the
HttpSessionState class.
THEN using the MSDE example walkthrough:
int intImageId = SSDAL.AddImage(strFileNameOnly,
txtImageDesc.Text,strServerPath, strThumbFile,
Convert.ToInt32(Session.Item(AppGlobals.sessKeyUserId)),2, 3);
ERROR
'System.Web.SessionState.HttpSessionState' 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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top