How to call a function with parameter in a bash script?

Images doesnt appear when view in browser?

  • Everything was there include the words of the images folder.. But the images doesnt appear. It give me a cross icon instead. Why is it so? i figure for quite sometimes and still cant get it.. Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) If IsPostBack Then Exit Sub End If ' photo.Src = "resize.aspx?filename=Images" + GetNextImageUrl() + "&width=" + photo.Width + "&height=" + photo.Height; photo.Src = ((GetNextImageUrl() & "&width=") + photo.Width & "&height=") + photo.Height 'Register Ajax client script to client's browsers. This has to be hard coded. lblAlbum.Text = file End Sub Public Sub RaiseCallbackEvent(ByVal eventArgument As String) 'This is first place to receive the callback from client's browser. The parameter 'eventArgument' 'is the parameter passed from the Javascript's call 'CallServer()'. In this example, it is the 'last image url. m_lastFileName = Path.GetFileName(eventArgument) End Sub Public Function GetCallbackResult() As String 'This is the second call triggled by the 'CallServer()' and it is the place to prepare and return a string 'to the client. Here the returned string is the image url and the transition effect. Return ((((GetNextImageUrl() & ";") + GetNextTransition() & ";") + photo.Width & ";") + photo.Height & ";") + album End Function Private Function GetNextImageUrl() As String Dim rand As New Random() ' Random a group ' string[] arrGroups = Directory.GetDirectories(AppDomain.Curre… + "PhotoGallery\\Images"); Dim arrGroups As String() = Directory.GetDirectories(AppDomain.Curre… Dim group As String = arrGroups(CInt((Math.Floor(rand.NextDoub… * arrGroups.Length)))) group = group.Substring(group.LastIndexOf("\"c) + 1) ' Random an album Dim arrAlbums As String() = Directory.GetDirectories(AppDomain.Curre… + group) 'if (arrAlbums.Length == 0) '{ ' GC.Collect(); ' return GetNextImageUrl(); '} album = arrAlbums(CInt((Math.Floor(rand.NextDoub… * arrAlbums.Length)))) album = album.Substring(album.LastIndexOf("\"c) + 1) ' Random a file Dim arrFiles As String() = Directory.GetFiles((AppDomain.CurrentDom… + group & "\") + album) If arrFiles.Length = 0 Then GC.Collect() Return GetNextImageUrl() End If file = arrFiles(CInt((Math.Floor(rand.NextDoubl… * arrFiles.Length)))) file = file.Substring(file.LastIndexOf("\"c) + 1) ' throw new Exception(group + "/" + album + "/" + file); Dim UploadedImage As System.Drawing.Image Try UploadedImage = System.Drawing.Image.FromFile(((AppDomai… + group & "\") + album & "\") + file) Catch generatedExceptionName As OutOfMemoryException GC.Collect() Return GetNextImageUrl() End Try Dim UploadedImageWidth As Single = UploadedImage.PhysicalDimension.Width Dim UploadedImageHeight As Single = UploadedImage.PhysicalDimension.Height If UploadedImageWidth > UploadedImageHeight Then photo.Width = photoWidth photo.Height = photoHeight Dim cbReference As String = Page.ClientScript.GetCallbackEventRefere… "arg", "ReceiveServerData", "context") Dim callbackScript As String = ("function CallServer(arg, context)" & "{ ") + cbReference & "} ;" Page.ClientScript.RegisterClientScriptBl… "CallServer", callbackScript, True) Else photo.Width = photoHeight * 8 / 10 photo.Height = photoHeight Dim cbReference As String = Page.ClientScript.GetCallbackEventRefere… "arg", "ReceiveServerData", "context") Dim callbackScript As String = ("function CallServer(arg, context)" & "{ ") + cbReference & "} ;" Page.ClientScript.RegisterClientScriptBl… "CallServer", callbackScript, True) End If GC.Collect() Return (((group & "\") + album & "\") + file) End Function Private Function GetNextTransition() As String 'Randomly pick a transition effect. Note some of the effects only work in IE. Dim n As Integer = CInt(((New Random().NextDouble()) * 5)) Select Case n Case 0, 1 n = CInt((

  • Answer:

    Is it suppose too? I didn't think images showed, kinda like editing a blog post, you get the X. As long as images appear on site, I would think that everything is okay. Here is a link to a thread about that: http://forums.macrumors.com/archive/index.php/t-259549.html

Kelly at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.