M
mr. App
In many custom controls examples I see the following code:
public string Text
{
get
{
return (string)ViewState["Text"];
}
set
{
ViewState["Text"] = value;
}
}
Can you please explain what is the difference between this code to:
public string Text
{
get
{
return Text;
}
set
{
Text = value;
}
}
Thanks.
public string Text
{
get
{
return (string)ViewState["Text"];
}
set
{
ViewState["Text"] = value;
}
}
Can you please explain what is the difference between this code to:
public string Text
{
get
{
return Text;
}
set
{
Text = value;
}
}
Thanks.