Interviews30 answers
Fetch one page value to another page without using state-managment ?
30 Answers
By the writing these code:
PreviousPage.FindControl("ControlName");
and other one is
Request.Form[""] name of the form element is to retrieve values
Navdeep SinghPosted Mar 30, 2017, 4:18 AM EDT
Request.Form["txtName"] can be used for retrieving value one page to another
Keshav ChauhanPosted Dec 30, 2016, 9:14 AM EST
Request.Form["txtName"] can be used for retrieving value one page to another
Keshav ChauhanPosted Dec 30, 2016, 9:14 AM EST
through ajax
Jyoti ShuklaPosted Sep 7, 2016, 10:28 AM EDT
there is a feature in .net called cross page posting
Umesh KumarPosted Aug 19, 2016, 9:04 AM EDT
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.
Vishal JadavPosted Aug 8, 2016, 11:27 PM EDT
use Page.FindControl("ID") u can transfer the data from one page to other
Hari ShankerPosted Jul 11, 2016, 2:57 AM EDT
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");
}
}
Ashutosh PandeyPosted Jun 11, 2016, 3:37 AM EDT
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
Keerthi VenkatesanPosted Jun 7, 2016, 10:31 PM EDT
Use the static variable application object.
Bhuvanesh MohankumarPosted May 29, 2016, 7:25 AM EDT
Request.Form
CrossPage Posting
Using static variables.
Arvind SinghPosted May 2, 2016, 12:41 AM EDT
using public static variable
Keerthi VenkatesanPosted Apr 11, 2016, 5:35 AM EDT
Using static variables.
Sunil BabuPosted Apr 2, 2016, 3:23 AM EDT
create object for the form you want to call. and then create static management and call the variable
Keerthi VenkatesanPosted Mar 31, 2016, 4:27 AM EDT
by using Page.PreviousPage.FindControl("");
If you use Server.Transfer()
Ashish SrivastavaPosted Mar 28, 2016, 3:36 AM EDT
by using Page.PreviousPage.FindControl("");
If you use response.transfer();
Ashish SrivastavaPosted Mar 28, 2016, 3:28 AM EDT
It is possible to cross page postback.you can try this code.
**************Default.aspx******************
***************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");
}
}
| Enter Class Name |
|
| Enter Techers Name | |
|
|
Arun SainiPosted Mar 23, 2016, 1:18 AM EDT
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.
Nayeem MansooriPosted Mar 22, 2016, 1:31 AM EDT
right answer
Rahul VermaPosted Mar 8, 2016, 8:06 PM EST
You can also use Cross-page posting.check the below link for refrences
http://www.c-sharpcorner.com/blogs/cross-page-posting-in-asp-net-web-pages1
v narayanaprasadPosted Mar 4, 2016, 6:34 AM EST
You can use Request.QuesyString and Request.Form
Pankaj Kumar ChoudharyPosted Feb 9, 2016, 4:31 PM EST
Request.Form("TextBox1")
abdullah khanPosted Feb 5, 2016, 4:54 AM EST
Using Cross Page Postback We can Access one page value in another page
Sthitaprajnya Debasis NayakPosted Jan 31, 2016, 1:34 AM EST
here we have two options one of use CrossPage Posting with PreviousPage.FindControl("") and other one is Request.Form[""]
Aditya SharmaPosted Jan 26, 2016, 9:18 PM EST
pintoo yadav...i have mentioned without using state manament
Rakesh SinghPosted Jan 26, 2016, 5:13 AM EST
You can pass values from one page to another by followings..
Response.Redirect
Cookies
Application Variables
HttpContext
Response.Redirect
SET :
Response.Redirect("Defaultaspx?Name=Pandian);
GET :
string Name = Request.QueryString["Name"];
Cookies
SET :
HttpCookie cookName = new HttpCookie("Name");
cookName.Value = "Pandian";
GET :
string name = Request.Cookies["Name"].Value;
Application Variables
SET :
Application["Name"] = "pandian";
GET :
string Name = Application["Name"].ToString();
Pintoo YadavPosted Jan 20, 2016, 8:14 PM EST
HI Rakesh
Please read my publisher and subscriber article in the Same article ibam solving your issues using delegates and events ...
Thanks
Nishant MittalPosted Jan 19, 2016, 6:16 AM EST
HI Rakesh
Please read my publisher and subscriber article in the Same article ibam solving your issues using delegates and events ...
Thanks
Nishant MittalPosted Jan 19, 2016, 6:16 AM EST
Nishant Mittal
Expand more
Rakesh SinghPosted Jan 19, 2016, 12:22 AM EST
you can use delegates and events for the same, also you can use constructors ....
Nishant MittalPosted Jan 19, 2016, 12:05 AM EST















