This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Sunday, October 4, 2009

Simple ViewState Property

Protected Property bvin() As String
Get
If (Not ViewState("bvin") Is Nothing) Then
Return ViewState("bvin")
End If
Return ""
End Get
Set(ByVal Value As String)
ViewState("bvin") = Value
End Set
End Property

----------------------------------------------
public string SORTBy
{
get
{
if (ViewState["SORTBy"] != null)
{
return SafeCast.ToString(ViewState["SORTBy"]);
}
return "";
}
set
{
ViewState["SORTBy"] = value;
}
}

No comments:

Post a Comment