Click here to Skip to main content
15,914,014 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Display a single quote in a GridView's ToolTip Pin
-Dr_X-14-Feb-07 4:35
-Dr_X-14-Feb-07 4:35 
GeneralRe: Display a single quote in a GridView's ToolTip Pin
badgrs14-Feb-07 4:45
badgrs14-Feb-07 4:45 
AnswerRe: Display a single quote in a GridView's ToolTip Pin
-Dr_X-14-Feb-07 5:00
-Dr_X-14-Feb-07 5:00 
GeneralRe: Display a single quote in a GridView's ToolTip Pin
andyharman14-Feb-07 6:25
professionalandyharman14-Feb-07 6:25 
AnswerRe: Display a single quote in a GridView's ToolTip Pin
-Dr_X-14-Feb-07 6:49
-Dr_X-14-Feb-07 6:49 
QuestionAJAX aspnet Pin
Kunal P14-Feb-07 3:03
Kunal P14-Feb-07 3:03 
AnswerRe: AJAX aspnet Pin
-Dr_X-14-Feb-07 3:15
-Dr_X-14-Feb-07 3:15 
GeneralRe: AJAX aspnet Pin
badgrs14-Feb-07 3:26
badgrs14-Feb-07 3:26 
GeneralRe: AJAX aspnet Pin
Kunal P14-Feb-07 3:35
Kunal P14-Feb-07 3:35 
GeneralRe: AJAX aspnet Pin
-Dr_X-14-Feb-07 3:44
-Dr_X-14-Feb-07 3:44 
GeneralRe: AJAX aspnet Pin
Kunal P14-Feb-07 3:27
Kunal P14-Feb-07 3:27 
GeneralRe: AJAX aspnet Pin
badgrs14-Feb-07 3:40
badgrs14-Feb-07 3:40 
Questioncaptcha & create user wizard Pin
Kunal P14-Feb-07 3:00
Kunal P14-Feb-07 3:00 
AnswerRe: captcha & create user wizard Pin
badgrs14-Feb-07 3:31
badgrs14-Feb-07 3:31 
QuestionHow to show movie clips using Flash Player in Web site build in c# Pin
Member 382857814-Feb-07 2:03
Member 382857814-Feb-07 2:03 
AnswerRe: How to show movie clips using Flash Player in Web site build in c# Pin
Paddy Boyd14-Feb-07 2:52
Paddy Boyd14-Feb-07 2:52 
GeneralRe: How to show movie clips using Flash Player in Web site build in c# Pin
Jesse Squire14-Feb-07 4:19
Jesse Squire14-Feb-07 4:19 
Questionsignup page Pin
siddisagar14-Feb-07 1:36
siddisagar14-Feb-07 1:36 
AnswerRe: signup page Pin
Neeraj Arora14-Feb-07 2:22
Neeraj Arora14-Feb-07 2:22 
QuestionHow to Capture "ESC" key stroke in ASP.NET web application. Pin
xiao bin bin14-Feb-07 1:01
xiao bin bin14-Feb-07 1:01 
AnswerRe: How to Capture "ESC" key stroke in ASP.NET web application. Pin
badgrs14-Feb-07 1:05
badgrs14-Feb-07 1:05 
GeneralRe: How to Capture "ESC" key stroke in ASP.NET web application. Pin
xiao bin bin14-Feb-07 5:05
xiao bin bin14-Feb-07 5:05 
QuestionHow to save image(.jpg) file in database Pin
MissionSuccess14-Feb-07 0:55
MissionSuccess14-Feb-07 0:55 
AnswerRe: How to save image(.jpg) file in database Pin
Tech_spidy14-Feb-07 1:49
Tech_spidy14-Feb-07 1:49 
GeneralRe: How to save image(.jpg) file in database Pin
MissionSuccess14-Feb-07 2:01
MissionSuccess14-Feb-07 2:01 
ya i have little bit idea
i want to take the image by using Html fileinputbox control and from the specified path,i want to retrieve only the filename(not path).

and store that file(binary data) in one of my image field.

can u give me some code for doing this......

my code is..................


Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
'Dim str As String = Me.File1.Value()
'If InStr(str, ".jp") > 0 Then
' 'File1.PostedFile.InputStream()
'Else
' Exit Sub
'End If

Dim myStream As Stream
myStream = File1.PostedFile.InputStream
Dim ImgLength As Int64 = File1.PostedFile.ContentLength
Dim ImgBinaryData(ImgLength) As Byte
Dim n As Int64 = myStream.Read(ImgBinaryData, 0, ImgLength)
saveimage(ImgBinaryData)
End Sub
Public Sub saveimage(ByVal mImageFileData As Byte())
Try
Dim myTable As DataTable
Dim myRow As DataRow
conn = New SqlConnection(constr)
conn.Open()
cmd = New SqlCommand("spr_insertImage", conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@ImageData", mImageFileData))
cmd.ExecuteNonQuery()
conn.Close()

Catch ex As Exception
lblError.Text = ex.Message
End Try
End Sub

but its not working......
any help

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.