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 to Convert a String into Float without using any built- in library of .NET String = "1235.45" needs to converted to a float
Mention the namespace that is used to include .net data provider for sql server in .net code?
Explain the difference between debug.write and trace.write?
What is the use of SmartNavigation property?
can we place the same DLL in debug folder two times? (without using strong name )
What are the different types of sessions in asp.net?
What is server side session management?
Can we throw exception from catch block ?
4 Answers Accenture, BirlaSoft,
What is Http handler?
What is the web.config file in asp?
repeater and gridview diff? Why is repeater fast than gridview?
how can i deploy a asp.net webapplication.in a company so that all employees may access application on their different computers and share a single database. plz tell me the steps to do it..thanks.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)