Click here to Skip to main content
15,894,546 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
Chandana Subasinghe7-Mar-06 23:52
Chandana Subasinghe7-Mar-06 23:52 
GeneralRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
Chatura Dilan8-Mar-06 0:27
Chatura Dilan8-Mar-06 0:27 
GeneralRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
Dave Kreskowiak8-Mar-06 0:41
mveDave Kreskowiak8-Mar-06 0:41 
GeneralRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
Chandana Subasinghe8-Mar-06 0:59
Chandana Subasinghe8-Mar-06 0:59 
AnswerRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
kostasdiktia28-Mar-06 7:04
kostasdiktia28-Mar-06 7:04 
AnswerRe: Is it possible to run a vb.net exe file on Windows'98 OS Pin
Mohit Namdeo12-Mar-06 23:36
Mohit Namdeo12-Mar-06 23:36 
QuestionWrite a .Net user control for VB6 Pin
User 26989677-Mar-06 22:48
User 26989677-Mar-06 22:48 
AnswerRe: Write a .Net user control for VB6 Pin
H@is@here7-Mar-06 23:07
H@is@here7-Mar-06 23:07 
QuestionHiding of containing class property in propertyGrid Pin
kumarprabhakar747-Mar-06 22:23
kumarprabhakar747-Mar-06 22:23 
AnswerRe: Hiding of containing class property Pin
alien viper7-Mar-06 22:35
alien viper7-Mar-06 22:35 
GeneralRe: Hiding of containing class property Pin
kumarprabhakar747-Mar-06 23:12
kumarprabhakar747-Mar-06 23:12 
AnswerRe: Hiding of containing class property in propertyGrid Pin
Dave Kreskowiak8-Mar-06 2:51
mveDave Kreskowiak8-Mar-06 2:51 
QuestionUnicode supporting String functions in VB Pin
sp_ranjan7-Mar-06 22:15
sp_ranjan7-Mar-06 22:15 
AnswerRe: Unicode supporting String functions in VB Pin
Chandana Subasinghe7-Mar-06 23:57
Chandana Subasinghe7-Mar-06 23:57 

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.