Hi All,
I am writing a bit of code, sorry for this, but not able to solve this problem, from around 5 weeks, it is like this,
In Page_Load(),
I will call function by Name, PopulatePanels(),
In Private sub PopulatePanels()
If Cache("MainPage") Is Nothing Or Cache("Panel1") Is Nothing Or Cache("Panel2") Is Nothing Then
Here, i'll fill a dataset with information on the two panels, Now i apply filter like this,
lobjDView1 =
New DataView(MainDataSet.Tables(0))
lobjDView1.RowFilter =
"PanelID=1" lobjDView2 = New DataView(MainDataSet.Tables(0))
lobjDView2.RowFilter =
"PanelID=2" , after getting dataviews for two panels, i'll add the dataviews to datatable. lobjDSet1.Tables.Add(lobjDView1.ToTable("Panel1"))
lobjDSet2.Tables.Add(lobjDView2.ToTable(
"Panel2"))
Now i'll Say like, inserting into cache
Cache.Insert("Panel1", lobjDSet1., Nothing, DateTime.Now.AddDays(1), TimeSpan.Zero)
Cache.Insert(
"Panel2", lobjDSet2, Nothing, DateTime.Now.AddDays(1), TimeSpan.Zero) Cache.Insert("MainDataSet", lobjDSetPopulateFeaturedNewsOUTPUT, Nothing, DateTime.Now.AddDays(1), TimeSpan.Zero)
Now i had two updatepanels, with timer controls on timer_tick of timer control, i'll call a function, which will fetch the data from the cache but all the times cache is empty, see Getting information into panel1, panel2 will depened only on the data of MainDataSet, in this dataset i'll apply filter get information into 2 datasets for panel1 and panel2, these two datasets i'll place in cache. If timer_tick event of timer control in updatepanel happends they will go to the Cache("Panel1") typeconvert that object into dataset, and display the results in panel.
Hope, i had said what i thought of saying. Can anyone please kindly help on this, any ideas where i am going wrong, any suggestions
Thanks In Advance,
karthikeyan.