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...


If i have a page where i create an instance of a dll and
without invoking any method can I send values to next page ?



If i have a page where i create an instance of a dll and without invoking any method can I send val..

Answer / maloy.adhikari

By IsCrossPostback Property we can send values to the next
page..
Exam::
Let There Are 2 Page page1.aspx & page2.aspx.....I wanna
send value of a textbox from page1 to page2.
Step 1::
In aspx of page1,
<div>
<asp:TextBox ID="Textbox1"......></asp:TextBox>
<asp:Button ID="Button1"....postbackurl="~page2.aspx"/>
</div>
Step2::

In Pageload() of page2.aspx

pageload()
{
if(PreviousPage!=null && PreviousPage.IsCrossPostBack)
{
TextBox text=PreviousPage.FindControl("Textbox1")
as TextBox;
if(text!=null)
{
Label1.Text=text.Text;
}
}

}

.........Here Label1 is a label of page2.Where i show the
value of 1st page's text box value....

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the significance of ASP.NET routing?

0 Answers   NA,


What is the syntax for datagrid and specifying columns?

0 Answers   Microsoft, SF,


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

0 Answers   Wipro,


Can I tap into other windows livetm services?

0 Answers  


List the events in page life cycle.

0 Answers  


What is the maximum timeout we can set for Cookies?

0 Answers  


To call a Web service SOAP which transport protocol you use?

3 Answers   Siebel,


What is the question mark in a url?

0 Answers  


How many classes can a single .NET DLL contain?

6 Answers   SoftSol,


What is GAC in ASP.NET 2.0

0 Answers   MCN Solutions,


How can you execute stored procedure from windows application?

1 Answers   Microsoft,


To bind columns manually which tags do you need to add within the asp:datagrid ?

0 Answers   Siebel,


Categories