Is there a way to hide Price text box

Last post 06-27-2009 9:30 PM by Greengrass001. 9 replies.

Sort Posts:

  • Is there a way to hide Price text box

    03-27-2008, 6:50 AM
    • Member
      54 point Member
    • roymartian
    • Member since 09-03-2007, 2:30 AM
    • Posts 151

    I really don't need or want price text box as with some help (thanks Dark Knight) now created a new column thats exactly as I need.

    However seems very long winded to delete all references out of database and all pages relating to price.

    Ideally I would like to turn visible to false and just allow nulls in database so it sits there but does nothing - is this possible? - how?

    I can see this options for Adtitlelabel to make visible false but not for price text box - any ideas?

    Grateful of your help,

    Roy Martian.

     

  • Re: Is there a way to hide Price text box

    03-27-2008, 12:04 PM
    Answer
    • Participant
      1,008 point Participant
    • ashmetry
    • Member since 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    Just set the visible property on the Textbox to false.

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: Is there a way to hide Price text box

    03-27-2008, 3:22 PM
    Answer
    • Contributor
      2,515 point Contributor
    • darkknight187
    • Member since 09-14-2006, 4:35 AM
    • Bothell, Washington
    • Posts 996

    Price is a required item, so I would set the value on load to 0 and then set the textbox visible to false.

     

    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: Is there a way to hide Price text box

    03-27-2008, 3:49 PM
    • Member
      54 point Member
    • roymartian
    • Member since 09-03-2007, 2:30 AM
    • Posts 151

    Thanks, where do I find "load value" for price text box?

    FYI, I did already try visible = false and ticking nulls check box but still got a problem.

    1. Error message "Price incoorect" think is due to "decimal requirements"

    2. Also layout looks a little funny as just hidden but leaves big hole in page - any tips to adjust?

    Roy.

  • Re: Is there a way to hide Price text box

    03-27-2008, 4:02 PM
    Answer
    • Participant
      1,008 point Participant
    • ashmetry
    • Member since 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    I dont usually like to give advice on hacks ;) because if it was me and i was sure im not going to need it then id delete it.. 

    But you can just

    1. delete the <legend>price</legend>

    2. Hide  the PriceTextBox (Visible=false) (You can change its text value to 0 instead of Bind("Price") )

    3.Delete or disable (Enabled=false) the validator PriceValidator that comes after it in the .aspx file

     

    If you delete the textbox completey (I recommend that) you'll need to :

    1. Go to PostAdWizard_FinishButtonClick and change Decimal price = Decimal.Parse(PriceTextBox.Text); to Decimal price = 0.0;

    2. Delete the PriceValidator 

    3. Delete the method PriceValidator_ServerValidate

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: Is there a way to hide Price text box

    03-27-2008, 5:42 PM
    • Member
      54 point Member
    • roymartian
    • Member since 09-03-2007, 2:30 AM
    • Posts 151

    Thanks Ash,

     I hear you on hacks, not sure about having ghost text box in the background so will try second idea to delete textbox completely.

     Thanks,

    Roy.

  • Re: Is there a way to hide Price text box

    03-28-2008, 6:13 AM
    • Member
      54 point Member
    • roymartian
    • Member since 09-03-2007, 2:30 AM
    • Posts 151

    Great I can confirm recommended method works well!

    Thanks,

  • Re: Is there a way to hide details within AdDetails on ShowAd.aspx

    03-28-2008, 6:21 AM
    • Member
      54 point Member
    • roymartian
    • Member since 09-03-2007, 2:30 AM
    • Posts 151

    Any ideas on this one aswell?

    On ShowAd.aspx I would to stop showing;

    item#

    category

    date entered

    expiration

    Currently

    but also keep the other items, any ideas?

  • Re: Is there a way to hide details within AdDetails on ShowAd.aspx

    03-28-2008, 7:13 AM
    • Member
      54 point Member
    • roymartian
    • Member since 09-03-2007, 2:30 AM
    • Posts 151

    Fixed, using visible = false - no worries

  • Re: Is there a way to hide details within AdDetails on ShowAd.aspx

    06-27-2009, 9:30 PM

     a

     

Page 1 of 1 (10 items)