Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ASP.NET require ActiveX or not?

Tags:

asp.net

Does Asp.Net require ActiveX to make Ajax calls? I suspect it does because without setting "initialize and script activeX controls not marked as safe" in IE options ASP.NET UpdatePanels don't work. Am I correct?

A very important edit here

I haven't had any doubts about IE6 really. But I was able to reproduce this even on IE8 (Windows 7). Try setting IE security level to high. After that you will have to set:

  • Initialize and script activeX controls not marked as safe
  • Submit non-encrypted form data
  • Active scripting

to be able to use Asp.NET UpdatePanel. The later two are OK, but the first one... I remind you this is IE8

like image 274
Sergej Andrejev Avatar asked Mar 17 '10 15:03

Sergej Andrejev


4 Answers

You are getting this error because the scripts access the XMLHttpRequest object (for the AJAX requests), which was implemented via ActiveX in early versions of IE.

Because it's even checking for it, you get this alert. No it's not required for ASP.Net, but you may have issues with partial postbacks in early versions of IE if it's disabled.

like image 92
Nick Craver Avatar answered Nov 15 '22 09:11

Nick Craver


No, it doesn't.

like image 40
UpTheCreek Avatar answered Nov 15 '22 10:11

UpTheCreek


ActiveX and AJAX are completely unrelated. ActiveX is a mechanism to allow full-trust apps to be delivered over the web. AJAX stands for Asynchronous Javascript and XHTML, which is a way to update areas of a webpage without posting the whole thing back to the server.

like image 32
Dave Swersky Avatar answered Nov 15 '22 09:11

Dave Swersky


Ajax uses the XMLHTTPRequest object.

Before IE 7 IE used to implement this object using ActiveX.

Firefox, Safari etc implement this as a native object. Since IE7 the XMLHTTPRequest object is exposed as a native scripting object.

The activeX issue is a browser issue rather than an asp.net issue. So the answer is no.

like image 42
Joe Ratzer Avatar answered Nov 15 '22 09:11

Joe Ratzer