TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sonal malhotra
NA
410
52.4k
.getstudid(id, getstudidSucessCallback); is not function js
Apr 29 2019 5:51 AM
hi, how to solve these issue . i tried to find solution but it does not work
here is code below
<%@ Page Language=
"C#"
AutoEventWireup=
"true"
CodeBehind=
"WebFormstude.aspx.cs"
Inherits=
"webservicesstudent.WebFormstude"
%>
<!DOCTYPE html>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<script type =
"text/javascript"
>
function
getstudid() {
debugger
var
id = document.getElementById(
"txtid"
).value;
webservicesstudent.webservicesstudent.getstudid(id, getstudidSucessCallback);
}
function
getstudidSucessCallback(results)
{
debugger
document.getElementById(
"txtname"
).value = results[
"Name"
];
document.getElementById(
"txtgender"
).value = results[
"gender"
];
document.getElementById(
"txtmarks"
).value = results[
"totalMarks"
];
}
</script>
<title></title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<asp:ScriptManager ID=
"ScriptManager1"
runat=
"server"
>
<Services>
<asp:ServiceReference Path=
"~/webservicesstudent.asmx"
/>
</Services>
</asp:ScriptManager>
<table>
<tr>
<td> Id:
</td>
<td>
<asp:textbox ID =
"txtid"
runat=
"server"
></asp:textbox>
<input id=
"Button1"
type=
"button"
value=
"Getstudent"
onclick=
"getstudid()"
/>
</td>
</tr>
<tr>
<td> Name:
</td>
<td>
<asp:textbox Id =
"txtname"
runat=
"server"
></asp:textbox>
</td>
</tr>
<tr>
<td> Gender:
</td>
<td>
<asp:textbox ID =
"txtgender"
runat=
"server"
></asp:textbox>
</td>
</tr>
<tr>
<td> Marks:
</td>
<td>
<asp:textbox ID=
"txtmarks"
runat=
"server"
></asp:textbox>
</td>
</tr>
</table>
</form>
</body>
</html>
..please share idea
Reply
Answers (
1
)
[Intervention] Unable to preventDefault inside passive event
jquery auto width