Search

You searched for the word(s): userid:313502

Matching Posts

  • Resizing an image in vb.....

    Hello, Can someone tell me how to resize an image in vb? I need to resize an image that's already in my Images file on the server and assign it to an image control. I've looked online but can only find C# code and Vb.Net code. Is there any code in VB code out there? Thanks Alec
    Posted to System.Drawing/GDI+ (Forum) by alecd on 10/25/2009
  • Re: Nested DataGrid

    Thank you Vinz and Samu Zhang. All of your input helped me figure out how to do what I needed to do. Here is my final code for those who may need it: Dim parentItem As DataGridItem = e.Item.Parent.Parent.Parent.NamingContainer Dim parentIndex As Integer = parentItem.ItemIndex Dim lblDesignCount As Label = DirectCast (grd_Designs.Items(parentIndex).FindControl( "lbl_DesignCount" ), Label) lblDesignCount.Text = CInt (lblDesignCount.Text + intCount) Thanks again, Alec
    Posted to Data Presentation Controls (Forum) by alecd on 6/8/2009
  • Re: Nested DataGrid

    Yes..... Thank you. That works, but I still can't figure out how to find the parents index from the childs ItemBound. Is there any way to find out the parents index from the childs ItemBound? Does that make any sense? Sorry if I'm confusing everyone.
    Posted to Data Presentation Controls (Forum) by alecd on 6/6/2009
  • Re: Nested DataGrid

    I want to access a specific parents Label from the childs DataBound. The direct parent.
    Posted to Data Presentation Controls (Forum) by alecd on 6/4/2009
  • Re: Nested DataGrid

    Thanks for the response Vinz, it does access the parents label lbl_DesignCount, but I can't figure out how to access the childs parents item directly. It seems to be arbitrarily accessing the parents items. Never reaching the childs parents item. I need to access the parent list item only...... I tried an if statement to match the parent with the child but the loop never got to the childs parent..... Alec
    Posted to Data Presentation Controls (Forum) by alecd on 6/4/2009
  • Re: Nested DataGrid

    Thank you for the response chintanpshah, however I'm getting the following error: Unable to cast object of type 'ASP.mp_shipmentorganizer_aspx' to type 'System.Web.UI.WebControls.DataGridItem'.
    Posted to Data Presentation Controls (Forum) by alecd on 6/4/2009
  • Nested DataGrid

    Hello everyone, I'm trying to access a parent DataGrid object and can't figure it out. I have two DataGrids: grd_List and grd_Details. grd_Details is nested in grd_List. I need to access a label in grd_List from the OnItemDataBound function in grd_Details. Here's some code that may better explain what I'm trying to do: Dim lblDesignCount As New Label lblDesignCount = CType (e.Item.Parent.FindControl( "lbl_DesignCount" ), Label) lblDesignCount.Text = "Yes" If I
    Posted to Data Presentation Controls (Forum) by alecd on 6/3/2009
  • Create a temporary folder on the server for my users to download.....

    This is a bit of a repost. This regards the combination my last two posts... I got the following code to have downloadable files for my users from my previous post: Dim path As String = Server.MapPath( "~/Music/Umba.mp3" ) Dim file As System.IO.FileInfo = New System.IO.FileInfo(path) Response.Clear() Response.AddHeader( "Content-Disposition" , "attachment; filename=" + file.Name) Response.AddHeader( "Content-Length" , file.Length.ToString()) Response.ContentType
    Posted to Getting Started (Forum) by alecd on 4/8/2009
  • Re: Creating temporary files for download......

    You wouldn't happen to know how to write that in VB would you?
    Posted to Getting Started (Forum) by alecd on 4/1/2009
  • Re: Creating temporary files for download......

    I just realized I have been confusing everyone by incorrect vocabulary. I need to be able to create a temporary FOLDER for the user to download..... Not file.
    Posted to Getting Started (Forum) by alecd on 3/31/2009
Page 1 of 15 (147 items) 1 2 3 4 5 Next > ... Last »