Click here to Skip to main content
15,902,198 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Add Control [modified] Pin
joon vh.19-Mar-07 5:53
joon vh.19-Mar-07 5:53 
GeneralRe: Add Control Pin
vengaqua19-Mar-07 20:28
vengaqua19-Mar-07 20:28 
GeneralRe: Add Control Pin
vengaqua19-Mar-07 20:29
vengaqua19-Mar-07 20:29 
GeneralRe: Add Control Pin
joon vh.19-Mar-07 20:43
joon vh.19-Mar-07 20:43 
QuestionASP.NET AJAX deployment error Pin
gus_br19-Mar-07 3:00
gus_br19-Mar-07 3:00 
Questionpage load fire twice ,why? Pin
harryforum19-Mar-07 2:35
harryforum19-Mar-07 2:35 
AnswerRe: page load fire twice ,why? Pin
Sandeep Akhare24-Mar-07 1:18
Sandeep Akhare24-Mar-07 1:18 
QuestionUpload Image Pin
MiaanG19-Mar-07 2:26
MiaanG19-Mar-07 2:26 
I am working on a Web Application and my code language is VB.Net. i want to upload image and store its path to data base after uploading. I am using following code for uploading file.

Private Function UpLoadImage(ByVal objHtmlInputFile As HtmlInputFile, ByVal FolderName As String) As String
Dim strFilePath As String = FolderName
Dim strFileName As String = ""
Dim strFileNamePath As String = objHtmlInputFile.PostedFile.FileName
If strFileNamePath.Length > 0 Then
Dim strArr() As String = strFileNamePath.Split("\\")
Dim i As Integer = strArr.Length - 1
Do While i = strArr.Length - 1
If strArr(i).IndexOf(".") > -1 Then
strFileName = strArr(i)
End If
i -= 1
Loop
If Not (objHtmlInputFile.PostedFile Is Nothing) Then
Try
objHtmlInputFile.PostedFile.SaveAs(strFilePath + "\" + strFileName)
Response.Write("Uploaded Successfully")
Catch ex As Exception
Response.Write("<br" +="" objhtmlinputfile.value="" "<="" b="">
" + ex.Message)
End Try
End If
Return strFileName
End If
End Function

I am calling this function in this line
Dim FileName As String = Me.UpLoadImage(bookimage, "book_images")
this code generates an exception when it comes to Try Catch.]
Plz help me out.

M. Azeem

AnswerRe: Upload Image Pin
Arindam Tewary19-Mar-07 2:39
professionalArindam Tewary19-Mar-07 2:39 
GeneralRe: Upload Image Pin
MiaanG19-Mar-07 21:48
MiaanG19-Mar-07 21:48 
AnswerRe: Upload Image Pin
Vasudevan Deepak Kumar19-Mar-07 5:31
Vasudevan Deepak Kumar19-Mar-07 5:31 
Questionneed help whit girdview Pin
Lappalainen Antti19-Mar-07 1:41
Lappalainen Antti19-Mar-07 1:41 
AnswerRe: need help whit girdview Pin
Kschuler19-Mar-07 9:25
Kschuler19-Mar-07 9:25 
GeneralRe: need help whit girdview Pin
Lappalainen Antti19-Mar-07 19:55
Lappalainen Antti19-Mar-07 19:55 
GeneralRe: need help whit girdview Pin
varshavmane19-Mar-07 20:01
varshavmane19-Mar-07 20:01 
GeneralRe: need help whit girdview Pin
Kschuler20-Mar-07 2:51
Kschuler20-Mar-07 2:51 
GeneralRe: need help whit girdview Pin
Lappalainen Antti20-Mar-07 3:33
Lappalainen Antti20-Mar-07 3:33 
QuestionHow to Load an Image into Imagebox from SQl Pin
S.Rajeshwar19-Mar-07 0:46
S.Rajeshwar19-Mar-07 0:46 
AnswerRe: How to Load an Image into Imagebox from SQl Pin
Vasudevan Deepak Kumar19-Mar-07 5:32
Vasudevan Deepak Kumar19-Mar-07 5:32 
AnswerRe: How to Load an Image into Imagebox from SQl Pin
GaryWoodfine 19-Mar-07 13:50
professionalGaryWoodfine 19-Mar-07 13:50 
Questionneed help with asp.net2 sql question Pin
neodeaths18-Mar-07 23:45
neodeaths18-Mar-07 23:45 
AnswerRe: need help with asp.net2 sql question Pin
Frank Kerrigan19-Mar-07 1:26
Frank Kerrigan19-Mar-07 1:26 
GeneralRe: need help with asp.net2 sql question Pin
neodeaths19-Mar-07 15:25
neodeaths19-Mar-07 15:25 
GeneralRe: need help with asp.net2 sql question Pin
neodeaths19-Mar-07 19:00
neodeaths19-Mar-07 19:00 
Questiongrid view problem Pin
nikhil123418-Mar-07 23:39
nikhil123418-Mar-07 23:39 

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.