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

Posted on 2009-04-27
Last Modified: 2012-05-06

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
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" >


			   <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>



			            <asp:TemplateColumn HeaderText="Account #" ItemStyle-Width=120px HeaderStyle-HorizontalAlign=Center >

				            <ItemTemplate >

				               <asp:HyperLink runat="server" ID="hlAccountNumber" NavigateUrl="javascript:window.close();"></asp:HyperLink>



			            <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">


				            <asp:Label ID="lblStatus" runat="server"></asp:label></ItemTemplate>







				   <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>




		        <table id="tblResults" runat="server" cellspacing=2 cellpadding=2 border=0 class="table4" align="center" style="width: 900px" >


			        <td colspan="2" class="title10" align="center" height="36" valign="bottom">

		              <asp:Label ID="lblResult" Runat="server"></asp:Label>





				   <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>




Open in new window

Question by:amukta
    1 Comment
    LVL 6

    Accepted Solution

    Do you still need help with this?

    If so how are you getting the data to bind with the datagrid?

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now