User Profile

Collapse

Profile Sidebar

Collapse
amandab116
amandab116
Last Activity: Jul 6 '09, 07:49 PM
Joined: Apr 14 '09
Location: Rhode Island, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • amandab116
    replied to Move items between listboxes
    Thank you very much!!
    See more | Go to post

    Leave a comment:


  • amandab116
    replied to Move items between listboxes
    Is there any way you can provide an example? I was just thinking about this whole situation and I'm still stuck on the most logical way to deal with it. I've implemented hidden fields, but then I can't really save multiple values to the database.

    Thanks!
    See more | Go to post

    Leave a comment:


  • amandab116
    started a topic Move items between listboxes

    Move items between listboxes

    I'm having a hard time figuring out how to move items between a left and right listbox server-side.

    I have a populated listbox from the database on the left and I'm trying to add items to the box on the right and save those values to the database.

    Can anyone help me? I've searched everywhere and haven't found any code that's helpful!

    Code:
    protected void Submit_Click(object sender, EventArgs e)
        {
    ...
    See more | Go to post

  • amandab116
    replied to Replace blank images with default image
    I've solved the problem by implemeting the code like you've suggested :)

    Now I've run into the dilemma of trying to solve the issue of overwriting already supplied images.

    If the upload box is left blank, it still updates the database as a null... overwriting anything that was already stored.

    As you can see, this is my first time using images in my database. I can't store the filepath because this is...
    See more | Go to post

    Leave a comment:


  • amandab116
    replied to Parent to Child
    Yes, thank you very much for your help! :)
    See more | Go to post

    Leave a comment:


  • Bassem
    Bassem posted a Visitor Message for amandab116
    I saw the code and I've not find the problem, just try to set picture.SqlValu e=Convert.DBNul l;instead of picture.Value=C onvert.DBNull;
    I'm not sure.
    See more | Go to post

  • amandab116
    replied to Replace blank images with default image
    Here is my boatload of code... the "picture" field is allowing nulls.


    Code:
     protected void ButtonSave_Click(object sender, EventArgs e)
        {
            int intImageSize;
            string strImageType;
            Stream ImageStream;
            FileUpload FileUpload1 = (FileUpload)this.FindControl("FileUpload1");
    
            // Gets the Size of the Image
            intImageSize
    ...
    See more | Go to post

    Leave a comment:


  • amandab116
    amandab116 posted a Visitor Message for Bassem
    Not sure if this works... I just posted this on the thread as well.

    The only other thing I'm trying to figure out is even when a user doesn't upload an image, it's still stored as a binary instead of a NULL. How would I replace binary with NULL when no image is selected for upload?
    See more | Go to post

  • amandab116
    replied to Replace blank images with default image
    The only other thing I'm trying to figure out is even when a user doesn't upload an image, it's still stored as a binary instead of a NULL. How would I replace binary with NULL when no image is selected for upload?
    See more | Go to post

    Leave a comment:


  • amandab116
    replied to Parent to Child
    Yes, I did save it. I managed to use the document.getEle mentById for this...
    My code was this:

    Code:
     var el2 =document.getElementById('<%=RadTextBoxAdd.ClientID %>');
    Thank you for that suggestion, it really helped!
    See more | Go to post

    Leave a comment:


  • amandab116
    replied to Replace blank images with default image
    Thank you very much for your help with this! :)
    See more | Go to post

    Leave a comment:


  • amandab116
    started a topic Parent to Child

    Parent to Child

    I'm wondering how I can pass the values of a combobox in my parent page to a textbox on a child popup page.

    Here is the code that I have on the parent page right now to find the value of the combobox.

    Code:
    function openRadWindow(url, windowName)
    {
        var el = $find('<%=RadComboBoxResources.ClientID %>');
        var txt = el.get_text();
    
        var oWnd = radopen(url + "?name="
    ...
    See more | Go to post

  • amandab116
    replied to Replace blank images with default image
    Actually, I think what I want to really accomplish is this:

    If the value of the picture field is null, I want to show this blank.gif image which says that there is no image available.
    See more | Go to post

    Leave a comment:


  • amandab116
    replied to Replace blank images with default image
    Hey, thanks for your response, I don't have a picture box, rather an image tag.
    Code:
    <asp:Image ID="image1" runat="server" ImageUrl="DisplayPicture.aspx" BorderColor="#6f9dd9" BorderWidth="2px" BorderStyle="Solid" Height="150" Width="150" />
    In the code behind, I have the following code to get the ID of the resource I'm trying to display...
    See more | Go to post
    Last edited by PRR; Apr 16 '09, 01:38 PM. Reason: Please post code in [code] [/code] tags.

    Leave a comment:


  • amandab116
    started a topic Replace blank images with default image

    Replace blank images with default image

    In my program I am storing images in the database. Not all of the records in the database have images, and when I load the details into another .aspx page, sometimes the image is empty- has a red "x". How do I replace that "x" with a default image?
    See more | Go to post
No activity results to display
Show More
Working...