Articles → JavaScript → _doPostBack in JavaScript

_doPostBack in JavaScript





















Picture showing the rendered html of the web page without _dopostback function

Click to Enlarge









Picture showing the rendered html of the web page without _dopostback function

Click to Enlarge











Picture showing the rendered html of the web page with _dopostback function

Click to Enlarge











<script language = "javascript"
type = "text/javascript">
  function ClickButton() {

    return false;
  } </script>




Button1.Attributes.Add("onclick", "return ClickButton();");








_doPostBack("TextBox1", "Test");




<script language = "javascript"
type = "text/javascript">
  function ClickButton() {
    _doPostBack("TextBox1", "Test");
    return false;
  } </script>











Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 21, 2010

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250