GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 435 of 436    Print  
AutoPostBack Property
There is Cancel button and OK button on page. When we click Cancel button it skips all validation controls and goes to next page.

(a)Page AutoPostback of Cancel is True.
(b)Page AutoPostback of Cancel is False.
(c)Page AutoPostback of OK is True.
(d)Page AutoPostback of OK is False.

Which option is correct?



  
Total Answers and Comments: 7 Last Update: January 06, 2010     Asked by: palchin_sh 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: PRASHANT MISHRA
 

AutoPostBack of Cancel is True



Above answer was rated as good by the following members:
mithilesh.yk, shanth.008, Raj_Paandy, jsubha2009
May 20, 2009 08:49:50   
PRASHANT MISHRA Member Since: May 2009   Contribution: 1    

RE: AutoPostBack Property

AutoPostBack of Cancel is True


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 01, 2009 09:09:55   
albu77 Member Since: September 2007   Contribution: 9    

RE: AutoPostBack Property
AutoPostBAck is a property of TextBox Control and not a button which is rendered as a summit and will submit the page.
If the real question is about validation the cancel button normally has its property CauseValidation to false to enable the user to exit from a form without fulfilling the normal content of the form.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 03, 2009 07:51:07   
shijuprakasan Member Since: September 2009   Contribution: 1    

RE: AutoPostBack Property
Page AutoPostback of Cancel is True and also CausesValdation of cancel should be false
 
Is this answer useful? Yes | No
November 03, 2009 10:49:24   
ngobeseb Member Since: November 2009   Contribution: 2    

RE: AutoPostBack Property
There no such thing called AutoPostBack property on a Button.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 23, 2009 10:00:03   
halammal29 Member Since: November 2009   Contribution: 2    

RE: AutoPostBack Property
User have to assign AutoPostBack Property mean its avoid the page roundtrip.
 
Is this answer useful? Yes | No
December 10, 2009 03:16:57   
solanki.hr Member Since: December 2009   Contribution: 2    

RE: AutoPostBack Property
A button control does not have AutoPostBack property it has click event. so once you click on cancel and if its CausesValidation Property is false it will skips all validations and if it is true it will validate the controls on the page.

AutoPostBack property is for say DropDown textbox etc... whnever you change/enter value/keyed some caharcter in textbox or change your selection in drop down postback will happen if that control's is AutoPostBack property is true depending on that postback you can fill values or set some values for other controls or you can do some validation against enterd or selcted values.

e.g. say tehre are 2 drop down. DropDown1 and DropDown2
DropDown2 is currently holding states of US country as in DropDown1 you have selcted US. Now you want to fill DropDown2 with state value of India.
Now if
DropDown1.AutopostBack True;

and you change DropDown1's value from Us to India.
Page will post back to server and you can fill DropDown2 with Indian States.

Thanks
Solanki

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 06, 2010 13:54:33   
papillon Member Since: November 2009   Contribution: 5    

RE: AutoPostBack Property
(c) Page AutoPostback Property of OK is true.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape