Displaying the button, hiding the grid, displaying a label and then displayingclose button

Hi!

I have a few text boxes, 3 buttons(submit, reset and close) a grid and a label.
Submit and button appear below  the textboxes and the close button appears below all these.

When I type in some criteria in the textboxes and hit the submit button, the results are displayed in a datagrid, with a scrollbar and the close button is displyed below the grid. When no results are returned it should display the text "No records found" in the label and the close button below the label.

How can this be done in asp.net.
Please let me know ASAP.
It's very, very urgent.


<table id="tblGrid" runat="server" cellspacing=2 cellpadding=2 border=0 class="table4" align="center" style="width: 900px" >
			<tr>
			   <td style="width: 900px">
			   <div style="OVERFLOW:auto; width:900px; height:550px">
		           <asp:datagrid enableViewState="false" CssClass="table11" id="dgTSYSSearch" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="False">
		           <ItemStyle cssclass="dgheader4"></ItemStyle>
                   <AlternatingItemStyle cssclass="dgheader5"></AlternatingItemStyle>
		           <HeaderStyle cssclass="dgheader1"></HeaderStyle>
		           
			       <Columns>
			            <asp:TemplateColumn HeaderText="Account #" ItemStyle-Width=120px HeaderStyle-HorizontalAlign=Center >
				            <ItemTemplate >
				               <asp:HyperLink runat="server" ID="hlAccountNumber" NavigateUrl="javascript:window.close();"></asp:HyperLink>
				            </ItemTemplate>
			            </asp:TemplateColumn>
			            <asp:BoundColumn DataField="Cardholder" HeaderText="Cust/Bus Name" />
			            <asp:BoundColumn DataField="Address_Line_1" HeaderText="Address1" />
			            <asp:BoundColumn DataField="Address_Line_2" HeaderText="Address2" />
			            <asp:BoundColumn DataField="Identification_Number" HeaderText="ID/SS #" />
			            <asp:TemplateColumn HeaderText="Status">
				        <ItemTemplate>
				            <asp:Label ID="lblStatus" runat="server"></asp:label></ItemTemplate>
			            </asp:TemplateColumn>
			          </Columns>
		         </asp:datagrid>
		          </div>
		         </td></tr>
		         <tr>
				   <td colspan="4" align="center">				
					 <span class=button style="BACKGROUND-COLOR: transparent"><input runat="server" id="bCloseBottom1" onclick='window.close();' type=button value="Close" style="font-weight:bold;"></span>
			       </td>			   
			     </tr>
		        </table>
		        <table id="tblResults" runat="server" cellspacing=2 cellpadding=2 border=0 class="table4" align="center" style="width: 900px" >
			     <tr>
			        <td colspan="2" class="title10" align="center" height="36" valign="bottom">
		              <asp:Label ID="lblResult" Runat="server"></asp:Label>
			        </td>
			    </tr>
			   	        
		        <tr>
				   <td colspan="4" align="center">				
					 <span class=button style="BACKGROUND-COLOR: transparent"><input runat="server" id="bCloseBottom2" onclick='window.close();' type=button value="Close" style="font-weight:bold;"></span>
			       </td>			   
			     </tr>
			     </table>

Open in new window

amuktaAsked:
Who is Participating?
 
ITHelper80Commented:
Do you still need help with this?

If so how are you getting the data to bind with the datagrid?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.