R
Ramesh
hi,
I have some basic questions. Can anybody explain me the
following doubt:
1. In my asp page, right click and selected HTML source
code.
Added following method.
<script language="javascript">
private void Page_Load(object sender, System.EventArgs
e)
{
alert('hi');
}
when i run the application, i am not getting the
message "hi" and it is not displaying any error message.
but, if righ client and added this source code in "View
code" then i am getting this message. why? If we write
Page_Load method in HTML source code, then it won't
execute??
2. What is the difference between writting the above
method in HTML source code and View Code. What is the
purpose of View code? any why i am not getting error
message or "hi" message?
Thanks,
Ramesh
I have some basic questions. Can anybody explain me the
following doubt:
1. In my asp page, right click and selected HTML source
code.
Added following method.
<script language="javascript">
private void Page_Load(object sender, System.EventArgs
e)
{
alert('hi');
}
when i run the application, i am not getting the
message "hi" and it is not displaying any error message.
but, if righ client and added this source code in "View
code" then i am getting this message. why? If we write
Page_Load method in HTML source code, then it won't
execute??
2. What is the difference between writting the above
method in HTML source code and View Code. What is the
purpose of View code? any why i am not getting error
message or "hi" message?
Thanks,
Ramesh