We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

error! text is not a member of string------ how to resolve

Thread ID:





59783 Apr 22,2007 10:30 AM UTC Jan 28,2008 11:22 AM UTC ASP.NET Web Forms (Classic) 3
Tags: FAQ
Asked On April 22, 2007 10:30 AM UTC


in my app am having 6 text boxes named as txtArea1 to txtArea6... in the code i have to assign the text values of these text boxes to a string variable.

so ive used the following code:
Dim area as String
Dim txtbox as string

txtbox= "txtArea" & num

am getting the following error msg:

text is not a member of string

how to resolve this.
kindly reply to my query as early as possible

thank u

Poornima Joy Balan [Syncfusion]
Replied On April 23, 2007 04:21 AM UTC


Here is the code of a example. I hope it will help it out.

txtbox = CType(Page.FindControl("txtArea" & num), TextBox).Text

Please let us know if you have any further queries.


Replied On April 23, 2007 06:47 AM UTC

Thanks Poornima thanks a lot for your help.
It didnot work exactly in the way you have specified but it worked this way:

Dim txtbox as control
txtbox= FindControl("txt_Area" &num)
area= CType(txtbox,TextBox).Text


your hint helped me


Replied On January 28, 2008 11:22 AM UTC

Hi poornima

I am subazini, on doing postback with VB the webbrowser is not processing I have missed all of urs number plz send ur mobile number to my ID

Regards subazini


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon