On my site, i want a tiny section to display
quotes/testimonials from our customers. I want the text
to be randomly chosen from a file and then displayed
whenever a page loads.
I thought the Adrotator would work if i simply didn't
specify an image, and just used the AlternateText. The
text shows up, but it's inside an icon of a broken image.
Is there a .net control (built-into .NET) that can do
this?
If not, can you give any tips on how this is done by hand?
Thanks so much!
Johnwell you should have controls for that but you could write one without much
problems.
say you have xml file with say quotes.
load up the xml file in a dataset.
get the rowcount
use Randon.Next to generate a random between 0 and the RowCount -1
read the row and dispay its data.
optimise as needed... store data in cache or use singleton etc.
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"John Buchmann" <orders@.informatik.com> wrote in message
news:495101c49fed$93606490$a401280a@.phx.gbl...
> On my site, i want a tiny section to display
> quotes/testimonials from our customers. I want the text
> to be randomly chosen from a file and then displayed
> whenever a page loads.
> I thought the Adrotator would work if i simply didn't
> specify an image, and just used the AlternateText. The
> text shows up, but it's inside an icon of a broken image.
> Is there a .net control (built-into .NET) that can do
> this?
> If not, can you give any tips on how this is done by hand?
> Thanks so much!
> John
Thanks Dave for the info. I hate working w/ XML, but in
this case it was easy. And it worked like a charm.
Thanks again!
John
Thanks mate... glad that it worked :)
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"John Buchmann" <anonymous@.discussions.microsoft.com> wrote in message
news:1bc501c4a1a2$a0bef6e0$a401280a@.phx.gbl...
> Thanks Dave for the info. I hate working w/ XML, but in
> this case it was easy. And it worked like a charm.
> Thanks again!
> John
0 comments:
Post a Comment