hi all :
i have use the following code and every thing work good .
except when I don't select any radio option,the error
display.
how to avoid this error?
[u]code:</u>
<script language="
vb" runat=server>
sub page_load()
if page.ispostback then
select case(destination.selecteditem.value)
case "Amman":
message.text= "You select the jordan capital"
case "Irbed":
message.text= "You select the best contry city"
case "Zarqa":
message.text= "You select my born city"
case else:
message.text= "Select city please"
end select
end if
end sub
</script>
<html>
<head>
<title>Case</title>
</head>
<body>
<form runat="server">
Select your choice of destination:
<br /><br />
<asp:RadioButtonList ID="destination" Runat=server>
<asp:ListItem>Amman</asp:ListItem>
<asp:ListItem>Irbed</asp:ListItem>
<asp:ListItem>Zarqa</asp:ListItem>
</asp:RadioButtonList>
<br /><br />
<input type=submit value="Submit Chice">
<br /><br />
<asp:Label ID="message" Runat=server/>
</form>
</body>
</html>
jordan