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 concept of postback in asp.net?

0 Answers  


What do you mean by marshalbyref?

0 Answers  


What is meant by asp.net?

0 Answers  


How do I open an ashx file?

0 Answers  


What are the differences between clr & cts?

0 Answers  






Explain a program using razor view engine to create a simple application? : asp.net mvc

0 Answers  


how can u create the blog in asp.net with C#?what is the data type u will use to store in sql server?

0 Answers   IBM,


Differentiate between file-based dependency and key-based dependency.

0 Answers  


Why is an object pool required?

0 Answers  


In which event of page cycle is the viewstate available?

0 Answers  


what is shared assembly asp net

1 Answers   Fidelity,


What types of data validation events are commonly seen in the client-side form validation?

0 Answers  


Categories