Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2007, 07:20 AM
Authorized User
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple adrotators with multiple images

Hi friends,

  I have 9 adrotator controls in my web page.I shud be able to populate n number of images from my xml file written from database values.
I want to images to be almost equally shared to the controls i have....

for example:
------------------------------------------------------------
--if there are 45 images in database..
  then 5 images shud be allocated to 9 adrotator controls.

--if therea re 50 images in database..
  then 4 controls shud be allocated to 5 images each and
  5 controls shud be allocated to 6 images.

How to use manage multiple adrotators with multiple images????
How to allocate the images to my 9 controls????

PLEASE GIVE ME AN IDEA ON THIS....
ANY HELP IS APPRICIATED....
THANKS a lot....

Karthik
[Nothing is impossible]
__________________
Karthik
[Nothing is impossible]
 
Old December 5th, 2007, 09:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. I don't really know how this control work (never use it )but can you just loop around your images and setting 1 at a time to the control???
something like
while still got images left
adcontrol = image
goto next image
goto next control
if next control is null goto the first one.
end while

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old December 5th, 2007, 09:54 PM
Authorized User
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi gbianchi,

 thanks for u r immediate reply...
 Okay...i will try to accomplish my requirement of allocating the images to controls programatically.
 But i want to know,is there any way to get the images directly from xml,instead of storing it in database...
Sorry if u feel this question is silly...

Thanks...

Karthik
[Nothing is impossible]
 
Old December 5th, 2007, 11:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

if it accept a datasource, probably you can, but I never use it so I can't tell you...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old December 5th, 2007, 11:36 PM
Authorized User
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

still...breaking my head..

Karthik
[Nothing is impossible]





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load multiple Images on the Form? shah123 C# 1 May 20th, 2007 09:28 PM
Uploading multiple images Adam H-W Classic ASP Basics 0 April 26th, 2007 04:18 AM
Display thumbnail images in multiple rows arpd2005 .NET Framework 2.0 0 May 26th, 2006 01:09 PM
Multiple Joins in Multiple Table Search query pookster Access 4 September 23rd, 2004 03:04 PM
Updating multiple Rows from multiple fields in ASP vdm_nana SQL Server ASP 0 April 1st, 2004 04:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.