[WebMethod] public static string GetData(int ID) { cmd.CommandText = "Select Name From table1 Where ID =" + ID; return cmd.ExecuteScalar().ToString(); }
<script type="text/javascript" language="javascript"> function GetDatainajax(node) { PageMethods.GetData(1,showdata); } function showdata(res) { var elem = document.getElementById("text"); elem.innerText = res; } <script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)