Asp.net with c#

Posted by Deepak4mca under ASP.NET on 2/9/2009 | Views : 1094 | Status : [Member] | Replies : 3
How to upload image in EditIemTemplate in Gridview using asp.net with c#




Responses

Posted by: Neeks on: 2/9/2009 [Member] Bronze

Up
0
Down
Can you please tell me where do you want to store the Image.Either in database or in a Server Folder?

Deepak4mca, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Majith on: 2/10/2009 [Member] Starter

Up
0
Down
Follow the Below links,

http://www.aspfree.com/c/a/ASP.NET/Uploading-Images-to-a-Database--C---Part-I/

This Method is used to Uploading images to a Sql Server database by ASP.NET and C#.

For Edit ItemTemplate ,
<Columns>
<asp:TemplateField HeaderText="Image Upload">
<EditItemTemplate>
<input type="file" runat="server" />
</EditItemTemplate>
</asp:TemplateField>
</Columns>

Deepak4mca, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Deepak4mca on: 2/12/2009 [Member] Starter

Up
0
Down
Thanks For your answer
but you have given code of only for designing but we want to implement how to upload in asp.net using c# and we have to use like this in desin time
<asp:fileupload id="f1" runat="server">

Deepak4mca, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response