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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
I am having four text boxes in my web application. I am 
setting Required Field validator to each Text box. And I am 
having two buttons in my application. If i clicked the 
first button only first two text box validation will get 
fire. Dont show error message for remaining two text box. 
If i clicked second button last two text box validation 
will get fired. It will not consider the first two 
validation controls. That is how to enable and disable the 
validation controls.
 Question Submitted By :: Suji
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.
Answer
# 1
Hi.......its very simple first of all take two validation 
summary and first 2 textbox and 1 button and 1 summary give 
the same validation group name and do same for other two 
textboxes and i think u will get the solution...
 
Is This Answer Correct ?    3 Yes 0 No
Nikki
 
  Re: I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.
Answer
# 2
Hi

I am having 4 textbox inside the datagrid1. And another 4 
textbox in datagrid2. For all 8 textbox i am using the 
Required Field validator. If i click the button1 then only 
first datagrid textboxes should be validated. IT Wil not 
consider the second datagrid textboxes. If i click button2 
only second datagrid textboxes should be validated. It will 
not consider the first datagrid textboxes. How you will 
write coding in C# with ASP.NET


If any one know the answer Please help me.

Urgent.

By 
Suji.
 
Is This Answer Correct ?    0 Yes 0 No
Suji
 
 
 
  Re: I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.
Answer
# 3
To solve above prob., u can use validationGroup property of
 ctrl. Those validation ctrls. that want to validat with a
btn ctrl., place in one group while the other place in 2nd
group simply.

Hope u got the point now.
 
Is This Answer Correct ?    1 Yes 0 No
Navin Chandra Pandit
 
  Re: I am having four text boxes in my web application. I am setting Required Field validator to each Text box. And I am having two buttons in my application. If i clicked the first button only first two text box validation will get fire. Dont show error message for remaining two text box. If i clicked second button last two text box validation will get fired. It will not consider the first two validation controls. That is how to enable and disable the validation controls.
Answer
# 4
Hi..


I got the answer.

Thanks a lot....

By 

Suji.
 
Is This Answer Correct ?    0 Yes 1 No
Suji
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what are the new server controls added in Asp.net 2.0? DOSPL1
One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again. - this error is occured in Sharepoint 2007 while deploy the web part WebInfo1
I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'  2
How many types of validation controls are provided by ASP.NET?  4
How to check null values in dataset ? Digital-GlobalSoft4
Can two different programming languages be mixed in a single ASMX file? Patni1
what is DLL Hell and how it is solved in .NET? icegen9
In a webpage if i want to give access to only half page ,then what should i do?  3
what is pagination in asp.net ? Netsweeper1
To display data in a Repeater control which templete is provided ?  4
What is difference between machine.config and Web.Config? Accenture3
About CLS and CTS? Microsoft6
With out Web.config can we executes the application? Valtech6
Have you used microsoft dataaccess blocks and Exception blocks? Microsoft1
what is code access security,role based security explain with example Infosys1
Can we throw exception from catch block ? Accenture3
Explain current thinking around IClonable.  1
what is caching? Microsoft2
You have two buttons in web form and i clicked on one of the button, so how do i find which button i've clicked on the form in my page load? INDUS14
How to convert a string into an Integer in ASP.net?  6
 
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