Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2006, 03:50 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I make a part of my include editable?

I have put my navigation header, which is sliced graphics with javascript on some of the text images in an include. On the left is a company logo image that is replaced depending on the area of the website you're in, ie., about us, contact us, business units etc. I am not much of a programmer and use simple stuff like includes for obvious reasons. Everything is working fine except the ability to change the leftside image in the child pages.

I have gotten as far as adding a column to the left and putting a table in it and given the table a really original ID, "hole". It seemed like the logical thing to do. Now I'm a little stuck. Is there a way to make "hole" editable so I can drop images in it from child pages?

Thank you,

Scott

  #2 (permalink)  
Old October 18th, 2006, 08:27 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

This may or may not work, its just theory.

In the days of asp, include files were processed along with the asp itself so you could provide functionality inside of your includes, so here is the theory:

In .NET i can use an aspx page as an image src like <img src="page.aspx?id=1"> on page.aspx i would do a Request.Querystring("ID") then setup my GDI functionality, create the image, and use a binary writer to send the datastream back to the browser effectively displaying the image.

So, I don't know if this is possible or not, but on your include you could try: file.aspx?page=page and then on the file.aspx page do a request.querystring and based off of what the value of page is select the image to display. Again, this is only a theory and I don't actually know if it will work, but try it out!

hth

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
  #3 (permalink)  
Old October 19th, 2006, 10:07 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, I will give it a try.

Regards,
Scott
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iframe editable skyler Javascript 3 April 15th, 2011 05:28 AM
Editable Dropdownlist msbsam ASP.NET 2.0 Professional 1 March 31st, 2008 09:08 AM
how to make Ultragrid editable ? remya_pn Pro VB 6 0 February 26th, 2007 06:55 AM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
xsl:include within include chuck123ie XSLT 1 January 5th, 2006 11:07 AM



All times are GMT -4. The time now is 04:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.