Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 October 16th, 2003, 11:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Advertisement popups

Hello,

I was wondering if it is possible, or if anybody can get me in a right start, to program those avertisements that pop up on a web page in .NET. I thought maybe you could use the drawing library or the GDI+ library to do it, but I'm not familiar with the graphics libraries.

Thanks,

Brian Mains
__________________
Brian
 
Old October 17th, 2003, 12:42 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What exactly are you trying to do? If you want popups, all you need is to send some JavaScript to the browser that request a new page with an ad in a new window.

Why do you think you need the GDI+ Library?

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 17th, 2003, 02:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I'm not talking a new window, I'm talking the advertisements that pop up right on the page itself. Like yahoo does where something goes accross the screen, or some advertisement pops up.
 
Old October 17th, 2003, 02:28 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, that's basically the same. Using ASP.NET does not add .NET capabilities to the end results of your pages. In the end, all you're sending from the server to the client is HTML, JavaScript, images etc. No fancy stuff like GDI+ can be done directly in the browser.

Take a look at the pages that have these behaviors. Yahoo is a good example, and so is Amazon. If you look at the source, you'll see some DHTML techniques, basically a mix of HTML elements and JavaScript. All this can be done by sending client-side JavaScript to the browser.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 19th, 2003, 03:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

OK, thank you Imar.
 
Old October 20th, 2003, 01:00 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Also, the more complicated (and animated) ads are done with flash. Flash can make things fly around in the browser as well.

Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
need show an advertisement jayshankar ASP.NET 2.0 Basics 3 August 14th, 2008 06:55 PM
POPUPS venks11 Classic ASP Basics 1 December 6th, 2005 06:56 AM
Adding javascript to popups chrscote Javascript How-To 2 June 8th, 2005 04:34 AM
POPUP ADVERTISEMENT Code hairobinhai BOOK: Professional Apache Tomcat 3 October 9th, 2004 03:27 PM





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