ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
If we add a textbox and give the required field 
validator,and i add two radio buttons 1 is yes another one 
is No.And i add another one server control button ,if i 
click the button ,if the radio button Yes is checked the 
validation control is fired ,if no the validation control 
is not fired.So what you used to solve this problem.
 Question Submitted By :: Kamal
I also faced this Question!!     Rank Answer Posted By  
 
  Re: If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.
Answer
# 1
required field valodator is used to check where a browser
has entered a value in atextbox or not.
 
Is This Answer Correct ?    22 Yes 15 No
Vijay
 
  Re: If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.
Answer
# 2
Hi,
We can add the code in page_load

If Me.RadioButton1.Checked = True Then
            Button1.CausesValidation = True
        Else
            If Me.RadioButton2.Checked = True Then
                Me.Button1.CausesValidation = False
            End If
        End If
 
Is This Answer Correct ?    22 Yes 6 No
Smriti
 
 
 
  Re: If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.
Answer
# 3
Required Field Validator does not depend upon any server 
control either it is enable or disable.Means if radio 
button1 is enable and radiobutton2 is disable at same time 
then u press button then by default validation control 
fired also in vice-versa case
 
Is This Answer Correct ?    7 Yes 6 No
Prakash
 
  Re: If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.
Answer
# 4
Set causes validation on the button to false. Add a custom 
javascript function to the onclick event of that button. In 
the javascript function check whether the radio button is 
checked or not then. If checked call ValidatorEnable
(regValidatorId, true) and then call Page_ClientValidate() 
function.
 
Is This Answer Correct ?    5 Yes 3 No
Vijay
 
  Re: If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.
Answer
# 5
Required validator checks for TextBox empty or not..

so to solve this problem

RequiredField validator--->properties..>validationGroup:sbmt
Button                 --->properties..>validationGroup:sbmt
 
Is This Answer Correct ?    6 Yes 3 No
Ranga
 
  Re: If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.
Answer
# 6
Set both radio buttons AutoPostBack property to true.

and following code in page_load:

 if (RadioButtonNo.Checked == true)
        {
            this.Button1.CausesValidation = false;
        }
        else
        {
            this.Button1.CausesValidation = true;
        }
 
Is This Answer Correct ?    7 Yes 5 No
Yogesh Sharma
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what are Httpmodule and HttpHandler? Microsoft2
What is the use of The Page.Master Property?  1
where can i gather the materials for MCP certification  1
What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object Syntax-Softtech3
How do you register a .NET assembly? Microsoft3
What is the difference between a.Equals(b) and a == b?  2
I am using SQLServer 2005. I have one table called Drivers. Every day thousands of records will be added in this table. I have to show all these records in my GridView with out applying ajax timer beacause we don't know the time limit when the new record come to the table. Sometimes it will add for 10 seconds some times 20 seconds. There by Please try without using timer or any other soultion apply for the table in sqlserver. But, i want to see all records immediately when new record comes in table. How? Thanks in advance... Ramesh  5
hai to all. what is the procedure for " web hosting ".If you know please message me at "yoursguna@gmail.com". Thank u...  1
Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.  1
what is postback implementation?when pre-render event n init event is fired? Ness-Technologies1
What is cookie less session? How it works?  1
what is diffrence between debug class and trace class in asp.net ?  2
Explain Page life cycle DELL6
When working with ASP.Net server controls, it is important to use the right event handlers to capture the event for the application to function properly. What event would you use to capture the selection of a new item in a DropDownList control? a) The Click event. b) The SelectionChanged event. c) The SelectionIndexChanged event. d) The ChangedSelection event. Syntax-Softtech4
I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.  1
Define ViewState and how can it be used?  3
what is asp.net  10
What is boxing and unboxing ? Accenture6
hi im shailendra singh my question is how we deploye the data base HCL2
What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData() Syntax-Softtech2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com