Rakesh Singh
Fetch one page value to another page without using state-managment ?
By Rakesh Singh in C# on Jan 18 2016
  • Keerthi Venkatesan
    Jun, 2016 8

    In Dot Net provides Request.Form Collection class to retrieves the values of form elements which posted from the HTTP request body in a form using the post method.Example : Request.Form("TextBox1")TextBox1 - name of the form element is to retrieve values

    • 3
  • Aditya Sharma
    Jan, 2016 27

    here we have two options one of use CrossPage Posting with PreviousPage.FindControl("") and other one is Request.Form[""]

    • 3
  • abdullah khan
    Feb, 2016 5

    Request.Form("TextBox1")

    • 2
  • Pintoo Yadav
    Jan, 2016 21

    You can pass values from one page to another by followings.. Response.Redirect Cookies Application Variables HttpContextResponse.RedirectSET :Response.Redirect("Defaultaspx?Name=Pandian); GET :string Name = Request.QueryString["Name"]; CookiesSET :HttpCookie cookName = new HttpCookie("Name"); cookName.Value = "Pandian"; GET :string name = Request.Cookies["Name"].Value; Application VariablesSET :Application["Name"] = "pandian"; GET :string Name = Application["Name"].ToString();

    • 2
  • Keshav Chauhan
    Dec, 2016 30

    Request.Form["txtName"] can be used for retrieving value one page to another

    • 1
  • Umesh  Kumar
    Aug, 2016 19

    there is a feature in .net called cross page posting

    • 1
  • Navdeep Singh
    Mar, 2017 30

    By the writing these code: PreviousPage.FindControl("ControlName");and other one is Request.Form[""] name of the form element is to retrieve values

    • 0
  • Keshav Chauhan
    Dec, 2016 30

    Request.Form["txtName"] can be used for retrieving value one page to another

    • 0
  • Jyoti Shukla
    Sep, 2016 7

    through ajax

    • 0
  • Vishal Jadav
    Aug, 2016 9

    We can use PreviousPage method and access property or control of previous page. just specify virtualpath in Html of page where we want to access property or control of page.

    • 0
  • Hari Shanker
    Jul, 2016 11

    use Page.FindControl("ID") u can transfer the data from one page to other

    • 0
  • Ashutosh Pandey
    Jun, 2016 11

    protected void Page_Load(object sender, EventArgs e){if (PreviousPage != null && PreviousPage.IsCrossPagePostBack){ TextBox txtNew = (TextBox)PreviousPage.FindControl("txtPre"); String str= txtNew.Text;}else{Response.Redirect("Prev.aspx");}}

    • 0
  • Bhuvanesh Mohankumar
    May, 2016 29

    Use the static variable application object.

    • 0
  • Arvind Singh Baghel
    May, 2016 2

    Request.Form CrossPage Posting Using static variables.

    • 0
  • Keerthi Venkatesan
    Apr, 2016 11

    using public static variable

    • 0
  • Sunil Babu
    Apr, 2016 2

    Using static variables.

    • 0
  • Keerthi Venkatesan
    Mar, 2016 31

    create object for the form you want to call. and then create static management and call the variable

    • 0
  • Ashish Srivastava
    Mar, 2016 28

    by using Page.PreviousPage.FindControl("");If you use Server.Transfer()

    • 0
  • Ashish Srivastava
    Mar, 2016 28

    by using Page.PreviousPage.FindControl("");If you use response.transfer();

    • 0
  • Arun Saini
    Mar, 2016 23

    It is possible to cross page postback.you can try this code.**************Default.aspx******************

    Enter Class Name
    Enter Techers Name
    ***************Default2.aspx********************

    ******************Default2.aspx.cs***********************protected void Page_Load(object sender, EventArgs e){if (PreviousPage != null && PreviousPage.IsCrossPagePostBack){TextBox txtcname = (TextBox)PreviousPage.FindControl("txtclassname");TextBox txttname = (TextBox)PreviousPage.FindControl("txttechername");lblcname.Text = "Your Class is:-    " + txtcname.Text;lbltname.Text = "Your Teacher Name is:-   " + txttname.Text;}else{Response.Redirect("Default.aspx");}}

    • 0
  • Nayeem Mansoori
    Mar, 2016 22

    Here many answers but i want to say some difference if we use jquery localstorage it is also Fetch one page value to another page without using state-managment.

    • 0
  • Rahul Verma
    Mar, 2016 9

    right answer

    • 0
  • v narayanaprasad
    Mar, 2016 4

    You can also use Cross-page posting.check the below link for refrenceshttp://www.c-sharpcorner.com/blogs/cross-page-posting-in-asp-net-web-pages1

    • 0
  • Pankaj  Kumar Choudhary
    Feb, 2016 9

    You can use Request.QuesyString and Request.Form

    • 0
  • Sthitaprajnya Debasis Nayak
    Jan, 2016 31

    Using Cross Page Postback We can Access one page value in another page

    • 0
  • Rakesh Singh
    Jan, 2016 26

    pintoo yadav...i have mentioned without using state manament

    • 0
  • Nishant Mittal
    Jan, 2016 19

    HI RakeshPlease read my publisher and subscriber article in the Same article ibam solving your issues using delegates and events ...Thanks

    • 0
  • Nishant Mittal
    Jan, 2016 19

    HI RakeshPlease read my publisher and subscriber article in the Same article ibam solving your issues using delegates and events ...Thanks

    • 0
  • Rakesh Singh
    Jan, 2016 19

    Nishant MittalExpand more

    • 0
  • Nishant Mittal
    Jan, 2016 19

    you can use delegates and events for the same, also you can use constructors ....

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS