Quantcast
Channel: Session Object and Class for Storing Session Data
Viewing all articles
Browse latest Browse all 11

Re: Session Object and Class for Storing Session Data

$
0
0

hi Sumit,

for achieving the same thing, i creted the following class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CollaboratorBAL
{
[Serializable()]
public class Users
{
int UID;
string fName;
string lName;
string Company;
string type;
string emailID;
string folder;

//what follows down are the functions

public void setUser(int uid,string fname,string lname,string company,string typ,string emailid,string fold)
{
this.UID=uid;
this.fName = fname;
this.lName = lname;
this.Company = company;
this.type = typ;
this.emailID = emailid;
this.folder = fold;
}

public int getUID()
{
return this.UID;
}
public string getFName()
{
return this.fName;
}
public string getLName()
{
return this.lName;
}
public string getCompany()
{
return this.Company;
}
public string getType()
{
return this.type;
}
public string getEmail()
{
return this.emailID;
}
public string getFolder()
{
return this.folder;
}

}
}

how when i create the instance of this class on my page, like

Class obj=new Class();

its okay, but when i try to access methods as 

obj.method().....it just dosent show the methods after pressing the dot!!!

what do you think might be the possible reason for that???


Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>