473,473 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Display Question

Hi,

I need a little advice with this ;

I retreive some data from a database, and i want to create an output
with a link, logo image, title etc..
But i want to change the data before displaying it..
Ex : if the data is "IN" i want to dipslay "Internet" and make a link to
"internet.aspx" with the appropriate logo.

so i use this method.

while myreader.read()
if myreader.getstring(0) = "IN" then
response.write ("<td>Internet.......
.....
end if
end while

But with this method i can't display the table at the exact place i want
on the page. Can i make a table before and shoot the value in it, or use a
datagrid and shot my modified value in it ?

It's probably easy for a lot of people, but i can't find the way :o))

Thank you.
Nov 20 '05 #1
1 926
Yes you can.

you can use the FindControl method to find a previously created HTML table
or set a table to run as a server control and it will be ref'd in your code
behind.

Don't use response.write, unless your debugging usually... even then, its
crap.. waste of time... The main reason, because it is rendered before
anything else so it always comes in at the top.

Response.write worked in asp 1.0-3.0 because there was no separation between
presentation and data/biz logic... most times you had your ASP embedded
right into your html... .NET doesn't allow you to do that anymore...
well... sorta.. not recomonded.

=0
"Andre" <lo*****@cablevision.qc.ca> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
Hi,

I need a little advice with this ;

I retreive some data from a database, and i want to create an output
with a link, logo image, title etc..
But i want to change the data before displaying it..
Ex : if the data is "IN" i want to dipslay "Internet" and make a link to "internet.aspx" with the appropriate logo.

so i use this method.

while myreader.read()
if myreader.getstring(0) = "IN" then
response.write ("<td>Internet.......
.....
end if
end while

But with this method i can't display the table at the exact place i want on the page. Can i make a table before and shoot the value in it, or use a
datagrid and shot my modified value in it ?

It's probably easy for a lot of people, but i can't find the way :o))

Thank you.

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tyrone Slothrop | last post by:
I am coding a site which involves uploading images. All of the PHP and display is OK but the client wants to be able to display the image thumbnail on the upload page and show the full image on...
33
by: selowitch | last post by:
I've been searching in vain for a way to present typographically correct fractions (not resorting to <sup> and <sub> tags) but have been frustrated by the fact that the glyphs for one-half,...
2
by: Erwin Moller | last post by:
Hi group, I have this obscure problem that really needs to be fixed, but I am out of ideas. Because the original script is very big, I'll try to summarize its functionality. Setup: - many...
4
by: drew197 | last post by:
I am a newbie. I am editing someone elses code to make it compatible with Firefox and Safari. In IE, when you click on the proper link, a block of text is shown in a nice paragraph form. But, in...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
0
by: tedqn | last post by:
1. Unlimited drill down. Is it possible to define an XSL that can loop all the way and parse result? question 1 answer 1 followup question followup answer followup question followup answer...
3
by: Erwin Moller | last post by:
Hi group, I have a rather big page with many (databasedependent) pieces of HTML. My question boils down to the following problem (simplified): Considering the folowwing piece of HTML: ...
11
by: zzpat | last post by:
I'm having problems understanding display and hover. I'm trying to hover over a question and have the answer display. ..question { color: #fff; background: purple; width: 300px;...
45
vikas251074
by: vikas251074 | last post by:
I think this is a Javascript question and i have posted this question in ASP forum my mistakenly. I am creating an application for official use. This application will be used by employees to take...
1
by: sandeepsangshetty | last post by:
Hi friends, I am new to Asp.net web pages using C#. I am doing "online written test"project using Asp.net. Here i'm storing the questions & answers in the sql sever 2005 database table. When the...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.