Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
7
Reply
JavaScript runtime error
abdujalil chuliev
Jun 20 2017 11:23 AM
274
Reply
I have got an old asp.net webpage which is related a js and a cs files. When I press F5, VS is giving me error: "0x800a138f - JavaScript runtime error: Unable to get property 'txtAppl' of undefined or null reference." How can I solve this issue?
<
%@ Page
Language
=
"C#"
Debug
=
"true"
%
>
<
script
runat
=
"server"
src
=
"uzpo2003_tbbuild.cs"
>
</
script
>
<
html
>
<
head
>
<
title
>
</
title
>
<
script
type
=
"text/javascript"
src
=
"uzpo2003_client.js"
>
</
script
>
</
head
>
<
body
onload
=
"form_load();"
>
</
body
>
</
html
>
====================================================================
uzpo2003_client.js:
function form_load() {
if (
document.formSelect.txtAppl.value
== -99999999)
return null;
}
===================================================================
uzpo2003_tbbuild.cs:
public class TableBuild
{
System.Text.StringBuilder
output
=
new
System.Text.StringBuilder();
public string tblBuilder(string department, string un)
{
int
dept
=
int
.Parse(department);
string dom;
dom
=
"<center><table border='0' style='font:14pt;' bgcolor='#A7C7B7'>"
;
dom += "
<
input
type
=
'text'
name
=
'txtAppl'
value
=
''
size
=
16
id
=
'Text1'
>
</
P
>
";
return output.ToString();
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
7
)
Next Recommended Forum
need to open word file and edit and save in asp.net
Logging registered users