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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:46:42+00:00 2026-06-12T22:46:42+00:00

I have 2 textboxes on an Asp.net(with c#) page and I cannot see this

  • 0

I have 2 textboxes on an Asp.net(with c#) page and I cannot see this fields from cs class.

In aspx:

 <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
   <ajaxToolkit:ToolkitScriptManager runat="server"></ajaxToolkit:ToolkitScriptManager>

<div>
<table>
<tr>
   <td style="width:40%"> <asp:Label ID="lblFullname" runat="server" Text="Fullname" ></asp:Label></td>
   <td style="width:20%"> </td>
   <td style="width:40%"> 
       <asp:TextBox ID="txtFullname" runat="server"></asp:TextBox>
    </td>
</tr>
<tr>
   <td style="width:40%"> <asp:Label ID="lblBirthDate" runat="server" Text="BirthDate" ></asp:Label></td>
   <td style="width:20%"> </td>
   <td style="width:40%">
      <asp:TextBox ID="txtBirthDate" runat="server" Text="" ></asp:TextBox> 
      <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtenderBirthDate" TargetControlID="txtBirthDate" runat="server" 
      UserDateFormat="DayMonthYear" Mask="99/99/9999" MaskType="Date" ></ajaxToolkit:MaskedEditExtender>
   </td>
</tr>
<tr><td colspan="3" style="float:right"><asp:Button Text ="Save"  runat="server" ID="btnSave" OnClick="btnSave_Click"/> </td></tr>
</table>
</div>

And I am trying to get value from the txtFullname.I try txtFullname.Text and this.txtFullname but the application cannot see this values .
Can somebody how can I get the value for that textbox?

  • 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-12T22:46:43+00:00Added an answer on June 12, 2026 at 10:46 pm

    Please check if you have specified the codebehind file name correctly.
    This could be one of the issues for not getting the control name
    inside the code file.

    If that isn’t working for you, please use the below code for reference.

    You have not included your “Register” directive. So, I took to privilege to give my own.

    Change your markup to:

    <%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
        CodeBehind="Default.aspx.vb" Inherits="WebApplication2._Default" %> 
       <%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>
            <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
        <div>
            <table>
                <tr>
                    <td style="width: 40%">
                        <asp:Label ID="lblFullname" runat="server" Text="Fullname"></asp:Label>
                    </td>
                    <td style="width: 20%">
                    </td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtFullname" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 40%">
                        <asp:Label ID="lblBirthDate" runat="server" Text="BirthDate"></asp:Label>
                    </td>
                    <td style="width: 20%">
                    </td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtBirthDate" runat="server" Text=""></asp:TextBox>
                        <asp:MaskedEditExtender id="MaskedEditExtenderBirthDate" targetcontrolid="txtBirthDate"
                            runat="server" userdateformat="DayMonthYear" mask="99/99/9999" masktype="Date"></asp:MaskedEditExtender>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="float: right">
                        <asp:Button Text="Save" runat="server" ID="btnSave" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Content>
    

    This code has been tested and is working.

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

Sidebar

Related Questions

This seems simple but I just cannot get it. I have an asp.net page,
I have asp.net page (Form = runat server ) 2 textboxes: <input type=text id=tb1
I have a ASP.NET web page that contains many textboxes. Each textbox has a
I have a bunch of textboxes on my asp.net page, and on TextChanged event,
I have an asp.net page with a datalist with few textboxes, and a submit
I have textboxes loaded with data on my ASP.NET MVC page. If the user
I have an asp.net content form which contains a couple of textboxes. I need
I have a single page asp.net 4.0 form with couple of textboxes in divs
I have a pretty simple ASP.NET page with some input fields and validators. One
i have 3 textboxes on an asp.net page and i would like to send

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.