Gridview Item Template textbox resize problem

MTester

Member
Joined
Mar 18, 2011
Messages
5
Programming Experience
Beginner
I have a gridview with item template text box, image button and listbox. I want the image button to be next to the textbox and I was not able to do it. Please see my code below. I need help in fixing the issue. Don't know what I am doing wrong.

<asp:TemplateField HeaderText="Title">
<ItemTemplate>
<asp:Label ID="lblTitle" Visible='<%# Not IsInEditMode %>' runat="server"
Text='<%# Eval("Title") %>' />
<asp:TextBox ID="txtTitle" Font-Names="Times New Roman" Font-Size="Small" width="280" height="45" TextMode="MultiLine" Visible='<%# IsInEditMode %>' runat="server" Text='<%# Eval("Title") %>' />
<asp:ImageButton ID="ImageButton1" onclick="Show" ImageUrl="down_arrow.png" runat="server" />
<asp:ListBox ID="lstRespDiv" runat="server" Font-Names="Times New Roman" Font-Size="Small" DataTextField="name" DataSource= '<%# load_Names() %>' onselectedindexchanged="listbox1_SelectedIndexChanged" Height="100px" Width="330px" SelectionMode ="multiple" AutoPostBack="false"></asp:ListBox>
</ItemTemplate>
</asp:TemplateField>
 
Back
Top