html form is not posting input control values on postback

gaipropsy

New Member
I have a very simple html page with one form and few controls in it. This html page is hosted on a server. When I post this form with some values in input fields it does not show input values in form post data.reuest body only has btn1=post other controls are not listed therebelow is the html :\[code\]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>test</title></head><body> <form id="form4" action="somePage.htm" method="post" > <input type="text" id="textMain1" value="" /> <input type="text" id="textMain2" value=""/> <input type="text" id="textMain3" value=""/> <input type="submit" id="btn1" name="btn1" /> </form></body></html>![enter image description here][2]\[/code\]These things I have already tried:-adding name and id attribute together to input control-adding runat=server in case (html page is written in VS IDE)-add enctype="multipart/form-data" to form -run it in chrome browser
 
Back
Top