I want to save textbox and image values on sql server and as well display it on gridview.
I want to store the image in varchar format in database and not as image datatype.
apart from handler , is there any method?
Can anyone help me with the ado connections and design table in sqlserver .
Below is my category page
Category Name: | ontextchanged="TextBox1_TextChanged"> ControlToValidate="TextBox1" ErrorMessage="Ad Name 1 required" ValidationGroup="v1">* | |
Add Image1: | ||
Description 1: | ValidationGroup="v1" ontextchanged="TextBox3_TextChanged"> (only 50 characters allowed) ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" ErrorMessage="Description 1 required" ValidationGroup="v1">* | --%>|
ValidationGroup="v1" /> ValidationGroup="v1" /> | ||
ShowMessageBox="True" ShowSummary="False" ValidationGroup="v1" /> |
AutoGenerateColumns="false" BorderColor="#FF6600" BorderWidth="1px" CellPadding="10" CellSpacing="4" GridLines="None" HorizontalAlign="Center" onpageindexchanging="GridView1_PageIndexChanging" PageSize="10" onrowdeleting="GridView1_RowDeleting" AllowPaging="True" onselectedindexchanged="GridView1_SelectedIndexChanged"> <%-- --%> <%-- |
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsForums
Top experts
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 21, 2013, 2:23 AM EDT
http://www.aspdotnet-suresh.com/2011/03/how-to-save-images-into-folder-and.html
if any problem rply.
antony victor90 reputationPosted Jun 21, 2013, 3:17 AM EDT
Bcoz , i have to extend the functionality, i meant i have to create a subcategory in the nextpage and i have to pull the category name in dropdown list and add the same textbox and another image , under category .... And i have to display both category , subcategory in gridview....
can the above thing be done by storing the imagepath ?
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 21, 2013, 6:41 AM EDT
Better to store image path in database and image in server. if you store image in database directly it take lot space in database and fetching the image required extra code. For better performance store the path in database.
antony victor90 reputationPosted Jun 22, 2013, 1:52 AM EDT