Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align using QueryString

Status
Not open for further replies.

Beng79

Technical User
Jan 5, 2006
48
0
0
HK
Hi all,

I have posted the problem in the ASP forum before, and was directed here.

I have the following script using QueryString:

<%
Dim connectDel, recstDel
Dim FeatureID

Set connectDel = Server.CreateObject("ADODB.Connection")
connectDel.Open("DRIVER={Microsoft Access Driver (*.mdb)};" _
& "DBQ=" & Server.MapPath("Estimation.mdb"))

Set recstDel = Server.CreateObject("ADODB.Recordset")

FeatureID = Request.QueryString("FeatID")
recstDel.Open "DELETE from FuncFeat WHERE FeatID=" & FeatureID, connectDel

Set recstDel = Nothing
Set connectDel = Nothing

Response.Redirect("DeleteFeatures.asp")
%>

How can I properly align a list shown using QueryString in html since now its all centre align and there is no spacing between the delete link and "FeatName"?

Any help is appreciated
 
What you're asking about has nothing to do with the QueryString, but with the way the HTML is written on the page where the info is displayed. You'll need to show us the HTML output from that page, probably DeleteFeatures.asp, and NOT the ASP scripting.

Lee
 
The HTML output is as below (sorry,its a long one):

<!- - #include file= "adovbs.inc" - ->
<%@ Language = "VBScript" %>

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice" xmlns="
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="File-List" href="Delete%20Features_files/filelist.xml">

<title>PROBLEM ESTIMATION AUTOMATED SYSTEM - DELETE TV FUNCTIONAL FEATURES</title>
<!--[if !mso]>
<style>
v\:* { behavior: url(#default#VML) }
o\:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<![endif]-->
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs.src=a; }
}

function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
// -->
</script>
<meta name="Microsoft Theme" content="aftrnoon 1111">
<!--[if gte mso 9]>
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]-->
</head>

<body onload="FP_preloadImgs(/*url*/'Delete_1A.jpg', /*url*/'Delete_1B.jpg', /*url*/'Clear_1A.jpg', /*url*/'Clear_1B.jpg', /*url*/'Cancel_1B.jpg', /*url*/'Cancel_1A.jpg')" style="text-align: center">

<p align="center"><!--[if gte vml 1]><v:shapetype id="_x0000_t202"
coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
<v:stroke joinstyle="miter"/>
<v:path gradientshapeok="t" o:connecttype="rect"/>
</v:shapetype><v:shape id="_x0000_s1025" type="#_x0000_t202" alt="" style='position:absolute;
left:5.25pt;top:57.75pt;width:738.75pt;height:24.75pt;z-index:1' fillcolor="#36c"
strokecolor="#ff9" strokeweight="2.25pt">
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font color="#FFFFFF" size="4"><b>
<span style="font-family: Arial">DELETE TV FUNCTIONAL FEATURES</span></b></font></td>
</tr>
</table>
</v:textbox>
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:5px;top:75px;width:993px;height:41px'><img width=993
height=41 src="Delete%20Features59_files/image001.gif" v:shapes="_x0000_s1025"></span><![endif]></p>

<p align="center"><!--[if gte vml 1]><v:shape
id="_x0000_s1033" type="#_x0000_t202" alt="" style='position:absolute;left:120.75pt;
top:15pt;width:510pt;height:30.75pt;z-index:1' fillcolor="#5e9eff" stroked="f"
strokecolor="#ff9">
<v:fill color2="#ffebfa" o:eek:pacity2="52429f" rotate="t" focusposition=".5,.5"
focussize="" colors="0 #5e9eff;26214f #85c2ff;45875f #c4d6eb;1 #ffebfa"
method="none" type="gradientRadial"/>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<span style="font-family: Arial; text-transform: uppercase; font-weight: 700">
<font style="font-size: 22pt" color="#333399">Problem Estimation
Automated System</font></span><p><font face="Arial">&nbsp;</font></td>
</tr>
</table>
</v:textbox>
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:161px;top:20px;width:684px;height:45px'><img width=684
height=45 src="Delete%20Features59_files/image002.gif" v:shapes="_x0000_s1033"></span><![endif]></p>
<p>&nbsp;</p>
<p align="left">&nbsp;</p>
<p align="center"><font color="#333399" face="Arial"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</b></font></p>
<form method="POST" action="DeleteFeatures_verify.asp" onSubmit="">
<p><!--[if gte vml 1]><v:line
id="_x0000_s1035" alt="" style='position:absolute;left:0;text-align:left;
top:0;flip:y;z-index:1' from="23.25pt,116.25pt" to="714pt,116.25pt"
strokecolor="#09f"/><![endif]--><![if !vml]><span style='mso-ignore:vglayout;
position:absolute;z-index:1;left:30px;top:154px;width:923px;height:2px'><img
width=923 height=2 src="Delete%20Features59_files/image003.gif" v:shapes="_x0000_s1035"></span><![endif]></p>

<p></p>
<p><span style="vertical-align: middle"><b>
<font face="Arial" color="#333399">&nbsp;&nbsp;&nbsp; </font></b></span></p>
<p><span style="vertical-align: middle"><b>
<font face="Arial" color="#333399">&nbsp;&nbsp; </font></b></span></p>

After this line, then follows the ASP script.
 
It's often difficult to plough through HTML that has been auto-generated by a Microsoft end-user application. You will do better if you want to do websites to learn the basics of HTML and CSS, then start from scratch with this one. To see what I mean, go to:
and test your code - you will be horrified at what MS has generated for you.

Start your learning at
There are sections on the basics of HTML and CSS. When you've studied them you will find that good layout is a LOT simpler that MS makes it!

PS - I suspect that a lot of your problems with a centred list are due to the align="center" attributes littered through the code

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top