mardi 24 septembre 2019

Can I pass a session value to variable and then save it to another guid type variable

Profile p = new Profile();

var user = Session["UserId"];

p.UserId = user ;

After compiling this code I am getting the error:

can not implicitly convert object type to system.guid




Aucun commentaire:

Enregistrer un commentaire