943,910 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 2278
  • ASP.NET RSS
Apr 3rd, 2008
0

Image popup into template with ads

Expand Post »
I'm looking for C# based, asp.net code (either with or without ajax extensions), that will allow me to load full size images (from thumbnails) into a "template" or aspx page that I will have focused advertising embedded.

I know I have to create the thumbs gallery page and the ad page (or popup page) but I need to have the thumbnails load into their full size images into the popup page which will have the focused advertising (i.e. banner ads).

The best example I can give, is something very similar to www.stuffmagazine.com/cover_girls/ (these are non-nude galleries and by no means am I trying to solicit business or support to them, just want to be clear what I'm trying to accomplish).

So, in essence, I need to pass along the full image path to the popup window (reuseable). I'm really new at asp.net and any examples, code or references would make my task much easier. I'm not after the look of the gallery page, just how to code the popup portion and code behind that passes the image details to it.

Thanks in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
txwebdesign is offline Offline
21 posts
since Jan 2008
Apr 4th, 2008
0

Re: Image popup into template with ads

Sorry, I think I was just trying to confuse the issue because of the asp.net coding base. It was really just a matter of simple javascripting and onclick event, I went back to the basics and I solved the problem.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
txwebdesign is offline Offline
21 posts
since Jan 2008
Jan 16th, 2009
0

Re: Image popup into template with ads

Sorry, I think I was just trying to confuse the issue because of the asp.net coding base. It was really just a matter of simple javascripting and onclick event, I went back to the basics and I solved the problem.
Hello,
I have the same problem embedding upload pictures on table.
Can you tell me how you solve the problem.

Tanks in advance.
Regards,
E. Pierre
Reputation Points: 10
Solved Threads: 0
Newbie Poster
EPierre is offline Offline
16 posts
since Jan 2005
Jan 19th, 2009
0

Re: Image popup into template with ads

Click to Expand / Collapse  Quote originally posted by EPierre ...
Hello,
I have the same problem embedding upload pictures on table.
Can you tell me how you solve the problem.

Tanks in advance.
Regards,
E. Pierre
There's a couple of steps I used. First I created a template page with the ad embeded into the template (you could do multiple templates if you wanted to change ads, if you are using them, if not then just 1 blank template page).

Next I used the following script:
ASP.NET Syntax (Toggle Plain Text)
  1. <script type="text/javascript" language="Javascript">
  2. function PopupPic(sPicURL) {
  3. window.open("GOTtmpl1.aspx?" + sPicURL, "GirlsOfTexas",
  4. "resizable=1,HEIGHT=800,WIDTH=650, scrollbars=1");
  5. }
  6. </script>

Lastly, I created a gallery page with my thumbs laid out and calling the script from above on each thumb. Here's an example of that table code:
ASP.NET Syntax (Toggle Plain Text)
  1. <table align="center" style="width: 100%">
  2. <tr>
  3. <td valign="top"><a href="javascript:PopupPic('models/brooke/brooke4-O8-0001.jpg')">
  4. <img src="models/brooke/thumbs/brooke4-O8-0001.jpg" alt="Brooke 1" /></a></td>
  5.  
  6. <td valign="top"><a href="javascript:PopupPic('models/brooke/brooke4-O8-0316.jpg')">
  7. <img src="models/brooke/thumbs/brooke4-O8-0316.jpg" alt="Brooke 2" /></a></td>
  8.  
  9. <td valign="top"><a href="javascript:PopupPic('models/brooke/brooke4-O8-0317.jpg')">
  10. <img src="models/brooke/thumbs/brooke4-O8-0317.jpg" alt="Brooke 3" /></a></td>
  11. </tr></table>

Also, you could dynamically resize your full size pics for the thumbs but I use a seperate thumbnail and full size image file.

No promo for my site but you can check out the code in action at Girlsoftexasmag.com, go to the model page and pick any model. These are non-nude but Maxim style, so if you prefer not to view that's understandable.
Last edited by txwebdesign; Jan 19th, 2009 at 10:03 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
txwebdesign is offline Offline
21 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: need to add a step in the create user wizard in vwd2005
Next Thread in ASP.NET Forum Timeline: How to manipulate asp controls in content page with unit testing?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC