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

  • SEARCH
  • Home
  • 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 7163919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:58:58+00:00 2026-05-28T13:58:58+00:00

I am writing a simple webform on .net 4.0 framework. <body> <form id=form1 runat=server>

  • 0

I am writing a simple webform on .net 4.0 framework.

<body>
    <form id="form1" runat="server">

    <div>
        <span>Name</span>
        <asp:TextBox ID="txtName"   runat="server"></asp:TextBox>
    </div>
    <div>
        <span>Email</span>
        <asp:TextBox ID="txtEmail" EnableViewState="false" runat="server"></asp:TextBox>
    </div>
    <div>
        <asp:Button ID="btnButton" runat="server" Text="Submit" />
    </div>
    </form>
</body>

Issue is when the form renders on browser, I am not getting ClientID for the server side controls. This is strange for me.
The portion of the markup in the browser is

 <div>
        <input type="submit" name="btnButton" value="Submit" id="btnButton" />
    </div>

Notice there is no clientID.

Edit : Client ID something like ‘ctl00$MasterPageBody$ctl00$btnButton2’

  • 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-05-28T13:58:58+00:00Added an answer on May 28, 2026 at 1:58 pm

    ClientID is a server side attribute.

    You would see the ClientID on the client as the ID attribute:

    id="btnButton"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a simple web form for a client in ASP.NET. The form sends
I'm writing a simple app that's going to have a tiny form sitting in
I'm writing simple server/client and trying to get client IP address and save it
I'm writing simple server/client in c, where server temporary stores message from client and
While writing a simple server-client application, this question came in my mind. When someone
I am writing simple, unsophisticated web-server code in java. It seems to be finished,
I'm currenlty using Asp.Net Dynamic Data, with Linq to Sql, to create an simple
I am writing simple client-server program. Client send some messages to server using UDP
I'm writing a simple client-server system and the question is: how to structure my
i m writing simple application involving a server and many clients at time. i

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.