Hi
I am trying to edit a simple html layout of a module table, I want to realign the fields so that the "GO" button is on the same line as the dropdown selection menu. It seems a simple task, but no matter what I do nothing happens. It's driving me nuts.
Each row within the table has 3 columns (<td> label </td> <td> Parm </td> <td> btnGo </td> ) I am trying to edit so that all 3 columns are on the same line, but no matter what I do the Go button is always located several lines below and looks like it does not belong.
I have tried inserting table width, column width, declaring 3 cols in the table, putting them all into the same column. Nothing seems to work.
Below is the section from the default SQLGridSelectedView.ascx (from the module of the same name) that I am trying to edit.
<%@ Control Language="vb" autoeventwireup="false" codebehind="SQLGridSelectedView.ascx.vb" Inherits="TressleWorks.SQLGridSelectedView.SQLGridSelectedView" targetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<asp:panel id="pnlHeader" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" width="100%" border="0">
<TR>
<TD>
<asp:Label id="lblHeader" Runat="server" Visible="True"></asp:Label></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlDateSelection" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD>
<asp:Label id="lblDate_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:textbox id="txtDate_From" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD>
<asp:HyperLink id="lnkFromCalendar" Runat="server" CssClass="normalbold" text="Calendar Popup"
ImageUrl="cal.gif"></asp:HyperLink></TD>
<TD>
<asp:Label id="lblDate_To" EnableViewState="False" runat="server" cssClass="SGSV_NormalBold"
Text=" To "></asp:Label></TD>
<TD>
<asp:textbox id="txtDate_To" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD>
<asp:HyperLink id="lnkToCalendar" Runat="server" CssClass="normalbold" text="Calendar Popup" ImageUrl="cal.gif"></asp:HyperLink></TD>
<TD>
<asp:Button id="btnDate_Go" onclick="btnGo_DateClicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlDateSelection2" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD>
<asp:Label id="lbldate2_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:textbox id="txtdate2_From" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD>
<asp:HyperLink id="lnkFromCalendar2" Runat="server" CssClass="normalbold" text="Calendar Popup"
ImageUrl="cal.gif"></asp:HyperLink></TD>
<TD>
<asp:Label id="lbldate2_To" EnableViewState="False" runat="server" cssClass="SGSV_NormalBold"
Text=" To "></asp:Label></TD>
<TD>
<asp:textbox id="txtdate2_To" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD>
<asp:HyperLink id="lnkToCalendar2" Runat="server" CssClass="normalbold" text="Calendar Popup" ImageUrl="cal.gif"></asp:HyperLink></TD>
<TD>
<asp:Button id="btndate2_Go" onclick="btnGo_DateClicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlDateListSelection1" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD>
<asp:Label id="lblDateList1_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlDateList1" Runat="server" CssClass="NormalTextbox"></asp:DropDownList></TD>
<TD>
<asp:HyperLink id="lnkDateListCalendar1" Runat="server" CssClass="normalbold" text="Calendar Popup"
ImageUrl="cal.gif"></asp:HyperLink></TD>
<TD>
<asp:Button id="btnDateList1_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlDateListSelection2" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD>
<asp:Label id="lblDateList2_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlDateList2" Runat="server" CssClass="NormalTextbox"></asp:DropDownList></TD>
<TD>
<asp:HyperLink id="lnkDateListCalendar2" Runat="server" CssClass="normalbold" text="Calendar Popup"
ImageUrl="cal.gif"></asp:HyperLink></TD>
<TD>
<asp:Button id="btnDateList2_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlTextSearch" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD vAlign="top">
<asp:Label id="lblTextSearch_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:textbox id="txtTextSearch" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD vAlign="bottom">
<asp:Button id="btnTextSearch_GO" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlTextSearch2" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD vAlign="top">
<asp:Label id="lblTextSearch2_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:textbox id="txtTextSearch2" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD vAlign="bottom">
<asp:Button id="btnTextSearch2_GO" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlTextSearch3" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD vAlign="top">
<asp:Label id="lblTextSearch3_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:textbox id="txtTextSearch3" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD vAlign="bottom">
<asp:Button id="btnTextSearch3_GO" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlTextSearch4" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD vAlign="top">
<asp:Label id="lblTextSearch4_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:textbox id="txtTextSearch4" Runat="server" CssClass="NormalTextbox" Width="150px"></asp:textbox></TD>
<TD vAlign="bottom">
<asp:Button id="btnTextSearch4_GO" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlSelections" Runat="server">
<!--THIS IS THE SECTION I WANT TO EDIT -->
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD vAlign="top">
<asp:Label id="lblParm1_Label" EnableViewState="true" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlParm1" runat="server"></asp:DropDownList>
<asp:ListBox id="lstParm1" Runat="server" Visible="False" Rows="5"></asp:ListBox></TD>
<TD vAlign="bottom">
<asp:Button id="btnParm1_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD vAlign="top">
<asp:Label id="lblParm2_Label" EnableViewState="true" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlParm2" runat="server"></asp:DropDownList>
<asp:ListBox id="lstParm2" Runat="server" Visible="False" Rows="5"></asp:ListBox></TD>
<TD vAlign="bottom">
<asp:Button id="btnParm2_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD vAlign="top">
<asp:Label id="lblParm3_Label" EnableViewState="true" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlParm3" runat="server"></asp:DropDownList>
<asp:ListBox id="lstParm3" Runat="server" Visible="False" Rows="5"></asp:ListBox></TD>
<TD vAlign="bottom">
<asp:Button id="btnParm3_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD vAlign="top">
<asp:Label id="lblParm4_Label" EnableViewState="true" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlParm4" runat="server"></asp:DropDownList>
<asp:ListBox id="lstParm4" Runat="server" Visible="False" Rows="5"></asp:ListBox></TD>
<TD vAlign="bottom">
<asp:Button id="btnParm4_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD vAlign="top">
<asp:Label id="lblParm5_Label" EnableViewState="true" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlParm5" runat="server"></asp:DropDownList>
<asp:ListBox id="lstParm5" Runat="server" Visible="False" Rows="5"></asp:ListBox></TD>
<TD vAlign="bottom">
<asp:Button id="btnParm5_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
<!--END OF EDIT SECTION -->
</asp:panel><asp:panel id="pnlConditions" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD>
<asp:CheckBox id="chkCond1_Label" Runat="server" Visible="False" EnableViewState="True"></asp:CheckBox></TD>
<TD>
<asp:Button id="btnCond1_Go" onclick="btnGo_Clicked" Visible="False" runat="server" Text="Go"
cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD>
<asp:CheckBox id="chkCond2_Label" Runat="server" Visible="False" EnableViewState="True"></asp:CheckBox></TD>
<TD>
<asp:Button id="btnCond2_Go" onclick="btnGo_Clicked" Visible="False" runat="server" Text="Go"
cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD>
<asp:CheckBox id="chkCond3_Label" Runat="server" Visible="False" EnableViewState="True"></asp:CheckBox></TD>
<TD>
<asp:Button id="btnCond3_Go" onclick="btnGo_Clicked" Visible="False" runat="server" Text="Go"
cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD>
<asp:CheckBox id="chkCond4_Label" Runat="server" Visible="False" EnableViewState="True"></asp:CheckBox></TD>
<TD>
<asp:Button id="btnCond4_Go" onclick="btnGo_Clicked" Visible="False" runat="server" Text="Go"
cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
<TR>
<TD>
<asp:CheckBox id="chkCond5_Label" Runat="server" Visible="False" EnableViewState="True"></asp:CheckBox></TD>
<TD>
<asp:Button id="btnCond5_Go" onclick="btnGo_Clicked" Visible="False" runat="server" Text="Go"
cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlTopCount" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" border="0">
<TR>
<TD>
<asp:Label id="lblTopCount_Label" EnableViewState="True" runat="server"></asp:Label></TD>
<TD>
<asp:DropDownList id="ddlTopCount" runat="server"></asp:DropDownList></TD>
<TD>
<asp:Button id="btnTopCount_Go" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="SGSV_Normal"></asp:Button></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlSingleGoButton" Runat="server">
<asp:Button id="btnSingleGo" onclick="btnGo_Clicked" runat="server" Text="Go" cssclass="Normal"></asp:Button>
<asp:Label id="lblButtonSpace1" Runat="server"></asp:Label>
<asp:Button id="btnReset" onclick="btnReset_Clicked" runat="server" Text="Reset" cssclass="Normal"></asp:Button></asp:panel><asp:panel id="pnlComment" Runat="server" Visible="False">
<TABLE cellSpacing="2" cellPadding="2" width="100%" border="0">
<TR>
<TD>
<asp:Label id="lblDirections" Runat="server"></asp:Label></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlGridDisplay" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" width="100%" border="0">
<TR id="trUpperTable" runat="server">
<TD colSpan="3">
<asp:Panel id="pnlUpperTable" Runat="server">
<asp:Image id="imgAddRecord" Runat="server" AlternateText="Add Record"></asp:Image>
<asp:Button id="btnAddRecord" onclick="btnAddRecord_Clicked" runat="server" Text="Add Record"
cssclass="Normal"></asp:Button></asp:Panel></TD>
</TR>
<TR id="trDataGrid" runat="server">
<TD colSpan="3">
<asp:datagrid id="DataGrid1" EnableViewState="True" runat="server" OnPageIndexChanged="DataGrid_Page"
OnSortCommand="GridSortResults" GridLines="Both" CellPadding="3" BackColor="White" BorderStyle="Solid"
BorderWidth="1px">
<PagerStyle NextPageText="Next >>" PrevPageText="<< Prev" HorizontalAlign="Center"></PagerStyle>
</asp:datagrid></TD>
</TR>
<TR id="trCustomPager" runat="server">
<TD colSpan="3">
<asp:Panel id="pnlCustomPager" Runat="server">
<asp:linkbutton id="lnkFirstbutton" onclick="ChangePage" runat="server" cssClass="SGSV_NormalBold"
Text="<<" CommandArgument="first"></asp:linkbutton>
<asp:linkbutton id="lnkPrevbutton" onclick="ChangePage" runat="server" cssClass="SGSV_NormalBold"
Text="<" CommandArgument="prev"></asp:linkbutton>
<asp:linkbutton id="lnkPrevPageList" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="Prev 20" CommandArgument="..."></asp:linkbutton>
<asp:linkbutton id="lnkpg1" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="1"></asp:linkbutton>
<asp:linkbutton id="lnkpg2" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="2"></asp:linkbutton>
<asp:linkbutton id="lnkpg3" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="3"></asp:linkbutton>
<asp:linkbutton id="lnkpg4" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="4"></asp:linkbutton>
<asp:linkbutton id="lnkpg5" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="5"></asp:linkbutton>
<asp:linkbutton id="lnkpg6" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="6"></asp:linkbutton>
<asp:linkbutton id="lnkpg7" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="7"></asp:linkbutton>
<asp:linkbutton id="lnkpg8" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="8"></asp:linkbutton>
<asp:linkbutton id="lnkpg9" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="9"></asp:linkbutton>
<asp:linkbutton id="lnkpg10" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="10"></asp:linkbutton>
<asp:linkbutton id="lnkpg11" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="11"></asp:linkbutton>
<asp:linkbutton id="lnkpg12" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="12"></asp:linkbutton>
<asp:linkbutton id="lnkpg13" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="13"></asp:linkbutton>
<asp:linkbutton id="lnkpg14" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="14"></asp:linkbutton>
<asp:linkbutton id="lnkpg15" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="15"></asp:linkbutton>
<asp:linkbutton id="lnkpg16" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="16"></asp:linkbutton>
<asp:linkbutton id="lnkpg17" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="17"></asp:linkbutton>
<asp:linkbutton id="lnkpg18" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="18"></asp:linkbutton>
<asp:linkbutton id="lnkpg19" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="19"></asp:linkbutton>
<asp:linkbutton id="lnkpg20" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="" CommandArgument="20"></asp:linkbutton>
<asp:linkbutton id="lnkNextPageList" onclick="ChangePage" Visible="false" runat="server" cssClass="SGSV_NormalBold"
Text="Next 20" CommandArgument=".."></asp:linkbutton>
<asp:linkbutton id="lnkNextbutton" onclick="ChangePage" runat="server" cssClass="SGSV_NormalBold"
Text=">" CommandArgument="next"></asp:linkbutton>
<asp:linkbutton id="lnkLastbutton" onclick="ChangePage" runat="server" cssClass="SGSV_NormalBold"
Text=">>" CommandArgument="last"></asp:linkbutton>
</asp:Panel></TD>
</TR>
<TR id="trLowerTable" runat="server">
<TD colSpan="3">
<asp:Panel id="pnlLowerTable" Runat="server"></asp:Panel></TD>
</TR>
<TR>
<TD width="30%">
<asp:Label id="lblRecordCount" EnableViewState="False" runat="server" cssClass="NormalBold"></asp:Label></TD>
<TD align="center">
<asp:Label id="lblTimeStamp" EnableViewState="False" runat="server" cssClass="NormalBold"></asp:Label></TD>
<TD align="right" width="30%">
<asp:Label id="lblPageCount" EnableViewState="False" runat="server" cssClass="NormalBold"></asp:Label></TD>
</TR>
<TR id="trExport" runat="server">
<TD align="center" colSpan="3">
<asp:linkbutton id="lblExporttoExcel" onclick="ExporttoExcel" runat="server" cssClass="NormalBold"
Text="Export to Excel"></asp:linkbutton></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlFooter" Runat="server">
<TABLE cellSpacing="2" cellPadding="2" width="100%" border="0">
<TR>
<TD>
<asp:Label id="lblFooter" Runat="server" Visible="True"></asp:Label></TD>
</TR>
</TABLE>
</asp:panel><asp:panel id="pnlCommand" Runat="server">
<asp:textbox id="txtCommand" Runat="server" EnableViewState="False" cssclass="NormalTextBox"
Rows="15" width="100%" TextMode="Multiline"></asp:textbox>
</asp:panel><asp:panel id="pnlMessage" Runat="server">
<asp:Label id="lblMessage" EnableViewState="False" runat="server" cssClass="NormalTextbox"></asp:Label>
</asp:panel>
Has anybody sucessfully managed to tame this table.
Thanks
Lynn