B
BizWorld
I am trying to cache a full DROP Down that can have lot of values. so
i have 500 site users hitting a page in a second. i need to cache some
controls that does not change quite often during the day. i am trying
to test HTTRuntime.Cache object. in debug mode i can see the values on
server side after i get the drop down from the cache but some how it
does not show the values on generated html page. any idea what i am
missing???
If System.Web.HttpRuntime.Cache("DropDownList1") Is Nothing Then
DropDownList1.Items.Add("1")
DropDownList1.Items.Add("2")
DropDownList1.Items.Add("3")
System.Web.HttpRuntime.Cache("DropDownList1") =
DropDownList1
Else
DropDownList1 =
CType(System.Web.HttpRuntime.Cache("DropDownList1"), DropDownList)
Response.Write(DropDownList1.Items.Count.ToString)
End If
i have 500 site users hitting a page in a second. i need to cache some
controls that does not change quite often during the day. i am trying
to test HTTRuntime.Cache object. in debug mode i can see the values on
server side after i get the drop down from the cache but some how it
does not show the values on generated html page. any idea what i am
missing???
If System.Web.HttpRuntime.Cache("DropDownList1") Is Nothing Then
DropDownList1.Items.Add("1")
DropDownList1.Items.Add("2")
DropDownList1.Items.Add("3")
System.Web.HttpRuntime.Cache("DropDownList1") =
DropDownList1
Else
DropDownList1 =
CType(System.Web.HttpRuntime.Cache("DropDownList1"), DropDownList)
Response.Write(DropDownList1.Items.Count.ToString)
End If