Last post Feb 28, 2010 04:25 AM by praveenrockz
Jul 14, 2008 01:26 PM|kevorkian|LINK
This is going to be a total newbie question I am sure, but I am unsure on how to do this.
I have a masterpage that has a floating box on it which is called "Design Tips". This consists of a FormView which opens a random record from an Access table and displays it. All of that works fine when the page is loaded.
I have a LinkButton that says "More Design Tips" which I want to basically just reload another random record. I thought I could do it simply by adding this:
Protected Sub link_more_designtips_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles link_more_designtips.Click
AccessDataSource1.SelectCommand = "SELECT TOP 1 title, tip, image FROM design_tips ORDER BY Rnd(-10000000*TimeValue(Now())*[ID])"
Jul 14, 2008 04:01 PM|joteke|LINK
if FormView is connected to this AccessDataSource, you should call DataBind() of the FormView.
Jul 14, 2008 05:10 PM|kevorkian|LINK
Jul 15, 2008 03:35 AM|joteke|LINK
So is your issue now solved?
Feb 28, 2010 04:25 AM|praveenrockz|LINK
Thanks it works for me...