user-profile


Object Passing through Session in webforms asp.net


I am working on asp.net webforms. There's is a user login page if user successfully login then it saves all the data in object of class profile data after accessing through sql database
Profiledata profiledata = new Profiledata();
profiledata.Fname = SelectReader.GetString(0);
profiledata.Lname = SelectReader.GetString(1);
profiledata.email = SelectReader.GetString(2);
profiledata.password = SelectReader.GetString(3);
\\if we print profiledata values here all values are shown correct
Session["profile"] = profiledata;
On the next page I am accessing
Profiledata profiledata = new Profiledata();
profiledata = (Profiledata)Session["profile"];
but it shows null exception in Session no value found in session
If you are retrieving session value before session is filled, it can be null.
It can be null also if you have disabled the SessionState http module or if your code runs in a HttpHandler, that does not specify either the IRequiresSessionState or IReadOnlySessionState

Related Links

What is an inclusive way of asking for and storing a user's gender and sexual orientation?
How to add custom HTML on user profile page in Drupal 8?
cmder ~ alias for user home folder
Object Passing through Session in webforms asp.net
about.me there was an error saving Backstory
Does gmail has getproflie api to fetch users profile and not profile of contact
How to creating a user profile (properties) for real estate recommendations engine

Categories

HOME
asterisk
msbuild
system-calls
domain-driven-design
liquibase
query-string
artifactory
mingw
thermal-printer
aggregation-framework
kendo-asp.net-mvc
sequence
handlebars.js
pip
genexus
ethereum
google-app-maker
openbsd
google-search-appliance
swift3.1
lambda-calculus
google-closure-compiler
nsoperation
brightway
css-float
web-parts
filehelpers
legend-properties
passbook
descriptor
inline-assembly
android-cursorloader
federated
login-required
ios-autolayout
keil
eclipse-jdt
tunnel
matrix-multiplication
var
stdin
nscollectionview
jvisualvm
jquery-ui-slider
binary-decision-diagram
superclass
f#-fake
azure-data-catalog
activeandroid
ionic2-select
flask-socketio
noise
programming-pearls
senti-wordnet
multi-targeting
scrollmagic
robotc
directinput
distcc
recurring
falcon
nsoperationqueue
boost-bind
shtml
radar-chart
methodology
std
bluetooth-lowenergy-4.2
matlab-engine
magnet-uri
gulp-cdnizer
redquerybuilder
exchange-server-2007
traminer
winforms-interop
transparentproxy
avd
copy-on-write
bungeecord
iphone-6
illegalargumentexception
formbuilder
satisfiability
pidgin
nodeunit
cvi
logo-lang
xcode6.1-gm-seed
nsnumber
pudb
simplemembership
system.transactions
ntdll
volatility
erlide
mysql-connector
flexbuilder
cpack
netbeans7.0
simultaneous
for-xml
versions
mdd
manuals
ffdshow
qlibrary

Resources

Encrypt Message