This example help you to code a asp.net C# coding to redirect the user to specific url on selecting a radio button.
How to Redirect User to Different URL – Radio Buttons - using ASP-C#
<%@ Page Language="C#" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> 
<%    
    if (Request.Form["select"] != null && Request.Form["select"] != "")     
       Response.Redirect(Request.Form["select"]); 
%>
<html>    
<body>     
<form action="Default3.aspx" method="post">     
<input type="radio" name="select"     
value="#">     
C# Tutorials<br>     
<input type="radio" name="select"     
value="#">     
Software Testing Tutorials<br><br>     
<input type="submit" value="Submit">     
</form>     
</body>     
</html>
No comments:
Post a Comment