[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

a text box within a gridview

Asked by solraccheffy in C# Programming Language

I have the code listed below, but I want to put a text box with a submit button within my gridview (gridview is blank by default) on submit the page refreshes with the gridview and its populated. but I also want to include a textbox with a submit button above the gridview
but anytime I try to put code within the gridview I get errors...what am I missing?

<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="true" BorderWidth="1" PagerStyle-CssClass="boldBlackTitle" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right">
<EmptyDataTemplate>
<table cellSpacing="0" cellPadding="0" border="0" width="400">
    <tr>
            <td width="10"></td>        
        <td><span class="regularBlackTitle">Currently there are no records that match your query.</span></td>
    </tr>
</table>        
</EmptyDataTemplate>
    <Columns>      
        <asp:BoundField HeaderStyle-CssClass="boldTitleResultsDarkBlue" HeaderStyle-ForeColor="#FFFFFF" DataField="community" HeaderText="Community" ItemStyle-Width="85px" HeaderStyle-HorizontalAlign="Left" SortExpression="community"></asp:BoundField>                                
        <asp:TemplateField HeaderStyle-CssClass="bBlue" ItemStyle-Width="10px"></asp:TemplateField>                            
    </Columns>
    <RowStyle CssClass="resultswhite" />
    <AlternatingRowStyle CssClass="resultsblue" />
</asp:GridView>
[+][-]11/05/09 06:43 AM, ID: 25749911Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 06:50 AM, ID: 25750008Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/10/09 08:18 AM, ID: 25786849Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 08:21 AM, ID: 25786872Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625