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 Posted / yogesh sharma
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 ? | 16 Yes | 9 No |
Post New Answer View All Answers
What are the different types of cookies in asp.net?
What are the memory-mapped files?
Name the two properties are on every validation control?
In which event of the page viewstate is available?
Explain page output caching?
What are the Types of objects in ASP
How does the cookies work in asp.net?
How does a web application session work?
When cookie will expire?
Explain the difference between asp.net mvc and asp.net webforms
A Web Service Can Only Be Written In .net. Is it True??
Why SessionID changes in every request in asp.net?
Explain diff. Betn dataset and recordset?
What is a web server? What are the load limits in it?
What is an il?