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

how to integrate Language conversion, without asking the enduser to download font, it should auto integrate

1 Answers  


What is mvc structure? given example? How to show gridview control from business components and using class object arrays?

3 Answers  


How do you use viewstate?

0 Answers  


In which event of the page life cycle, is the viewstate available?

0 Answers  


Explain the advantages of passport authentication.

0 Answers  






Give an example appropriate use forweb service as opposed to a non-serviced .NET component

1 Answers   Siebel,


What does the "EnableViewState" property do? Why would I want it on or off?

3 Answers  


What are server activated objects?

0 Answers  


What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?

4 Answers  


What is global.asax file used for?

0 Answers  


Difference between singleton and singlecall.

0 Answers  


What are two ways that you can set the minimum and maximum values for a rangevalidator? When would you use each technique?

1 Answers  


Categories