3
Answers

print array at spesific spot in my page

kiki

kiki

16y
4.3k
1
hi, I'm trying to create an application similar to a search engine in asp.net 2.0. I have gathered the results of a single query on my engine, in an array. I need to print these results in a spesific spot in my .asxp page. I dont know if the use of array is right way to follow in this application but anyway how can i print the results for example below the text box and button that exists in my .aspx file. I hope my bad english doesnt make it hard to understand what my problem is. Here is my code and the spot i want to place my results

<body topmargin=0; bottommargin=0; leftmargin=0; rightmargin=0;>

<form id="form3" runat="server">
<table width="905" height="246" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="170" height="122" rowspan="3" bgcolor="#FFFFFF"><img src="resultLogo.jpg" width="170" height="122" align="top" /></td>
    <td width="227" height="19" align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
    <td width="442" align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>

  </tr>
  <tr>
    <td height="37" align="center" valign="top" bgcolor="#FFFFFF"><img src="mapsiResults.jpg" width="227" height="52" /></td>
    <td width="442" align="left" valign="bottom" bgcolor="#FFFFFF">
      <asp:TextBox ID="searchText" runat="server" Width="264px"></asp:TextBox>
      &nbsp;
      <asp:Button ID="Button1" runat="server" OnClick="searchBut_Click" Text="search" Width="75px"></asp:Button>
   
    </td>
  </tr>
  <tr>
    <td height="19" align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
    <td width="442" align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
 
  <tr height="10">

    <td height="10" colspan="2" bgcolor="#708080">&nbsp;</td>
    <td height="10" bgcolor="#708080">&nbsp;</td>
  </tr>
  <tr>
    <td height="300" colspan="3" bgcolor="#FFFFFF">HERE IS THE SPOT THAT I WANT TO PRINT MY RESULTS </td>
  </tr>
</table>

    </form>

</body>

Answers (3)