Sreenish

Sreenish

  • NA
  • 249
  • 33.3k

can anyone help me

Sep 16 2015 6:19 AM
Am facing problem in gridview i have three columns in gridview  date,name and image everything i have to enter manually not from database...am posting source code send me code behind for that please...
 
 
 
Source Code::
 
 
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">

</asp:ToolkitScriptManager>
<div>
<asp:GridView ID="Gridview1" runat="server" ShowFooter="True"
AutoGenerateColumns="False"
>
<Columns>
<asp:TemplateField HeaderText="Date">
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" Format="dd/MM/yyyy">
</asp:CalendarExtender>
</ItemTemplate>
</asp:TemplateField>

<asp:ImageField DataImageUrlField="Value" ControlStyle-Height="50" ControlStyle-Width="50"
HeaderText="Image">
<ControlStyle Height="50px" Width="50px"></ControlStyle>
</asp:ImageField>



<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</ItemTemplate>
<FooterStyle HorizontalAlign="Right" />
<FooterTemplate>
<asp:Button ID="ButtonAdd" runat="server" Text="Add New Row" OnClick="ButtonAdd_Click" />

</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="btnUpload" runat="server" Text="Display" OnClick="Upload" />

</div> 

Answers (5)