Click here to Skip to main content
15,890,186 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: online model Pin
Ajay 101865622-Aug-13 23:03
professionalAjay 101865622-Aug-13 23:03 
QuestionMathematical, Physics and Chemistry Symbols tools for ASP.NET Pin
Olamiji Akeem Odeyemi2-Aug-13 2:29
Olamiji Akeem Odeyemi2-Aug-13 2:29 
Questionneed help Pin
snehal1222-Aug-13 1:54
snehal1222-Aug-13 1:54 
AnswerRe: need help Pin
Richard MacCutchan2-Aug-13 3:08
mveRichard MacCutchan2-Aug-13 3:08 
QuestionAsp.net, javascript : Textbox issue with chrome and firefox. pls help me out Pin
christhuxavier2-Aug-13 1:12
christhuxavier2-Aug-13 1:12 
AnswerRe: Asp.net, javascript : Textbox issue with chrome and firefox. pls help me out Pin
Parwej Ahamad2-Aug-13 7:07
professionalParwej Ahamad2-Aug-13 7:07 
AnswerRe: Asp.net, javascript : Textbox issue with chrome and firefox. pls help me out Pin
Dholakiya Ankit10-Sep-13 0:51
Dholakiya Ankit10-Sep-13 0:51 
QuestionDisplaying images using image controller in asp.net which was retrived from sql server database Pin
Rajeev Krishna1-Aug-13 6:12
Rajeev Krishna1-Aug-13 6:12 
Dear All,

I have a table named images in sql server 2008 and it contains two colums imageid and image.Now i am able to insert images in to image column using file uploader controller and image which i have converted to binary form for storing.Now i want to disply the images in a image box correspondance with the image id.I am used textbox for receiving the id and a button to execute the command for displaying.I am using asp.net as front end.

public void ShowImage()
{

SqlConnection con = new SqlConnection();
con.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["anu"].ToString();
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Select ID,Image from Images where ID=" + txtid.Text;
cmd.CommandType = System.Data.CommandType.Text;
cmd.Connection = con;


con.Open();
SqlDataReader dreader = cmd.ExecuteReader();
dreader.Read();
Context.Response.BinaryWrite((byte[])dreader["image"]);
C#
dreader.Close();
        con.Close();

}


This code is working fine but it displaying the picture in a diifrent page but i need to display the picture in the image box which i have added.If anyone who know the answer, please help me.



Regards,
Rajeev K.
AnswerRe: Displaying images using image controller in asp.net which was retrived from sql server database Pin
Rajeev Krishna2-Aug-13 1:35
Rajeev Krishna2-Aug-13 1:35 
AnswerRe: Displaying images using image controller in asp.net which was retrived from sql server database Pin
Dholakiya Ankit7-Aug-13 21:28
Dholakiya Ankit7-Aug-13 21:28 
QuestionGenerate PDF documents from a HTML page using ASP.NET Pin
GopalakrishnanPS31-Jul-13 21:12
GopalakrishnanPS31-Jul-13 21:12 
AnswerRe: Generate PDF documents from a HTML page using ASP.NET Pin
Parwej Ahamad31-Jul-13 21:50
professionalParwej Ahamad31-Jul-13 21:50 
AnswerRe: Generate PDF documents from a HTML page using ASP.NET Pin
Bernhard Hiller31-Jul-13 22:35
Bernhard Hiller31-Jul-13 22:35 
GeneralRe: Generate PDF documents from a HTML page using ASP.NET Pin
GopalakrishnanPS1-Aug-13 2:15
GopalakrishnanPS1-Aug-13 2:15 
GeneralRe: Generate PDF documents from a HTML page using ASP.NET Pin
Bernhard Hiller1-Aug-13 3:50
Bernhard Hiller1-Aug-13 3:50 
GeneralRe: Generate PDF documents from a HTML page using ASP.NET Pin
GopalakrishnanPS1-Aug-13 5:06
GopalakrishnanPS1-Aug-13 5:06 
QuestionManually handling ASP.NET sessions Pin
Desmond Lim31-Jul-13 15:32
Desmond Lim31-Jul-13 15:32 
Question3-layer application Pin
larsp77731-Jul-13 9:28
larsp77731-Jul-13 9:28 
SuggestionRe: 3-layer application Pin
Richard MacCutchan31-Jul-13 21:05
mveRichard MacCutchan31-Jul-13 21:05 
Questionxslt template for creating excel file with multiple worksheets Pin
kanniga31-Jul-13 2:01
kanniga31-Jul-13 2:01 
AnswerRe: xslt template for creating excel file with multiple worksheets Pin
kanniga1-Aug-13 0:45
kanniga1-Aug-13 0:45 
QuestionPrint to serial port printer from the browser (asp.net web app:) Pin
sk_ko30-Jul-13 15:26
sk_ko30-Jul-13 15:26 
AnswerRe: Print to serial port printer from the browser (asp.net web app:) Pin
Ron Beyer30-Jul-13 15:47
professionalRon Beyer30-Jul-13 15:47 
QuestionASP.NET CMS recommendation for a small website Pin
devenv.exe30-Jul-13 4:16
professionaldevenv.exe30-Jul-13 4:16 
AnswerRe: ASP.NET CMS recommendation for a small website Pin
Rahul Rajat Singh31-Jul-13 0:25
professionalRahul Rajat Singh31-Jul-13 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.