.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 17th, 2003, 01:54 AM
msrnivas msrnivas is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 30 msrnivas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Radio buttons

Hai
I am doing my task in asp.net
I have one Radio Gropu name Activity

in this group i have 2 radio buttons named
1.srource ,2.Action.
By default source is checked.

my requirment is
when ever user change the checked option from "source" to "action"
i want to visible 2 buttons example "click" and "save".
and again if user changed the checked option from "action" to "source"
i want to hide the 2 buttons example "click" and "save".


i dont find the click event in radio button. i tried with "CheckedChanged" event but its not working.i also tried withAutoPostBack=true option also.

pl advice me.

thanks sr

MODERATOR EDIT - msrnivas, Please note that there is now a SEPARATE forum for .NET related posts.

Reply With Quote
  #2  
Old July 6th, 2004, 07:10 AM
sajjad sajjad is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 sajjad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Here is Answer

You have to use the Panels for Hide the Buttons and then call the function OnSelectedIndexChanged on DropDownList Example is here

<%@ Page Language="VB" Debug="true" %>
<script runat="server">
Sub Page_Load(Sender As Object,E AS EventArgs)
panel1.Visible="false"
End Sub

Sub Sani(Sender As Object,E As EventArgs)
panel1.Visible="true"
End sub
</script>

<html>
<body>
<form runat="server">
<asp:RadioButtonList Group="group1" AutoPostBack="true" OnSelectedIndexChanged="Sani" runat="server">
<asp:ListItem Value="1" Text="Sajjad" Selected="true" />
<asp:ListItem Value="2" Text="Haider" runat="server" />
</asp:RadioButtonList>
<asp:Panel id="panel1" runat="server">
<asp:Button id="but1" Text="Click" runat="server" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button id="but2" Text="Save" runat="server" />
</asp:Panel>
</form>
</body>
</html>


if you want further information then elobarate your problem more precisely

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Radio buttons


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT