M
Mukesh
HI all
I am storing user info in database. for this i m using varchar(for
storing name , email , password etc.) and xml(UserDetail info ) datatypes.
dbo.User
........................
USEREMAIL VARCHAR PK
USERNAME VARCHAR
USERPWD VARCHAR
USERDETAILS XML
for retriving data i m using
this query "Select * from user where [email protected]"
in dataset dsCredentialData
string Name = dsCredentialData.Tables[0].Rows[0]["USERNAME"].tostring();
string
PrimaryEmail=dsCredentialData.Tables[0].Rows[0]["USEREMAIL"].tostring();
string UserPwd =dsCredentialData.Tables[0].Rows[0]["userpwd"].tostring();
Xml UserDetails= new Xml();
UserDetails.Document.LoadXml(dsCredentialData.Tables[0].Rows[0]["XmlTxt"].tostring());
after doing this i m getting this error
"Object reference not set to an instance of an object. "
PLease tell me how i can use this xml Userdetails As xml object without
saving it to disk
Thanks in advance..
I am storing user info in database. for this i m using varchar(for
storing name , email , password etc.) and xml(UserDetail info ) datatypes.
dbo.User
........................
USEREMAIL VARCHAR PK
USERNAME VARCHAR
USERPWD VARCHAR
USERDETAILS XML
for retriving data i m using
this query "Select * from user where [email protected]"
in dataset dsCredentialData
string Name = dsCredentialData.Tables[0].Rows[0]["USERNAME"].tostring();
string
PrimaryEmail=dsCredentialData.Tables[0].Rows[0]["USEREMAIL"].tostring();
string UserPwd =dsCredentialData.Tables[0].Rows[0]["userpwd"].tostring();
Xml UserDetails= new Xml();
UserDetails.Document.LoadXml(dsCredentialData.Tables[0].Rows[0]["XmlTxt"].tostring());
after doing this i m getting this error
"Object reference not set to an instance of an object. "
PLease tell me how i can use this xml Userdetails As xml object without
saving it to disk
Thanks in advance..