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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:17:31+00:00 2026-06-02T01:17:31+00:00

First time I am writing some ASP.NET code and stumbled upon a weird bug.

  • 0

First time I am writing some ASP.NET code and stumbled upon a weird bug. When I click the button to post, it does so, but without any params.

Code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="SingTelAPI.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <table style="width:100%;">
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="center">
                            <asp:Label ID="Label4" runat="server" Text="Login" Font-Bold="True" 
                                Font-Names="Verdana" ForeColor="#CC0000" Font-Size="Large"></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:Panel runat="server" DefaultButton="SubmitBtn" ID="Panel1">
                                <table style="width:100%;">
                                    <tr>
                                        <td class="style1">
                                            <asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Names="Verdana" 
                                            ForeColor="#0066FF" Text="Inupt Details:"></asp:Label>
                                        </td>
                                        <td>
                                        &nbsp;</td>
                                        <td>
                                        &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="style1">
                                            <asp:Label ID="Label5" runat="server" Text="Email:"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="Email" runat="server" Skin="Default">
                                            </telerik:RadTextBox>
                                        </td>
                                        <td>
                                            <asp:CustomValidator ID="EmailValidator" runat="server" 
                                            ErrorMessage="Please Enter Email" Font-Bold="True" Font-Names="Verdana" 
                                            ForeColor="#00CC66" ControlToValidate="Email" ValidateEmptyText="True" 
                                            ValidationGroup="LoginValidation"></asp:CustomValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style1">
                                            <asp:Label ID="Label6" runat="server" Text="Password:"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="Password" Runat="server" Skin="Default">
                                            </telerik:RadTextBox>
                                        </td>
                                        <td>
                                            <asp:CustomValidator ID="PasswordValidator" runat="server" 
                                                ControlToValidate="Password" ErrorMessage="Please Enter Password" Font-Bold="True" 
                                                Font-Names="Verdana" ForeColor="#00CC66" ValidateEmptyText="True" 
                                                ValidationGroup="LoginValidation"></asp:CustomValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style1" colspan="3">
                                           <hr /></td>
                                    </tr>
                                    <tr>
                                        <td class="style1">
                                            <telerik:RadButton ID="SubmitBtn" runat="server" 
                                                Skin="Default" Text="Login" ValidationGroup="LoginValidation" 
                                                Width="120px">
                                            </telerik:RadButton>
                                        </td>
                                        <td>
                                            <asp:Label ID="ResultsLabel" runat="server" ForeColor="#339933"></asp:Label>
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

And the .cs file:

public partial class Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            string email = HttpContext.Current.Request["Email"];
            Label9.Text = email;
        }
    }
}

It changes the text of Label9 to “” for some reason. First I thought the problem was in the fact that I didn’t have telerik installed, so I installed that. But it didn’t change a thing.

  • 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-02T01:17:32+00:00Added an answer on June 2, 2026 at 1:17 am

    The ID of the control changes when it is being sent to the client so on PostBack the HttpContext most likely doesn’t have a field with ID "Email".

    Try this:

    if (IsPostBack)
    {
     string email = Email.Text; //Email refers to <telerik:RadTextBox ID="Email"/>
     Label9.Text = email;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing some user controls for the first time and I'm wondering if there's
I am currently working on an ASP.NET MVC2 project. This is the first time
I'm taking my first crack at writing some linux kernel code, and I'm hitting
I'm writing some unit tests for Fluent NHibernate mappings (for the first time). When
I'm a former classic ASP programmer and sometimes PHP programmer writing my first ASP.NET
In writing some code today, I have happened upon a circumstance that has caused
every time i am writing some data to my server i first send a
Disclaimer: This is my first time writing unit tests...be gentle! :) I am trying
Hello I was writing a Regular Expression (first time in my life I might
I'm writing a WCF service for the first time. The service and all of

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.