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
abdujalil chuliev
NA
400
41.6k
JavaScript runtime error
Jun 20 2017 11:23 AM
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();
}
}
Reply
Answers (
7
)
need to open word file and edit and save in asp.net
Logging registered users