title: fetch values of radiobutton list of primary key table to another foreign key table using asp.net
body: <p>I have created two tables in a SQL Server database and a RadioButtonList in an ASP.NET page. In one table I have stored values for each radio button as primary key. I want that on clicking that radio button, its primary key value in stored another table in a foreign key column.</p>
  
  <p>Here I am using store procedure in MS-SQl. 
  primary key table is gender and foreign key table is user.In aspx page i dm dispalying gender as radiobuttons, now the question is how can i fetch primary id of gender table and fill in users table.My code is as below:</p>
  
  <pre><code>ArrayList arSample = new ArrayList();
  Object[] n_gender_id = new Object[3] { "@intGender", "Int", (rbtngender.SelectedValue != "") ? rbtngender.SelectedValue : "" };
  </code></pre>
  
  <p>I am getting values of radiobutton how get ids of particular button.
  help out.......</p>