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 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

To wrap up a call to a Web service the standard used is..?

948


What is session handling in a webfarm, how it can work with its limits?

1090


Can you clarified A Web service can only be written in .NET or not?

1017


How can you access the properties and controls of master pages from content pages?

972


Explain Life cycle of ASP.NET page when a request is made.

1190


What are the difference between function and stored procedure in .net programming language?

675


Out of ASP or ASP.NET which one is stateless?

1184


What is http post and http get?

971


What is odata in web api?

1043


Define session in asp.net.

955


How many types of sessions are there in asp net?

969


What is the difference between rest and restful?

1020


What is custom attribute? How to create?

1044


Explain what does mvc represent in asp.net? : asp.net mvc

1015


What is autopostback in asp net?

1002