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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:23:45+00:00 2026-05-12T17:23:45+00:00

If I have a textbox txtInfo in a form that I submit via post,

  • 0

If I have a textbox txtInfo in a form that I submit via post, if I post back to the page I can read the value entered in the textbox using txtInfo.Text. What if I am posting to a different page? Do I have to parse Request.Form for the control name mutilations (which is what I am doing now) or can I get it from that mess .net passes around as state?

Thanks


Thank you for the answers so far… Sorry I should have been a little more clear. This control is a runat="server" control. This is what I am relegated to now – not very pretty.

    foreach (String key in page.Request.Form.AllKeys)
    {
        String[] controlName = key.Split('$');//remove that horrrible .net naming - thanks Bill.
        keyName = controlName[controlName.Length - 1];//get the last value so we always have the name
        keyValue = page.Request.Form[key];
        if (keyValue != "")
        {
            switch (keyName)...
  • 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-12T17:23:45+00:00Added an answer on May 12, 2026 at 5:23 pm

    You should look into Cross Page Postbacks.

    As noted on this page you can easily get access to txtInfo using the following:

    if (Page.PreviousPage != null)
    {
        TextBox SourceTextBox = 
            (TextBox)Page.PreviousPage.FindControl("txtInfo");
        if (SourceTextBox != null)
        {
            Label1.Text = SourceTextBox.Text;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you tell me when will use CustomValidator. For eg I have Textbox that
I am using jquery on asp.net mvc. I have textbox on page and I
Im creating forum like application and I have textbox where users can enter tags
I have asp:TextBox to keep a value of money, i.e. '1000', '1000,0' and '1000,00'
I have a textbox that I would like for only numbers. But if I
I have a textbox that i am binding to the viewmodel's string property. The
I have textbox that I want to run some jquery when the textbox loses
I am have textbox and 4 button in my page (A, B, Delete and
I want to have image button for browse and upload I have textbox using
Currently I'm working on gridview it's have textbox on submit click I want to

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.