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 ?
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 |
How can you dynamically add user controls to a page?
What are the elements of a website?
Is it possible to add aspx.vb file in to C# Web Project? If so how can i use the vb file in the C# Web project?
Tell me Asp.net Method Overriding.
Where is the view state data stored in asp net?
Where can I get information on cookies in asp.net?
Explain about the Class view window?
What is hidden field in asp.net?
Differences between session state and Application state?
What is asp.net response object?
What is cached data phone?
How to prepare culture-specific formatting in .net.