Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Textbox value dissappear when using FilteredTextboxExtender

Textbox value dissappear when using FilteredTextboxExtender

Scheduled Pinned Locked Moved ASP.NET
questionsysadminhelp
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Orcun Iyigun
    wrote on last edited by
    #1

    <asp:TextBox ID="txtExchangePartQty" runat="server" onfocus="if(this.value==this.defaultvalue) this.value='';" value="Quantity..." Width="120px">
    </asp:TextBox>
    <asp:FilteredTextBoxExtender ID="ftbeQty" runat="server" TargetControlID="txtExchangePartQty" ValidChars="1234567890" />

    When I dont use FilteredTextBoxExtender, as an initial value, inside the texbox "Quantity..." appears but when I use FilteredTextBoxExtender during the loading of the page, for a moment I see that initail value but then it dissappears. The cause is for it is TheFilteredTextBoxExtender, any idea why this is happening and how can I work out this problem?

    S 1 Reply Last reply
    0
    • O Orcun Iyigun

      <asp:TextBox ID="txtExchangePartQty" runat="server" onfocus="if(this.value==this.defaultvalue) this.value='';" value="Quantity..." Width="120px">
      </asp:TextBox>
      <asp:FilteredTextBoxExtender ID="ftbeQty" runat="server" TargetControlID="txtExchangePartQty" ValidChars="1234567890" />

      When I dont use FilteredTextBoxExtender, as an initial value, inside the texbox "Quantity..." appears but when I use FilteredTextBoxExtender during the loading of the page, for a moment I see that initail value but then it dissappears. The cause is for it is TheFilteredTextBoxExtender, any idea why this is happening and how can I work out this problem?

      S Offline
      S Offline
      Shahriar Iqbal Chowdhury Galib
      wrote on last edited by
      #2

      Hi, In FilteredTextBoxExtender you specified ValidChars="1234567890" this is why TextBox value "Quantity..." is not displayed.

      O 1 Reply Last reply
      0
      • S Shahriar Iqbal Chowdhury Galib

        Hi, In FilteredTextBoxExtender you specified ValidChars="1234567890" this is why TextBox value "Quantity..." is not displayed.

        O Offline
        O Offline
        Orcun Iyigun
        wrote on last edited by
        #3

        Yeah thats right. Not being careful enough to figure it out by myself LOL

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups