Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel process Pin
Jimmanuel7-Feb-08 8:09
Jimmanuel7-Feb-08 8:09 
Generalproblem in windows application...please help me Pin
Prashant B. Lavate7-Feb-08 2:31
Prashant B. Lavate7-Feb-08 2:31 
GeneralRe: problem in windows application...please help me Pin
Vikram A Punathambekar7-Feb-08 2:46
Vikram A Punathambekar7-Feb-08 2:46 
GeneralRe: problem in windows application...please help me Pin
electriac7-Feb-08 4:18
electriac7-Feb-08 4:18 
GeneralRe: problem in windows application...please help me Pin
Ravenet7-Feb-08 16:24
Ravenet7-Feb-08 16:24 
QuestionRetriving images from sqlserver Pin
rajeshkumar g7-Feb-08 2:17
rajeshkumar g7-Feb-08 2:17 
GeneralRe: Retriving images from sqlserver Pin
pmarfleet7-Feb-08 2:25
pmarfleet7-Feb-08 2:25 
GeneralRe: Retriving images from sqlserver Pin
rajeshkumar g8-Feb-08 1:00
rajeshkumar g8-Feb-08 1:00 
following code works fine in vb.net application but in c# application doesnot work because myDataReader.Item method not in c#. so how this one implemented in c#


Dim myConnection As New SqlConnection("server=latitude-be8a47;database=tempdb;uid=sa;password=sa")

Dim myCommand As New SqlCommand("Select * from Person", myConnection)



Try

myConnection.Open()

Dim myDataReader As SqlDataReader

myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)



Do While (myDataReader.Read())

Response.ContentType = myDataReader.Item("PersonImageType")

Response.BinaryWrite(myDataReader.Item("PersonImage"))


Loop



myConnection.Close()

Response.Write("Person info successfully retrieved!")

Catch SQLexc As SqlException

Response.Write("Read Failed : " & SQLexc.ToString())

End Try
GeneralRe: Retriving images from sqlserver Pin
pmarfleet8-Feb-08 8:34
pmarfleet8-Feb-08 8:34 
GeneralRe: Retriving images from sqlserver Pin
Giorgi Dalakishvili7-Feb-08 2:46
mentorGiorgi Dalakishvili7-Feb-08 2:46 
GeneralRe: Retriving images from sqlserver Pin
Expert Coming7-Feb-08 16:02
Expert Coming7-Feb-08 16:02 
GeneralRe: Retriving images from sqlserver Pin
rajeshkumar g8-Feb-08 0:59
rajeshkumar g8-Feb-08 0:59 
QuestionUpdate Panel Error on Postback Pin
Chetan Patel7-Feb-08 2:05
Chetan Patel7-Feb-08 2:05 
GeneralWrong forum Pin
pmarfleet7-Feb-08 2:26
pmarfleet7-Feb-08 2:26 
GeneralTable in Windows Application (C#) Pin
peter rankel7-Feb-08 1:08
peter rankel7-Feb-08 1:08 
GeneralRe: Table in Windows Application (C#) Pin
phannon867-Feb-08 1:14
professionalphannon867-Feb-08 1:14 
GeneralRe: Table in Windows Application (C#) Pin
engsrini7-Feb-08 15:14
engsrini7-Feb-08 15:14 
GeneralTable in Windows Application (C#) Pin
peter rankel7-Feb-08 18:46
peter rankel7-Feb-08 18:46 
GeneralRe: Table in Windows Application (C#) Pin
J a a n s7-Feb-08 1:22
professionalJ a a n s7-Feb-08 1:22 
GeneralTable in Windows Application (C#) Pin
peter rankel7-Feb-08 18:43
peter rankel7-Feb-08 18:43 
QuestionRead data from Textbox to a WORD document(and vice versa) Pin
Walaza7-Feb-08 0:58
Walaza7-Feb-08 0:58 
GeneralRe: Read data from Textbox to a WORD document(and vice versa) Pin
Giorgi Dalakishvili7-Feb-08 1:28
mentorGiorgi Dalakishvili7-Feb-08 1:28 
GeneralRe: Read data from Textbox to a WORD document(and vice versa) Pin
J a a n s7-Feb-08 1:29
professionalJ a a n s7-Feb-08 1:29 
QuestionRaise VB6 event from C#.NET Pin
MayyMagdy7-Feb-08 0:04
MayyMagdy7-Feb-08 0:04 
GeneralRe: Raise VB6 event from C#.NET Pin
Ennis Ray Lynch, Jr.7-Feb-08 6:47
Ennis Ray Lynch, Jr.7-Feb-08 6:47 

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.