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 7868551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:02:26+00:00 2026-06-03T01:02:26+00:00

Can I access server control values in aspx design page. For now being its

  • 0

Can I access server control values in aspx design page.
For now being its just my curiosity but may be in need on tomorrow or so.
For example I have a label in aspx page and I want to assign a textbox value to it.

I know I can use aspx.cs file instead but any desired suggestion will be highly appreciable.

Thanks in advance…… 🙂

  • 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. Editorial Team
    Editorial Team
    2026-06-03T01:02:27+00:00Added an answer on June 3, 2026 at 1:02 am

    There are many ways.

    1) var txtbox = Document.getElementbyId(“<%= texboxId.ClientID%>”); txtbox.value = “new”;

    2) var txtbox = $(“#” + “<%= texboxId.ClientID%>”); txtbox.value = “new”;

    3) var txtbox = $get(“texboxId”); txtbox.value = “new”;

    If you are using Asp.Net 4.0 then the easy way is

    <asp:TextBox runat="server" ID="txtboxId" ClientIDMode="Static" />
    

    and access it directly without using ClientID.

    1) var txtbox = Document.getElementbyId(“txtboxId”); txtbox.value = “new”;

    2) var txtbox = $(“#txtboxId”); txtbox.value = “new”;

    For number 2 you need Jquery and for number 3 you need Microsoft AJAX library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed Visual SVN Server and I just found that I can access
I just installed VisualSVN server yesterday at my home computer and I can access
I have on server control(dropdown) and One button.user can select some values in dropdown
I have the following control on my ASPX page: <asp:TextBox ID=txtISBN13 runat=server ClientIDMode=Static />
With windows and sql server accounts, I can access the logged in user with
I configured SSRS 2008 on a remote server. I can access the report manager
I'm trying to pull in data from a remote SQL Server. I can access
Assume I have access to a SMB server at IP 1.2.3.4, how can I
I have set up Team Foundation Server - Team Web Access SP1. I can
I can access and show self.view and see the frame in the log but

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.