Click here to Skip to main content
15,885,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem connecting to my sql Pin
Blue_Boy28-Aug-08 0:01
Blue_Boy28-Aug-08 0:01 
GeneralRe: problem connecting to my sql Pin
Krazy Programmer28-Aug-08 0:11
Krazy Programmer28-Aug-08 0:11 
GeneralRe: problem connecting to my sql Pin
Blue_Boy28-Aug-08 0:15
Blue_Boy28-Aug-08 0:15 
AnswerRe: problem connecting to my sql Pin
NeverHeardOfMe28-Aug-08 0:17
NeverHeardOfMe28-Aug-08 0:17 
GeneralRe: problem connecting to my sql Pin
Krazy Programmer28-Aug-08 0:24
Krazy Programmer28-Aug-08 0:24 
QuestionVisualWebGUI Pin
MatthysDT27-Aug-08 23:27
MatthysDT27-Aug-08 23:27 
AnswerRe: VisualWebGUI Pin
NeverHeardOfMe27-Aug-08 23:48
NeverHeardOfMe27-Aug-08 23:48 
QuestionStore ISeriable Object in ViewState ? Pin
Sandilian27-Aug-08 23:27
Sandilian27-Aug-08 23:27 
I want to store Custom Class object to ViewState for later use

Note : I want to use ISeriable interface not [Serializable] property

(When i use [Serializable] property, it is working fine but in my case i

have to use only ISeriable Interface, I have option to store object into ViewState only not XML or File)

PlZ help me.

Sample.aspx

Person oPerson = new Person();
oPerson.FirstName = "Sandilian";
oPerson.LastName = "Arumugam";
ViewState["Object"] = oPerson;
Person cls1 = (Person)ViewState["Object"];
Response.Write(cls1.FirstName + " " + cls1.LastName);

Person.CS

//[Serializable]

public class Person : ISerializable
{

private string _FirstName;

private string _LastName;

public string FirstName
{

get { return _FirstName; }

set { _FirstName = value; }

}

public string LastName
{

get { return _LastName; }

set { _LastName = value; }

}

public Person()
{

}

public Person(string FirstName, string LastName)
{

this.FirstName = FirstName;

this.LastName = LastName;

}

public void GetObjectData(SerializationInfo oInfo, StreamingContext oContext)
{
oInfo.AddValue("FirstName", this.FirstName);
oInfo.AddValue("LastName", this.LastName);
oInfo.SetType(typeof(Person));
}
}
AnswerRe: Store ISeriable Object in ViewState ? Pin
Paddy Boyd28-Aug-08 2:20
Paddy Boyd28-Aug-08 2:20 
GeneralRe: Store ISeriable Object in ViewState ? Pin
Sandilian31-Aug-08 17:15
Sandilian31-Aug-08 17:15 
QuestionDataList Pin
mpavas27-Aug-08 22:27
mpavas27-Aug-08 22:27 
AnswerRe: DataList Pin
Christian Graus28-Aug-08 0:23
protectorChristian Graus28-Aug-08 0:23 
Questionautorefesh Pin
nithydurai27-Aug-08 21:41
nithydurai27-Aug-08 21:41 
AnswerRe: autorefesh Pin
darkcalin27-Aug-08 22:04
darkcalin27-Aug-08 22:04 
GeneralRe: autorefesh Pin
nithydurai27-Aug-08 22:16
nithydurai27-Aug-08 22:16 
AnswerRe: autorefesh Pin
N a v a n e e t h27-Aug-08 22:35
N a v a n e e t h27-Aug-08 22:35 
Questionhow to map xml tags with tally xml tgas in c#asp.net Pin
Teredesai127-Aug-08 21:01
Teredesai127-Aug-08 21:01 
AnswerRe: how to map xml tags with tally xml tgas in c#asp.net Pin
N a v a n e e t h27-Aug-08 21:12
N a v a n e e t h27-Aug-08 21:12 
AnswerRe: how to map xml tags with tally xml tgas in c#asp.net Pin
Abhishek Sur27-Aug-08 21:37
professionalAbhishek Sur27-Aug-08 21:37 
Questiondynamic controls and request objects Pin
Harikrk27-Aug-08 20:40
Harikrk27-Aug-08 20:40 
AnswerRe: dynamic controls and request objects Pin
N a v a n e e t h27-Aug-08 21:04
N a v a n e e t h27-Aug-08 21:04 
AnswerRe: dynamic controls and request objects Pin
Abhishek Sur27-Aug-08 21:41
professionalAbhishek Sur27-Aug-08 21:41 
QuestionMDB file is opened or not? Pin
BalasubramanianK27-Aug-08 20:40
BalasubramanianK27-Aug-08 20:40 
AnswerRe: MDB file is opened or not? Pin
Abhishek Sur27-Aug-08 21:48
professionalAbhishek Sur27-Aug-08 21:48 
GeneralRe: MDB file is opened or not? [modified] Pin
BalasubramanianK28-Aug-08 2:25
BalasubramanianK28-Aug-08 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.