ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How cross page posting is done in Asp.net 2.0?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How cross page posting is done in Asp.net 2.0?
Answer
# 1
yes
 
Is This Answer Correct ?    0 Yes 1 No
Xyz
 
  Re: How cross page posting is done in Asp.net 2.0?
Answer
# 2
Like IsPostBack property there is IsCrossPostBack property 
that sets to true if page is redirected from a page.
 
Is This Answer Correct ?    0 Yes 3 No
Yogesh Sharma
 
 
 
  Re: How cross page posting is done in Asp.net 2.0?
Answer
# 3
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 ?    6 Yes 1 No
Abhishek Kumar
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What Name space does the web page belon in the .net framework class hierarchy? Wipro1
What is the difference between a.Equals(b) and a == b?  2
What is WebService ? Tanla-Solutions6
Types of configuration files and their differences ? Accenture1
Types of session management in ASP.NET ? Microsoft2
what is pagination in asp.net ? Netsweeper1
What is Difference between Callbacks and Postback in ASP.NET?  8
Can a master page inherit another master page? Emphasis8
Describe a diffgram ? Write any one use of that?  2
What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other? Syntax-Softtech24
What are the 4 tenants of SOA/D.  1
what does membership class provide?  1
Explain authentication levels in .net ?  3
Which control would you use if you needed to make sure the values in two different controls matched?  1
If I m using Session State Partioning where I have partitioned my session into 4 servers then how can I know that my session will be stored on which server?  1
What is web.config. How many web.config files can be allowed to use in an application? Accenture5
Tell about WebService in Asp.Net? Accenture4
what is diff between responseexpires and expiresabsolute Accenture2
Difference between HTML control and Web Server Control?  3
What is the lifespan for items stored in ViewState? ISST2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com