locked
Is there a way to hide Price text box RRS feed

  • Question

  • User212556065 posted

    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.

     

    Thursday, March 27, 2008 6:50 AM

Answers

  • User1128022426 posted

    Just set the visible property on the Textbox to false.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 12:04 PM
  • User730446648 posted

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

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 3:22 PM
  • User1128022426 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 4:02 PM

All replies

  • User1128022426 posted

    Just set the visible property on the Textbox to false.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 12:04 PM
  • User730446648 posted

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

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 3:22 PM
  • User212556065 posted

    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.

    Thursday, March 27, 2008 3:49 PM
  • User1128022426 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 27, 2008 4:02 PM
  • User212556065 posted

    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.

    Thursday, March 27, 2008 5:42 PM
  • User212556065 posted

    Great I can confirm recommended method works well!

    Thanks,

    Friday, March 28, 2008 6:13 AM
  • User212556065 posted

    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?

    Friday, March 28, 2008 6:21 AM
  • User212556065 posted

    Fixed, using visible = false - no worries

    Friday, March 28, 2008 7:13 AM
  • User1144008898 posted

     a

     

    Saturday, June 27, 2009 9:30 PM