Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How cross page posting is done in Asp.net 2.0?

Answers were Sorted based on User's Feedback



How cross page posting is done in Asp.net 2.0?..

Answer / abhishek kumar

cros page posting is page to page data transfer machanism
like query string.

you can do it two ways :

1. using <%@ PreviousPageType VirtualPath="~/
SourcePage.aspx" %> directive :- If the target page
contains a PreviousPageType directive that points to the
source page, you can access the source page's CurrentCity
property using code such as the following.

Label1.Text = PreviousPage.CurrentCity;

2. Using PostBackUrl and PreviousPage property :-

In source page specify PostBAckUrl property to control
which you use to generate postback like,

<asp:Button
ID="Button1"
PostBackUrl="~/TargetPage.aspx"
runat="server"
Text="Submit" />

In TargetPage.aspx :-

if (Page.PreviousPage != null)
{
TextBox SourceTextBox =
(TextBox)Page.PreviousPage.FindControl("TextBox1");
if (SourceTextBox != null)
{
Label1.Text = SourceTextBox.Text;
}
}

Is This Answer Correct ?    13 Yes 1 No

How cross page posting is done in Asp.net 2.0?..

Answer / xyz

yes

Is This Answer Correct ?    0 Yes 5 No

How cross page posting is done in Asp.net 2.0?..

Answer / yogesh sharma

Like IsPostBack property there is IsCrossPostBack property
that sets to true if page is redirected from a page.

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

You have multiline textbox and submit button. if you paste xml content into multiline textbox and hit submit button. what action will perform?

6 Answers   D&B,


What is the difference between GridView and Repeater controls in ASP.NET?

0 Answers  


Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords). Which one is trusted and which one is untrusted?

3 Answers  


What is Pre-Render event in ASP.NET?

0 Answers   MindCracker,


What is session in http request?

0 Answers  


How can we identify that the Page is Post Back?

0 Answers  


When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

0 Answers   BirlaSoft,


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

0 Answers   Honeywell, Wipro,


How to use multiple scriptmanager controls in a web page?

0 Answers  


Where the viewstate is stored after the page postback?

0 Answers  


How can you provide an alternating color scheme in a Repeater control?

1 Answers  


What are the differences between Dataset and DataReader?

3 Answers   Accenture,


Categories