Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
DataType return in IsPostback property
Home
>>
Category
>>
ASP.NET (MCQ) questions and answers
>>
ASP.NET Introduction
Q. ______________ is the DataType return in IsPostback property.
- Published on 16 Jun 15
a.
bit
b.
boolean
c.
int
d.
object
e.
string
ANSWER: boolean
Related Content
ASP.NET Introduction (
27
)
ASP.NET HTML and Web Server Control (
13
)
Validation Control and Web page navigation (
13
)
Master Pages (
14
)
ASP.NET Security (
26
)
State Management System (
22
)
ASP.NET AJAX (
18
)
ADO.NET (
52
)
Caching pages and data (
17
)
ASP.NET Exception Handling (
0
)
ASP.NET Globalization and Localization (
14
)
Basic concept of ASP.NET (
12
)
Csharp.Net (
27
)
LINQ (
26
)
Discussion
Raj Singh
-Posted on 13 Sep 15
IsPostback is page property and its return type is Boolean. Page_Load event fires on every postback event. The IsPostBack property can be used to determine whether the page is being rendered for the first time or is being loaded in response to a postback. If you want that some code should not be run on postback then you should write that code in following manner.
protected void Page_Load(object sender, EventArgs e)
{
if( ! IsPostBack)
{
// write code here , which you want to execute in the first time when the page is loaded not during postback.
}
}
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲