Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Textbox control not posting value ?

Reply
Thread Tools

Textbox control not posting value ?

 
 
Da Rabit
Guest
Posts: n/a
 
      03-15-2005
I have a text box control in an ASP.NET user control and it does not post
its value when the base form posts.
The value comes through as a null lenght string.
Any ideas ?


 
Reply With Quote
 
 
 
 
imsinc@gmail.com
Guest
Posts: n/a
 
      03-15-2005
Da Rabit, make sure you have the EnableViewState property of the
textbox set to true.

Jason Bentley
http://geekswithblogs.net/jbentley

 
Reply With Quote
 
 
 
 
Da Rabit
Guest
Posts: n/a
 
      03-15-2005
Tried that and it doesnt work !! The page / control combination used to work
but for the last week, the controls value is not posting ( to the control
code behind class!!)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Da Rabit, make sure you have the EnableViewState property of the
> textbox set to true.
>
> Jason Bentley
> http://geekswithblogs.net/jbentley
>



 
Reply With Quote
 
recoil@community.nospam
Guest
Posts: n/a
 
      03-15-2005
There really is not alot of information to go on here. There are a wide
variety of things that could be happening.

What follows is a checklist:
1) Make sure that you are setting ID's on your CustomUser Control and
the Textbox.
2) Make sure you are adding the controls to their appropriate
parents/containers within a nominal time. I recommend doing so in
OnInit
3) Make sure that your WebUserControl is implementing INamingContainer
4) Make sure you are not clearing the value in some event that gets
triggered every time, like Page_Load etc.

 
Reply With Quote
 
Jason Bentley
Guest
Posts: n/a
 
      03-17-2005
Rabit, also make sure there is a protected variable in your code behind
corresponding to the textbox control.

Jason Bentley
http://geekswithblogs.net/jbentley

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide textbox / Make textbox not visible (NOT USING visible property) Jurjen de Groot ASP .Net Web Controls 0 05-19-2008 09:50 AM
ASP.NET textbox loses text value in composite control but Textbox subclass doesn't!? ErwinP ASP .Net Web Controls 1 08-19-2005 01:50 PM
Textbox Control Not Posting Value Da Rabit ASP .Net Web Controls 1 03-15-2005 10:18 PM
User control TextBox posting issue tp ASP .Net Web Controls 0 10-13-2003 10:56 PM
Re: VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail??? S. Justin Gengo ASP .Net 0 07-16-2003 06:51 PM



Advertisments