Amruta Kirdat

Amruta Kirdat

  • NA
  • 103
  • 34k

Search

Mar 3 2011 12:08 AM
there are 3 pages in my asp.net application. first page named Product1.aspx, second: Product2.aspx , and thrid search.aspx. Product1.aspx contains following code

 <asp:Table ID="Table1" runat="server" Width="513px" Height="597px">
  <asp:TableRow runat="server">
  <asp:TableCell runat="server">
  <asp:Image ID="Image1" runat="server" ImageUrl=""  />
  </asp:TableCell>
  <asp:TableCell runat="server">
  <asp:Literal  runat="server"
  ID="Literal1" Text="This contains some description about Car Speakers. Product1 is a very useful product. Blah Blah Blah..."></asp:Literal>
  </asp:TableCell>
  </asp:TableRow>
  </asp:Table>

as there is table structure, which first cell contains image and second cell contains description. Product 2 is also same as Product1 in structure i.e there is Table whose first cell is Image and second is Description

Now Search.aspx contains one txtbox with button. If i type Speakers in textbox and click on button to search then my code should search above two pages i.e Product1 and Product2.aspx whether they contain Speakers word. if i got speakers word then my next task is to extract all that row i.e extract image and description and show it in Search.aspx file, which contains empty table....

I hope u understand my prob....
currently i m able to search word using ReadLine but as Readline only fetched single line at a time so getting problem to fetch all that TableRow...

can anyone help me?

thx in advance....

Answers (3)