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.
Answers were Sorted based on User's Feedback
Answer / nikki
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 ? | 6 Yes | 2 No |
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 ? | 3 Yes | 0 No |
Answer / navin chandra pandit
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 ? | 4 Yes | 1 No |
Explain what does wsdl stand for?
How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)
What is MVVM in dot net?
what are debugging types in .net?
please can any describe 'Master Page' in ASP.Net 2.0
What is query string? What are its advantages and limitations?
Explain different types of validators in asp.net?
Describe how to implement globalization and localization in the use interface in .net.
Which is better session or viewstate?
Can a master page inherit another master page?
13 Answers Emphasis, IBM, NIIT, Sebiz Square,
How to register exception filter globally?
Can you explain page lifecycle in net?
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)