'System.Web.UI.WebControls.TextBox' does not contain a definition for 'Substring'

Discussion in '.NET' started by Anako, Apr 7, 2009.

  1. Anako

    Anako

    Joined:
    Apr 7, 2009
    Messages:
    1
    Hello,

    I am a learner web developer with Microsoft Visual Web Developer 2005 using C#. Actually I am trying to extract a part of a string by using the Substring function but it seems not to work for me and compiler returned the following error:

    'System.Web.UI.WebControls.TextBox' does not contain a definition for 'Substring'

    I need any help to solve this issue please.

    Anako
     
    Anako, Apr 7, 2009
    #1
    1. Advertising

  2. Anako

    imransyed63

    Joined:
    May 16, 2006
    Messages:
    27
    You must be applying substring on textbox control,

    use Text property to get the text entered in textbox.

    for e.g.

    TextBox1.Text.SubString(0,5);
     
    imransyed63, Apr 7, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    2
    Views:
    888
    Matt Getting
    Jul 24, 2003
  2. Luis Esteban Valencia
    Replies:
    1
    Views:
    4,429
    =?Utf-8?B?Vmtv?=
    Jan 6, 2005
  3. Carlos
    Replies:
    3
    Views:
    675
    rajkushi
    Nov 7, 2006
  4. Ray
    Replies:
    0
    Views:
    197
  5. Jason Carlton
    Replies:
    11
    Views:
    264
    Dr J R Stockton
    Dec 8, 2009
Loading...

Share This Page