Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Someone please tell me I am overlooking something here. Is there an assembly reference I need to use this property? NewQuestionNum is an asp:textbox. The Response.Write is just test code I'm using becaue the property didn't work in another portion of my code.

 

code:

Response.Write(newQuestionNum.TextLength);

 

error:

CS0117: 'System.Web.UI.WebControls.TextBox' does not contain a definition for 'TextLength'

Posted
try : newQuestionNum.Text.Length

Now go on, boy, and pay attention. Because if you do, someday, you may achieve something that we Simpsons have dreamed about for generations: You may outsmart someone!

--Homer Simpson

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...