.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Microsoft JScript runtime error
 

Microsoft JScript runtime error

Hi Friends,

the code is stopped running at this exception

Microsoft JScript runtime error: 'this.style' is null or not an object

this exception occurs at every postbag event in a default.Aspx page.

This occurs dynamic.

Any suggestions and ideas are deeply appreciated.

Regards,
Siva
Siva Sankar R
which browser are you using?
Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]
Ganesh Ranganathan - Bangalore, India
Hi Ganesh,

I am using Internet explorer.

Regards,
Siva
Siva Sankar R
Can you show your code?

I suspect you might be trying to access the style property on an object that does not have one.
Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]
Ganesh Ranganathan - Bangalore, India
Hi Ganesh,

<

form runat="server" onsubmit="javascript:this.style.cursor = 'wait';ShowXHideY('PleaseWait', 'MainTable');" id="Default">

this is the line in which we got error below

Microsoft JScript runtime error: 'this.style' is null or not an object

Regards,
Siva

Siva Sankar R
Can you try putting the onsubmit code in an seperate function
form runat="server" onsubmit="Form1_onsubmit()" id="Default">

function Form1_onsubmit()
{
var _frmObj = document.getElementById('Default');
_frmObj.style.cursor = 'wait';
ShowXHideY('PleaseWait', 'MainTable');
}

Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]
Ganesh Ranganathan - Bangalore, India
form runat="server" onsubmit="javascript:this.style.cursor = 'wait';ShowXHideY('PleaseWait', 'MainTable');" id="Default"<br/>

其中,Onsubmit有意义吗?Form提交时,传递数据到服务器端。页面空白,也就是说时间很短。根本看不到这些数据....
董文
他为的是不出异常,不是看到数据..
有人?充满技术的生活枯燥无味.. 我笑他们不懂.因为只有技术才能充实生?. 学习就像生活,都需要善于总结,才能发现问题,取得进步.. 生活中充满了数学算式与结?只要我们善于观察和思?.
韩懿?獨翏

You can use google to search for other answers

Custom Search

More Threads

• Syntax to pass the value of a textbox from an edittemplate to a javascript function
• Application is running only using portnumber not using localhost
• OnKeyPress
• How to catch TAB key press with JScript?
• What is Pascal format ? Please help me.
• Iframe Reading & Writing
• Passing parameters and Relative coordinates in JScript
• td overflow
• Error when using two Required Field Validator
• Determine if Javascript is enabled or disabled on the browser..( ! browser.javascript || hiddenfields)