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 FullTrust? Do GACed assemblies have FullTrust?

2 Answers  


How many types of Stored Procedures in SQL Server

4 Answers   Mind Tree,


If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.

4 Answers  


What is the first name space in .netF/W heirarchy

3 Answers   Wipro,


Difference between response.redirect and server.transfer?

0 Answers  






Difference between Active Exe and Dll ?

3 Answers   Satyam,


What is a ashx file?

0 Answers  


What is the relationship(in oops) between codebehind and inline code(.aspx to .aspx.cs)??? explain

4 Answers   Mind Tree,


What is the difference between an EXE and a DLL?

18 Answers   Infosys, JK Associates, Persistent, TATA, Technosoft, Wipro,


hi im shailendra singh my question is how we deploye the data base

3 Answers   HCL,


What is the sequence in which ASP.NET events are processed?

0 Answers  


How do you a replicate a set of controls across a number of ASP Pages

2 Answers  


Categories