If radiobutton is true fields are appeared.

Posted by maninaanee-8287 under ASP.NET on 12/13/2011 | Points: 10 | Views : 956 | Status : [Member] | Replies : 6
if radio button is true, then addressline1,addressline2,pay -to state, pay-to-city and pay-to-zip fields are appeared.i want in 3-tier architecture


if radio button is false, the field are disappeared




Responses

Posted by: Hmanjarawala on: 12/13/2011 [Member] Bronze | Points: 25

Up
0
Down
Here what do you mean by 3-tier......you want this in MVc??

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: maninaanee-8287 on: 12/13/2011 [Member] Starter | Points: 25

Up
0
Down
i mean business layer,data access layer and presentation layer

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 12/13/2011 [Member] Bronze | Points: 25

Up
0
Down
But here didn't need expand this logic in these layers...

this work easily done at presentation layer itself

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: maninaanee-8287 on: 12/13/2011 [Member] Starter | Points: 25

Up
0
Down
kk, tell me how to do that one.

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 12/13/2011 [Member] Bronze | Points: 25

Up
0
Down
for this use javascript

write javascript on radiobutton click event like
onclick="return myFunction();"

and then write javascript like
<script language="javascript">

function MyFunction(){

var rdb = document.getElementByID('<%= rediobutton.ClientID %>');

if(!rdb.Checked){
document.getElementById('<%=txtAddress.ClientID%>').Style.display="None";
}else{
document.getElementById('<%=txtAddress.ClientID%>').Style.display="block";
}
return true;
}
</script>


Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Varung on: 12/13/2011 [Member] Starter | Points: 25

Up
0
Down
take the controls what u want to display in one panel
and write the below code:

protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
panel.Visible = true;
}

G.Varun

maninaanee-8287, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response