Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 72691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:05:03+00:00 2026-05-10T20:05:03+00:00

Ok guys and gals, here is my problem: I’ve built a custom control that

  • 0

Ok guys and gals, here is my problem:

I’ve built a custom control that uses a textbox to present data to the user.

When the user interacts with the control the value of that textbox is altered with client side javascript.

I also have a button on my page. When the user clicks the button I want to take the value from the custom control (aka. the textbox) and use it elsewhere.

So, in the onClick event for the button I do something like this:

this.myLabel.Text = this.customControl.Value; 

The problem is that the custom control does not have the new textbox value available. In the custom control the textbox is empty. However, I can see the correct value in the Request.Form collection.

Am I doing something wrong here? Or should I be reading from Request.Form?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:05:04+00:00Added an answer on May 10, 2026 at 8:05 pm

    Ah ha! I’ve solved my own problem!

    Because I had set Readonly=’True’ on the textbox control ASP.NET was not picking up it’s value from the postback.

    Instead I should have manually added the readonly attribute to the textbox during my user control construction.

    eg.

    this.textBox.Attributes.Add('readonly', 'readonly'); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 61k
  • Answers 61k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Setting wmode to transparent can cause some strange problems, but… May 11, 2026 at 9:53 am
  • added an answer When you use SQL Server Management Studio to script out… May 11, 2026 at 9:53 am
  • added an answer you can use DebugBreak, check these links: http://www.epsilon-delta.net/articles/vc6_debug.html#breaking-with-debugbreak http://blogs.msdn.com/calvin_hsia/archive/2006/08/25/724572.aspx May 11, 2026 at 9:53 am

Related Questions

Ok guys and gals, here is my problem: I've built a custom control that
Ok, bear with me guys and girls as I'm learning. Here's my question. I
Ok guys just a small game: I have some specifications for a project. At
Ok, this is another one in the theory realm for the CS guys around.
OK. This is a bit of a vanity app, but I had a situation
OK, I know what you're thinking, "why write a method you do not want
Ok, I asked a question earlier about Flex and ADO.NET Data Services but didn't
OK. This problem is doing my head in. And I don't know if there
OK, this kind of follows on from my previous question . What I would
Ok, so there has to be a way to do this... no? If not

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.