Click here to Skip to main content
15,916,180 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Execution speed - question re: vb.net Pin
Steve Pullan8-Mar-06 11:38
Steve Pullan8-Mar-06 11:38 
GeneralRe: Execution speed - question re: vb.net Pin
guruvar28-Mar-06 11:45
guruvar28-Mar-06 11:45 
AnswerRe: Execution speed - question re: vb.net Pin
Garth J Lancaster8-Mar-06 15:37
professionalGarth J Lancaster8-Mar-06 15:37 
QuestionChange the ink quality to Draft Pin
kostasdiktia28-Mar-06 7:00
kostasdiktia28-Mar-06 7:00 
Question[Message Deleted] Pin
jpope8-Mar-06 6:38
jpope8-Mar-06 6:38 
AnswerRe: VB6 and Using .NET 2.0 and System.Data.SqlClient Pin
Chandana Subasinghe8-Mar-06 9:10
Chandana Subasinghe8-Mar-06 9:10 
GeneralRe: VB6 and Using .NET 2.0 and System.Data.SqlClient Pin
jpope8-Mar-06 9:30
jpope8-Mar-06 9:30 
AnswerRe: VB6 and Using .NET 2.0 and System.Data.SqlClient Pin
Guffa8-Mar-06 10:04
Guffa8-Mar-06 10:04 
Questionhavaing embedded resource error while playing midi file Pin
campbells8-Mar-06 5:55
campbells8-Mar-06 5:55 
QuestionSql DataBase Auditing Pin
Juliafuentes8-Mar-06 5:45
Juliafuentes8-Mar-06 5:45 
Questionhow to show image in coding? Pin
campbells8-Mar-06 5:32
campbells8-Mar-06 5:32 
AnswerRe: how to show image in coding? Pin
Chatura Dilan8-Mar-06 13:46
Chatura Dilan8-Mar-06 13:46 
QuestionVisual Basic Newbie Pin
dream_weaver8-Mar-06 5:26
dream_weaver8-Mar-06 5:26 
AnswerRe: Visual Basic Newbie Pin
Steve Pullan8-Mar-06 11:41
Steve Pullan8-Mar-06 11:41 
QuestionError message, Help Pin
Spaz808-Mar-06 3:55
Spaz808-Mar-06 3:55 
AnswerRe: Error message, Help Pin
Steve Pullan8-Mar-06 11:44
Steve Pullan8-Mar-06 11:44 
QuestionStrange VBA problem with Excel Pin
Waldermort8-Mar-06 3:05
Waldermort8-Mar-06 3:05 
QuestionHow to calculate exact difference between two dates? Pin
Krishnaraj Barvathaya B8-Mar-06 2:19
Krishnaraj Barvathaya B8-Mar-06 2:19 
AnswerRe: How to calculate exact difference between two dates? Pin
Chandana Subasinghe8-Mar-06 3:00
Chandana Subasinghe8-Mar-06 3:00 
AnswerRe: How to calculate exact difference between two dates? Pin
Chandana Subasinghe8-Mar-06 3:09
Chandana Subasinghe8-Mar-06 3:09 
QuestionInsert Link in RichTextBox Pin
qcarroll8-Mar-06 1:43
qcarroll8-Mar-06 1:43 
Questionstoring and displaying images from database Pin
uglyeyes8-Mar-06 1:21
uglyeyes8-Mar-06 1:21 
Hi,

i am using a online dating site(a simple one). about images..is it good to store images in the database (ms sqlserver 2000) using ado.net
if yes i am continuing

my image uploads are working file now about managing images for user.
each user should be able to upload upto 5 images.
below are my codes

.aspx
----
aspx.vb
-------
Dim id As Integer = Request.QueryString("id")
objConn = New SqlConnection(dbPath)
Try

cmd = New SqlCommand("select * from userImage where userId='" + id.ToString + "'", objConn)
objConn.Open()
dr = cmd.ExecuteReader
'Dim img As Byte() = CType(cmd.ExecuteScalar(), Byte())
If dr.Read = True Then
Response.BinaryWrite(dr("bits"))
End If

Response.ContentType = "image/jpeg"
Catch ex As Exception
Response.Write("Oops what went wrong:" + ex.ToString)
Finally
objConn.Close()


End Try

--------
now the problem is

each image should have delete link which will actually delete the image and should be option like set image as primary pic.
in my aspx.vb if there is only one image rest of the images should be invisble instead of having img icon with no image.

please help me how to achieve this.

thanks in forward as i am just beginner in this area.

robin
AnswerRe: storing and displaying images from database Pin
uglyeyes8-Mar-06 17:59
uglyeyes8-Mar-06 17:59 
QuestionIs it possible to run a vb.net exe file on Windows'98 OS Pin
hisuman1007-Mar-06 23:31
hisuman1007-Mar-06 23:31 
AnswerRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
H@is@here7-Mar-06 23:47
H@is@here7-Mar-06 23: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.