473,414 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Help For ASP Page.

10
Hi friends.

I have asp pages in which i have included 2 files Header.asp & Right-Hand.asp.

The problem is that the <TD> in both files(Header.asp & Right-Hand.asp) should be increase as the content of the current page increase.Besides header.asp also contain header and left side portion in which i want show advertise i mean in both left side & right side.

I can't do b'caz i have just include these files in every page.So i can't get idea how to increase the size of included files <TD> according the content of the current page.

Can anybody have solution????
Sep 6 '06 #1
3 1365
divide
4
I'm not entirely sure if I'm interpreting what you're asking correctly. if you mean that these included files write out some html, but you want to be able to alter attributes of <td> elements in the included files, then you could try this:

Rather than have the files directly output their HTML content wherever you place them by means of your <include> statements, have the HTML in the included files placed within sub's. Have the values you want to use within the <td>'s passed into the sub's as parameters, and call the subs on the main page in the places where you need the HTML to be rendered.

Hope this helps!
Sep 11 '06 #2
pushkar
10
I'm not entirely sure if I'm interpreting what you're asking correctly. if you mean that these included files write out some html, but you want to be able to alter attributes of <td> elements in the included files, then you could try this:

Rather than have the files directly output their HTML content wherever you place them by means of your <include> statements, have the HTML in the included files placed within sub's. Have the values you want to use within the <td>'s passed into the sub's as parameters, and call the subs on the main page in the places where you need the HTML to be rendered.

Hope this helps!

You are getting my problem in right way but the solu u hav given i cant understand.Can u give Example Code.
Sep 12 '06 #3
divide
4
ok, example:

in your right-hand.asp do something like this:

Expand|Select|Wrap|Line Numbers
  1. sub doRighthand(tdNum)
  2.   %>
  3.   <table>
  4.     <tr>
  5.       <td style="width:<% =tdNum %>"></td>
  6.     </tr>
  7.   </table>
  8.   <%
  9. end sub
then in your main page include the right-hand file at the top of the page, and call the sub wherever on the page you need it, passing in the appropriate parameter for the td:

Expand|Select|Wrap|Line Numbers
  1. <!--#Include file="right-hand.asp"-->
  2. <html>
  3. <head>
  4. etc...
  5. etc...
  6. <%
  7. doRighthand 50
  8. %>
  9. etc...
Hope this explains it better
Sep 13 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jim | last post by:
I need some help getting started with a .NET web project for a commercial site. I am new to .NET and my understanding of some (but not all) of its concepts is a little sparse. I apologize for the...
4
by: Bruce E. Pullum | last post by:
Can anyone please help me understand how to do the following: I have an ASPX page that has a tabstrip and multipage. On the multipage, each pageview has an IFRAME that has another ASPX page...
14
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left...
2
by: Jeremy | last post by:
I'm having some problems with using Server.Transfer and I am hoping somebody can help me. Page 1 has a datagrid, Page 2 has a form. If a user goes to page 1 and selects something out of the...
2
by: -D- | last post by:
I'm taking my first stab at using xml, so please bear with my novice questions and understanding of xml. I'm trying to create an xml file that holds all my website navigation. If I understand...
0
by: Michael L | last post by:
Hi Guys(I apologize for the lengty post - Im trying to explain it as best i can) I've been cracking my head on this one for the past 24+ hours and i have tried creating the function in ten...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
16
by: gnawz | last post by:
I have a pagination function I am using in a file called functions.php as below<? //Pagination functions function getPagingQuery($sql, $itemPerPage = 10) { if (isset($_GET) && (int)$_GET > 0) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.