searchsanjaysharma
asked on
How to transfer the html content to .aspx page.
I have two controls
<input type='text' id='t1' value=''>
<input type='text' id='t2' value=''>
how to pass to .aspx page and then how to read the values.
<input type='text' id='t1' value=''>
<input type='text' id='t2' value=''>
how to pass to .aspx page and then how to read the values.
you can use the concept pf querry string to append values in HTML through Javascript and read smae in asp.Net page with Request.QueryString
http://www.codeproject.com/Articles/5876/Passing-variables-between-pages-using-QueryString
Check the blog to pass value between HTML pages like addign and Querrign through Javascript
http://www.dynamicdrive.com/forums/archive/index.php/t-15317.html
http://www.codeproject.com/Articles/5876/Passing-variables-between-pages-using-QueryString
Check the blog to pass value between HTML pages like addign and Querrign through Javascript
http://www.dynamicdrive.com/forums/archive/index.php/t-15317.html
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
This is my html content
I am passing it to default2.aspx, but do i read the values.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Langua ge" content="en">
<script type="text/javascript" async="" src="cgc_files/ga.js"></sc ript><scri pt type="text/javascript" async="" src="cgc_files/ga.js"></sc ript><scri pt src="cgc_files/swfobject.j s" language="javascript"></sc ript>
<link href="cgc_files/style.css" rel="stylesheet" type="text/css">
<link href="cgc_files/form-style .css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="cgc_files/jquery.js"> </script>
<script type="text/javascript" src="cgc_files/jquery.vali date.js">< /script>
<link type="text/css" media="screen" rel="stylesheet" href="cgc_files/gallery.cs s">
<script type="text/javascript">
function slideSwitch() {
  var $active = $('#slideshow IMG.active');
  if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
  // use this to pull the images in the order they appear in the markup
  var $next =  $active.next().length ? $active.next()
    : $('#slideshow IMG:first');
  // uncomment the 3 lines below to pull the images in random order
  $active.addClass('last-act ive');
  $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
      $active.removeClass('activ e last-active');
    });
}
$(function() {
  setInterval( "slideSwitch()", 5000 );
});
</script>
<style type="text/css">
#slideshow {
  position:relative;
  height:312px;
  width:960px;
}
#slideshow IMG {
  position:absolute;
  top:0;
  left:0;
  z-index:8;
  opacity:0.0;
}
#slideshow IMG.active {
  z-index:10;
  opacity:1.0;
}
#slideshow IMG.last-active {
  z-index:9;
}
#Diploma,#Grad,#PostGrad
{visibility:hidden;
display:none;
}
</style>
<script type="text/javascript" src="chrome-extension://dl nembnfbcpj nepmfjmngj enhhajpdfd /resources /LocalScri pt.js"></s cript><scr ipt type="text/javascript" src="chrome-extension://dl nembnfbcpj nepmfjmngj enhhajpdfd /libraries /DataExcha ngeScript. js"></scri pt></head>
<body><center>
<div class="main">
      <div class="container">
           Â
       <div class="flash">
                 <div class="text-other">
<script type="text/javascript">
function captcha()
{
      if(document.getElementById ("CAPTCHA1 ").value!= "0" && document.getElementById("C APTCHA1"). value!="")
      {
           document.getElementById("E CAPTCHA1") .innerHTML ="<span style='color:#c00;font-variant :small-cap s;font-wei ght:bold;b order-top: 1px dotted #ccc;'>you have entered a wrong result. Please enter a correct result.</span>";
           document.getElementById("C APTCHA1"). focus();
           return false;
      } else {
           document.getElementById("E CAPTCHA1") .innerHTML ="";
      }
}
function others()
{
      var data = document.getElementById('F ROMWHERE') .value;
      if(data=="Others")
      {
           document.getElementById('o therdiv'). style.visi bility='vi sible';
           document.getElementById('o therdiv'). style.disp lay='block ';
      } else {
           document.getElementById('o therdiv'). style.visi bility='hi dden';
           document.getElementById('o therdiv'). style.disp lay='none' ;
      }
}
function others1()
{
      var data = document.getElementById('E du').value ;
      if(data=="Any Other")
      {
           document.getElementById('o therdiv1') .style.vis ibility='v isible';
           document.getElementById('o therdiv1') .style.dis play='bloc k';
      } else {
           document.getElementById('o therdiv1') .style.vis ibility='h idden';
           document.getElementById('o therdiv1') .style.dis play='none ';
      }
}
function oth()
{
      var data = document.getElementById('D Type').val ue;
      if(data=="Diploma")
      {
           document.getElementById('D iploma').s tyle.visib ility='vis ible';
           document.getElementById('D iploma').s tyle.displ ay='block' ;
           document.getElementById('G rad').styl e.visibili ty='hidden ';
           document.getElementById('G rad').styl e.display= 'none';
           document.getElementById('P ostGrad'). style.visi bility='hi dden';
           document.getElementById('P ostGrad'). style.disp lay='none' ;
      }
      else if (data=="Grad")
      {      document.getElementById('G rad').styl e.visibili ty='visibl e';
           document.getElementById('G rad').styl e.display= 'block';
           document.getElementById('D iploma').s tyle.visib ility='hid den';
           document.getElementById('D iploma').s tyle.displ ay='none';
           document.getElementById('P ostGrad'). style.visi bility='hi dden';
           document.getElementById('P ostGrad'). style.disp lay='none' ;
     Â
      }
      else if (data=="PostGrad")
      {      document.getElementById('P ostGrad'). style.visi bility='vi sible';
           document.getElementById('P ostGrad'). style.disp lay='block ';
           document.getElementById('D iploma').s tyle.visib ility='hid den';
           document.getElementById('D iploma').s tyle.displ ay='none';
           document.getElementById('G rad').styl e.visibili ty='hidden ';
           document.getElementById('G rad').styl e.display= 'none';
     Â
      }
      function enableDisableButton() {
        button = document.getElementById("S ubmit");
        button.disabled = !button.disabled;
    }
}
</script>
<br>
<h1>Admission Registration Form</h1>
<div id="matched">
<form id="login" class="form" onsubmit="return captcha();" Â action="Default2.aspx" method="post" name="login" runat="server">
<fieldset>
      <legend><b>Personal Details</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td class="">
                      <label for="NAME"><span class="required">Name</spa n></label>
                      <input id="NAME" name="NAME" class="text required error" type="text">
                      <label for="NAME" generated="true" class="error" style="display: inline;">This field is required.</label>
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="FNAME"><span class="norequired">Father' s Name</span></label>
                      <input id="FNAME" name="FNAME" class="text norequired" type="text">
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="ADDRESS"><span class="norequired">Address </span></l abel>
                      <textarea rows="4" cols="35" id="ADDRESS" name="ADDRESS" class="text norequired"></textarea>
                 </td>
           </tr>
           <tr>
                 <td class="">
                      <label for="CONTACTNO"><span class="required">Contact No</span></label>
                      <input id="CONTACTNO" name="CONTACTNO" class="text required number error" minlength="10" type="text">
                      <label for="CONTACTNO" generated="true" class="error" style="display: inline;">This field is required.</label>
                 </td>
           </tr>
           <tr>
                 <td class="">
                      <label for="LANDLINETNO"><span class="required">LANDLINE No</span></label>
                      <input id="LANDLINENO" name="LANDLINENO" class="text required number error" minlength="10" type="text">
                 </td>
           </tr>
           <tr>
                 <td class="">
                      <label for="EMAIL"><span class="required">Email</sp an></label >
                      <input id="EMAIL" name="EMAIL" class="text required email error" type="text"><label for="EMAIL" generated="true" class="error" style="display: inline;">This field is required.</label>
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="Edu"><span class="norequired">Select Your Higher Education</span></label>
                      <select id="Edu" name="Edu" class="text norequired" onchange="others1(); return false;">
                            <option value="">-- Select --</option>
                            <option value="Matric">Matric</opt ion>
<option value="10+2(Medical)">10+2 (Medical)< /option>
<option value="10+2(N.Medical)">10 +2(N.Medic al)</optio n>
<option value="10+2(Any Stream)">10+2(Any Stream)</option>
<option value="ITI">ITI</option>
<option value="Diploma in Engg.">Diploma in Engg.</option>
<option value="Graduation(Any Stream)">Graduation(Any Stream)</option>
<option value="Graduation any Stream">Graduation any Stream</option>
<option value="B. Sc (N.Medical)">B. Sc (N.Medical)</option>
<option value="B.Sc(Medical)">B.Sc (Medical)< /option>
<option value="B.Sc(Pharmacy)">B.S c(Pharmacy )</option>
<option value="B.Sc(Any Other)">B.Sc(Any Other)</option>
<option value="B.Tech/BE">B.Tech/B E</option>
<option value="Any Other">Any Other</option>
                      </select>
                      <div id="otherdiv1" style="visibility:hidden;d isplay:non e;">
                            <label for="Edu"><span class="norequired">If Other</span></label>
                            <input id="OTHER2" name="OTHER2" class="text norequired" type="text" >
                            </div>
                 </td>
           </tr>
      <tr>
                 <td class="">
<label for="per1"><span class="norequired">Result Status</span></label>
<input type="radio" name="res" value="Awaited" checked="checked" onclick="document.getEleme ntById('re p2').style .display=' none';"> Awaited<input type="radio" name="res" value="Passed" onclick="document.getEleme ntById('re p2').style .display=' block';"> Passed
<br>
<div id="rep2" style="display:none">
<label for="per" ><span class="norequired">Persent age</span> </label>
<input id="per" name="per" class="text norequired" type="text" >
</div>
                 </td>
           </tr>     Â
</tbody></table>
</fieldset>
<br>
<fieldset>
<legend><b>Course Interested In </b></legend>
<br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="DType"><span class="norequired">Course Type</span></label>
                      <select id="DType" name="DType" class="text norequired" onchange="oth();">
                            <option value="">-- Select --</option>
                            <option value="Diploma" >Diploma Courses</option>
                            <option value="Grad">Graduation Courses</option>
                            <option value="PostGrad">Post Graduation Courses</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<br />
<fieldset id="Diploma">
      <legend><b>Options after Xth (You can select multiple choices)</b></legend><br>
     Â
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="DCOURSE"><span class="norequired">Diploma Course</span></label>
                      <select id="DCOURSE" name="DCOURSE" class="text norequired" multiple="">
                            <option value="Computer Science Engineering (CSE)">Computer Science Engineering (CSE)</option>
<option value="Mechanical Engineering (ME)">Mechanical Engineering (ME)</option>
<option value="Electronics and Communication Engineering (ECE)">Electronics and Communication Engineering (ECE)</option>
<option value="Civil Engineering (CE)">Civil Engineering (CE)</option>
<option value="Electrical Engineering (EE)">Electrical Engineering (EE)</option>
<option value="Automobile Engineering(AME)">Automobi le Engineering(AME)</option>
<option value="Mechanical Engineering (Tool &Â Die Specialization)">Mechanica l Engineering (Tool &Â Die Specialization)</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<fieldset id="Grad">
      <legend><b>Options after XIIth (You can select multiple choices)</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="GCOURSE"><span class="norequired">Graduat e Course</span></label>
                      <select id="GCOURSE" name="GCOURSE" class="text norequired" multiple="">
                            <option value="Computer Science Engineering (CSE)">Computer Science Engineering (CSE)</option>
<option value="Mechanical Engineering (ME)">Mechanical Engineering (ME)</option>
<option value="Electronics and Communication Engineering (ECE)">Electronics and Communication Engineering (ECE)</option>
<option value="Electrical and Electronics Engineering (EEE)">Electrical and Electronics Engineering (EEE)</option>
<option value="Civil Engineering (CE)">Civil Engineering (CE)</option>
<option value="Computer Science and Communication Engineering (CCE)">Computer Science and Communication Engineering (CCE)</option>
<option value="Electrical Engineering (EE)">Electrical Engineering (EE)</option>
<option value="Automobile Engineering(AME)">Automobi le Engineering(AME)</option>
<option value="Chemical Engineering (CHE)">Chemical Engineering (CHE)</option>
<option value="Petrochem &Â Petroleum Refinery Engineering (PPRE)">Petrochem &Â Petroleum Refinery Engineering (PPRE)</option>
<option value="BCA">BCA</option>
<option value="B. Arch.">B. Arch.</option>
<option value="B.Sc Hotel Management &Â Catering Technology (HMCT)">B.Sc Hotel Management &Â Catering Technology (HMCT)</option>
<option value="B.Sc -Airlines, Tourism &Â Hospitality Management (ATHM)">B.Sc -Airlines, Tourism &Â Hospitality Management (ATHM)</option>
<option value="BSc. A&MT">BSc. A&MT</option>
<option value="BBA">BBA</option>
<option value="B.Com (Honours)">B.Com (Honours)</option>
<option value="BSc. Bio-Tech.">BSc. Bio-Tech.</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<fieldset id="PostGrad">
      <legend><b>Options after Graduation(You can select multiple choices)</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="PGCOURSE"><span class="norequired">Post Graduate Course</span></label>
                      <select id="PGCOURSE" name="PGCOURSE" class="text norequired" multiple="">
                      <option value="MCA (Integrated)  ">MCA (Integrated)  </option>
<option value="B. Hotel Mgmt &Â Catering Technology + MBA (Integrated)">B. Hotel Mgmt &Â Catering Technology + MBA (Integrated)</option>
<option value="BBA+MBA (5 Yrs.) Integrated ">BBA+MBA (5 Yrs.) Integrated </option>
                      <option value="Electrical Engineering (EE)">Electrical Engineering (EE)</option>
<option value="Computer Science Engineering (CSE)">Computer Science Engineering (CSE)</option>
<option value="Electronics and Communication Engineering (ECE)">Electronics and Communication Engineering (ECE)</option>
<option value="Information Technology (IT)">Information Technology (IT)</option>
<option value="Mechanical Engineering (ME)">Mechanical Engineering (ME)</option>
<option value="Electrical Engineering (EE) Honrs">Electrical Engineering (EE) Honrs</option>
<option value="Computer Science Engineering (CSE) Honrs">Computer Science Engineering (CSE) Honrs</option>
<option value="Electronics and Communication Engineering (ECE) Honrs">Electronics and Communication Engineering (ECE) Honrs</option>
<option value="Mechanical Engineering (ME) Honrs">Mechanical Engineering (ME) Honrs</option>
<option value="MCA ">MCA </option>
<option value="MBA (Tourism &Â Hospitality Management) ">MBA (Tourism &Â Hospitality Management) </option>
<option value="MSc. A&MT">MSc. A&MT</option>
<option value="MBA( Specialization: - Marketing/ Human Resource/ Finance/IT)">MBA( Specialization: - Marketing/ Human Resource/ Finance/IT)</option>
<option value="MBA Â (International Business)">MBA Â (International Business)</option>
<option value="MSc. Bio-Tech.">MSc. Bio-Tech.</option>
<option value="M.A. Punjabi">M.A. Punjabi</option>
<option value="M.A. English">M.A. English</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<br>
<fieldset>
      <legend><b>Your Achievements</b></legend>< br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="ACADEMIC"><span class="norequired">Academi c</span></ label>
                      <input id="ACADEMIC" name="ACADEMIC" class="text norequired" type="text">
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="SPORTS"><span class="norequired">Sports< /span></la bel>
                      <input id="SPORTS" name="SPORTS" class="text norequired" type="text">
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="ACTIVITY"><span class="norequired">Extra Curricular Activities</span></label>
                      <input id="ACTIVITY" name="ACTIVITY" class="text norequired" type="text">
                 </td>
           </tr>
</tbody></table>
</fieldset>
<fieldset>
      <legend><b>From where did you know about CGC/CU</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
                      <tbody><tr>
                            <td>
                      <label for="FROMWHERE"><span class="required"></span></ label>
                      <select id="FROMWHERE" name="FROMWHERE" class="text required error" onblur="others(); return false;" onchange="others(); return false;">
                            <option value="">-- Select --</option>
                            <option value="Newspaper Advt.">Newspaper Advt.</option>
                            <option value="Radio Advt.">Radio Advt.</option>
                            <option value="Online Search Engine">Online Search Engine</option>
                            <option value="Career Counselling Program">Career Counselling Program</option>
                            <option value="Others">Others</opt ion>
                      </select><label for="FROMWHERE" generated="true" class="error" style="display: inline;">This field is required.</label>
                            </td>
                      </tr>
                      <tr>
                            <td>
                            <div id="otherdiv" style="visibility:hidden;d isplay:non e;">
                            <label for="FROMWHERE"><span class="norequired">If Other</span></label>
                            <input id="OTHER1" name="OTHER1" class="text norequired" type="text" >
                            </div>
                            </td>
                      </tr>
                      </tbody></table>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<br>
<fieldset>
      <legend><b>Please calculate to enter the correct result</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
<label for="CAPTCHA1"><span class="norequired"><input type="text" name="captchaImage" size="6" value="5-5" disabled="disabled"></span ></label>
<input type="text" id="CAPTCHA1" name="CAPTCHA1" class="text required error" size="6" maxlength="6"><label for="CAPTCHA1" generated="true" class="error" style="display: inline;">This field is required.</label> Please enter the correct result.<br>
<label for="CAPTCHA1"><span class="norequired"> < /span></la bel>
<span id="ECAPTCHA1"></span>
</td>
           </tr>
</tbody></table>
</fieldset>
<br>
<input type="checkbox" onClick="document.login['S ubmit'].di sabled =(document.login['Submit'] .disabled) ? false : true"> I Hare by confirm that all the entries are correct.<br />
<input type="submit" value="Submit" name="Submit" style="cursor:hand;margin- left:0px;" disabled="disabled" >
</form>
</div><br>
                 </div>
       </div>
          Â
          Â
      </div>
</div>
</center><div id="LCS_336D0C35_8A85_403a _B9D2_65C2 92C39087_c ommunicati onDiv"></d iv></body> </html>
I am passing it to default2.aspx, but do i read the values.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Langua
<script type="text/javascript" async="" src="cgc_files/ga.js"></sc
<link href="cgc_files/style.css"
<link href="cgc_files/form-style
<script type="text/javascript" src="cgc_files/jquery.js">
<script type="text/javascript" src="cgc_files/jquery.vali
<link type="text/css" media="screen" rel="stylesheet" href="cgc_files/gallery.cs
<script type="text/javascript">
function slideSwitch() {
  var $active = $('#slideshow IMG.active');
  if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
  // use this to pull the images in the order they appear in the markup
  var $next =  $active.next().length ? $active.next()
    : $('#slideshow IMG:first');
  // uncomment the 3 lines below to pull the images in random order
  $active.addClass('last-act
  $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
      $active.removeClass('activ
    });
}
$(function() {
  setInterval( "slideSwitch()", 5000 );
});
</script>
<style type="text/css">
#slideshow {
  position:relative;
  height:312px;
  width:960px;
}
#slideshow IMG {
  position:absolute;
  top:0;
  left:0;
  z-index:8;
  opacity:0.0;
}
#slideshow IMG.active {
  z-index:10;
  opacity:1.0;
}
#slideshow IMG.last-active {
  z-index:9;
}
#Diploma,#Grad,#PostGrad
{visibility:hidden;
display:none;
}
</style>
<script type="text/javascript" src="chrome-extension://dl
<body><center>
<div class="main">
      <div class="container">
           Â
       <div class="flash">
                 <div class="text-other">
<script type="text/javascript">
function captcha()
{
      if(document.getElementById
      {
           document.getElementById("E
           document.getElementById("C
           return false;
      } else {
           document.getElementById("E
      }
}
function others()
{
      var data = document.getElementById('F
      if(data=="Others")
      {
           document.getElementById('o
           document.getElementById('o
      } else {
           document.getElementById('o
           document.getElementById('o
      }
}
function others1()
{
      var data = document.getElementById('E
      if(data=="Any Other")
      {
           document.getElementById('o
           document.getElementById('o
      } else {
           document.getElementById('o
           document.getElementById('o
      }
}
function oth()
{
      var data = document.getElementById('D
      if(data=="Diploma")
      {
           document.getElementById('D
           document.getElementById('D
           document.getElementById('G
           document.getElementById('G
           document.getElementById('P
           document.getElementById('P
      }
      else if (data=="Grad")
      {      document.getElementById('G
           document.getElementById('G
           document.getElementById('D
           document.getElementById('D
           document.getElementById('P
           document.getElementById('P
     Â
      }
      else if (data=="PostGrad")
      {      document.getElementById('P
           document.getElementById('P
           document.getElementById('D
           document.getElementById('D
           document.getElementById('G
           document.getElementById('G
     Â
      }
      function enableDisableButton() {
        button = document.getElementById("S
        button.disabled = !button.disabled;
    }
}
</script>
<br>
<h1>Admission Registration Form</h1>
<div id="matched">
<form id="login" class="form" onsubmit="return captcha();" Â action="Default2.aspx" method="post" name="login" runat="server">
<fieldset>
      <legend><b>Personal Details</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td class="">
                      <label for="NAME"><span class="required">Name</spa
                      <input id="NAME" name="NAME" class="text required error" type="text">
                      <label for="NAME" generated="true" class="error" style="display: inline;">This field is required.</label>
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="FNAME"><span class="norequired">Father'
                      <input id="FNAME" name="FNAME" class="text norequired" type="text">
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="ADDRESS"><span class="norequired">Address
                      <textarea rows="4" cols="35" id="ADDRESS" name="ADDRESS" class="text norequired"></textarea>
                 </td>
           </tr>
           <tr>
                 <td class="">
                      <label for="CONTACTNO"><span class="required">Contact No</span></label>
                      <input id="CONTACTNO" name="CONTACTNO" class="text required number error" minlength="10" type="text">
                      <label for="CONTACTNO" generated="true" class="error" style="display: inline;">This field is required.</label>
                 </td>
           </tr>
           <tr>
                 <td class="">
                      <label for="LANDLINETNO"><span class="required">LANDLINE No</span></label>
                      <input id="LANDLINENO" name="LANDLINENO" class="text required number error" minlength="10" type="text">
                 </td>
           </tr>
           <tr>
                 <td class="">
                      <label for="EMAIL"><span class="required">Email</sp
                      <input id="EMAIL" name="EMAIL" class="text required email error" type="text"><label for="EMAIL" generated="true" class="error" style="display: inline;">This field is required.</label>
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="Edu"><span class="norequired">Select Your Higher Education</span></label>
                      <select id="Edu" name="Edu" class="text norequired" onchange="others1(); return false;">
                            <option value="">-- Select --</option>
                            <option value="Matric">Matric</opt
<option value="10+2(Medical)">10+2
<option value="10+2(N.Medical)">10
<option value="10+2(Any Stream)">10+2(Any Stream)</option>
<option value="ITI">ITI</option>
<option value="Diploma in Engg.">Diploma in Engg.</option>
<option value="Graduation(Any Stream)">Graduation(Any Stream)</option>
<option value="Graduation any Stream">Graduation any Stream</option>
<option value="B. Sc (N.Medical)">B. Sc (N.Medical)</option>
<option value="B.Sc(Medical)">B.Sc
<option value="B.Sc(Pharmacy)">B.S
<option value="B.Sc(Any Other)">B.Sc(Any Other)</option>
<option value="B.Tech/BE">B.Tech/B
<option value="Any Other">Any Other</option>
                      </select>
                      <div id="otherdiv1" style="visibility:hidden;d
                            <label for="Edu"><span class="norequired">If Other</span></label>
                            <input id="OTHER2" name="OTHER2" class="text norequired" type="text" >
                            </div>
                 </td>
           </tr>
      <tr>
                 <td class="">
<label for="per1"><span class="norequired">Result Status</span></label>
<input type="radio" name="res" value="Awaited" checked="checked" onclick="document.getEleme
<br>
<div id="rep2" style="display:none">
<label for="per" ><span class="norequired">Persent
<input id="per" name="per" class="text norequired" type="text" >
</div>
                 </td>
           </tr>     Â
</tbody></table>
</fieldset>
<br>
<fieldset>
<legend><b>Course Interested In </b></legend>
<br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="DType"><span class="norequired">Course Type</span></label>
                      <select id="DType" name="DType" class="text norequired" onchange="oth();">
                            <option value="">-- Select --</option>
                            <option value="Diploma" >Diploma Courses</option>
                            <option value="Grad">Graduation Courses</option>
                            <option value="PostGrad">Post Graduation Courses</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<br />
<fieldset id="Diploma">
      <legend><b>Options after Xth (You can select multiple choices)</b></legend><br>
     Â
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="DCOURSE"><span class="norequired">Diploma
                      <select id="DCOURSE" name="DCOURSE" class="text norequired" multiple="">
                            <option value="Computer Science Engineering (CSE)">Computer Science Engineering (CSE)</option>
<option value="Mechanical Engineering (ME)">Mechanical Engineering (ME)</option>
<option value="Electronics and Communication Engineering (ECE)">Electronics and Communication Engineering (ECE)</option>
<option value="Civil Engineering (CE)">Civil Engineering (CE)</option>
<option value="Electrical Engineering (EE)">Electrical Engineering (EE)</option>
<option value="Automobile Engineering(AME)">Automobi
<option value="Mechanical Engineering (Tool &Â Die Specialization)">Mechanica
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<fieldset id="Grad">
      <legend><b>Options after XIIth (You can select multiple choices)</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="GCOURSE"><span class="norequired">Graduat
                      <select id="GCOURSE" name="GCOURSE" class="text norequired" multiple="">
                            <option value="Computer Science Engineering (CSE)">Computer Science Engineering (CSE)</option>
<option value="Mechanical Engineering (ME)">Mechanical Engineering (ME)</option>
<option value="Electronics and Communication Engineering (ECE)">Electronics and Communication Engineering (ECE)</option>
<option value="Electrical and Electronics Engineering (EEE)">Electrical and Electronics Engineering (EEE)</option>
<option value="Civil Engineering (CE)">Civil Engineering (CE)</option>
<option value="Computer Science and Communication Engineering (CCE)">Computer Science and Communication Engineering (CCE)</option>
<option value="Electrical Engineering (EE)">Electrical Engineering (EE)</option>
<option value="Automobile Engineering(AME)">Automobi
<option value="Chemical Engineering (CHE)">Chemical Engineering (CHE)</option>
<option value="Petrochem &Â Petroleum Refinery Engineering (PPRE)">Petrochem &Â Petroleum Refinery Engineering (PPRE)</option>
<option value="BCA">BCA</option>
<option value="B. Arch.">B. Arch.</option>
<option value="B.Sc Hotel Management &Â Catering Technology (HMCT)">B.Sc Hotel Management &Â Catering Technology (HMCT)</option>
<option value="B.Sc -Airlines, Tourism &Â Hospitality Management (ATHM)">B.Sc -Airlines, Tourism &Â Hospitality Management (ATHM)</option>
<option value="BSc. A&MT">BSc. A&MT</option>
<option value="BBA">BBA</option>
<option value="B.Com (Honours)">B.Com (Honours)</option>
<option value="BSc. Bio-Tech.">BSc. Bio-Tech.</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<fieldset id="PostGrad">
      <legend><b>Options after Graduation(You can select multiple choices)</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="PGCOURSE"><span class="norequired">Post Graduate Course</span></label>
                      <select id="PGCOURSE" name="PGCOURSE" class="text norequired" multiple="">
                      <option value="MCA (Integrated)  ">MCA (Integrated)  </option>
<option value="B. Hotel Mgmt &Â Catering Technology + MBA (Integrated)">B. Hotel Mgmt &Â Catering Technology + MBA (Integrated)</option>
<option value="BBA+MBA (5 Yrs.) Integrated ">BBA+MBA (5 Yrs.) Integrated </option>
                      <option value="Electrical Engineering (EE)">Electrical Engineering (EE)</option>
<option value="Computer Science Engineering (CSE)">Computer Science Engineering (CSE)</option>
<option value="Electronics and Communication Engineering (ECE)">Electronics and Communication Engineering (ECE)</option>
<option value="Information Technology (IT)">Information Technology (IT)</option>
<option value="Mechanical Engineering (ME)">Mechanical Engineering (ME)</option>
<option value="Electrical Engineering (EE) Honrs">Electrical Engineering (EE) Honrs</option>
<option value="Computer Science Engineering (CSE) Honrs">Computer Science Engineering (CSE) Honrs</option>
<option value="Electronics and Communication Engineering (ECE) Honrs">Electronics and Communication Engineering (ECE) Honrs</option>
<option value="Mechanical Engineering (ME) Honrs">Mechanical Engineering (ME) Honrs</option>
<option value="MCA ">MCA </option>
<option value="MBA (Tourism &Â Hospitality Management) ">MBA (Tourism &Â Hospitality Management) </option>
<option value="MSc. A&MT">MSc. A&MT</option>
<option value="MBA( Specialization: - Marketing/ Human Resource/ Finance/IT)">MBA( Specialization: - Marketing/ Human Resource/ Finance/IT)</option>
<option value="MBA Â (International Business)">MBA Â (International Business)</option>
<option value="MSc. Bio-Tech.">MSc. Bio-Tech.</option>
<option value="M.A. Punjabi">M.A. Punjabi</option>
<option value="M.A. English">M.A. English</option>
                      </select>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<br>
<fieldset>
      <legend><b>Your Achievements</b></legend><
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                      <label for="ACADEMIC"><span class="norequired">Academi
                      <input id="ACADEMIC" name="ACADEMIC" class="text norequired" type="text">
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="SPORTS"><span class="norequired">Sports<
                      <input id="SPORTS" name="SPORTS" class="text norequired" type="text">
                 </td>
           </tr>
           <tr>
                 <td>
                      <label for="ACTIVITY"><span class="norequired">Extra Curricular Activities</span></label>
                      <input id="ACTIVITY" name="ACTIVITY" class="text norequired" type="text">
                 </td>
           </tr>
</tbody></table>
</fieldset>
<fieldset>
      <legend><b>From where did you know about CGC/CU</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
                      <tbody><tr>
                            <td>
                      <label for="FROMWHERE"><span class="required"></span></
                      <select id="FROMWHERE" name="FROMWHERE" class="text required error" onblur="others(); return false;" onchange="others(); return false;">
                            <option value="">-- Select --</option>
                            <option value="Newspaper Advt.">Newspaper Advt.</option>
                            <option value="Radio Advt.">Radio Advt.</option>
                            <option value="Online Search Engine">Online Search Engine</option>
                            <option value="Career Counselling Program">Career Counselling Program</option>
                            <option value="Others">Others</opt
                      </select><label for="FROMWHERE" generated="true" class="error" style="display: inline;">This field is required.</label>
                            </td>
                      </tr>
                      <tr>
                            <td>
                            <div id="otherdiv" style="visibility:hidden;d
                            <label for="FROMWHERE"><span class="norequired">If Other</span></label>
                            <input id="OTHER1" name="OTHER1" class="text norequired" type="text" >
                            </div>
                            </td>
                      </tr>
                      </tbody></table>
                 </td>
           </tr>
</tbody></table>
</fieldset>
<br>
<fieldset>
      <legend><b>Please calculate to enter the correct result</b></legend><br>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <tbody><tr>
                 <td>
<label for="CAPTCHA1"><span class="norequired"><input type="text" name="captchaImage" size="6" value="5-5" disabled="disabled"></span
<input type="text" id="CAPTCHA1" name="CAPTCHA1" class="text required error" size="6" maxlength="6"><label for="CAPTCHA1" generated="true" class="error" style="display: inline;">This field is required.</label> Please enter the correct result.<br>
<label for="CAPTCHA1"><span class="norequired"> <
<span id="ECAPTCHA1"></span>
</td>
           </tr>
</tbody></table>
</fieldset>
<br>
<input type="checkbox" onClick="document.login['S
<input type="submit" value="Submit" name="Submit" style="cursor:hand;margin-
</form>
</div><br>
                 </div>
       </div>
          Â
          Â
      </div>
</div>
</center><div id="LCS_336D0C35_8A85_403a
ASKER
tx
Through a form  like this in html .
<form action="http://yourpage.aspx" method="post">
  <input name="TextBox1" type="text" value="" id="t1" />
  <input name="TextBox2" type="text" id="t2" />
  <input type="submit" name="Button1" value="Button" id="Button1" />
</form>
and on the aspx part (reading the values)
<%
response.write(request.que
response.write(" "Â & request.querystring("TextB
%>
hope that helps