« Previous Next »

Thread: I want to Upload Multiple Image on web server using DataGrid

Last post 12-30-2008 8:12 AM by ma_khan. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 12-30-2008, 6:37 AM

    I want to Upload Multiple Image on web server using DataGrid

    Hii....am Abdullah

     Frndz i want to add multiple Images in to the grid..

    Can ny1 help me...i have a code which is running properly in 2003 bt showing a Error in 2005

    Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Private Sub CreateFolder()
    Dim MImageDirectoryPath As String

    Dim MImageDirectoryName As String

    Dim MSmall As String

    Dim UserName As String

    Try

    If Session("GuruID") > 0 Then

    UserName = Session("UserName")
    Else

    UserName = txtUserName.Text

    End If

    MImageDirectoryName = "../Pictures/Guru"

    MImageDirectoryPath = Server.MapPath(MImageDirectoryName)

    If Dir(MImageDirectoryPath, FileAttribute.Directory) = "" Then

    MkDir(MImageDirectoryPath)

    End If

    MSmall = MImageDirectoryName & "/" & UserName
    MImageDirectoryPath = Server.MapPath(MSmall)

    If Dir(MImageDirectoryPath, FileAttribute.Directory) = "" Then

    MkDir(MImageDirectoryPath)

    End If


    MSmall = MImageDirectoryName & "/" & UserName & "/Images"
    MImageDirectoryPath = Server.MapPath(MSmall)

    If Dir(MImageDirectoryPath, FileAttribute.Directory) = "" Then

    MkDir(MImageDirectoryPath)

    End If


    Catch ex As Exception clsCommon.ErrorTrapping(Request.ServerVariables("Script_Name"), "CreateFolder", ex.Message)
    End Try

    End Sub

     

  • 12-30-2008, 8:12 AM In reply to

    Re: I want to Upload Multiple Image on web server using DataGrid

    Dont see how this is related to a problem on iis ... did you check out forums.asp.net...

    you might get quicker help out there for this issue...

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (2 items)
Microsoft Communities