473,602 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Smartnavigation disables ActiveX Events (OWC)

Hi all,

I am wondering if the following is a known problem, and if there are any
known solutions.

Thanks in advance,
Kevin Ortman
[ Problem ]
Enabling Smartnavigation on my webform disables client side activex events
(specifically OWC 10 events like BeforeContextMe nu) after postback.

[ Repro ]
1) Create a webform with a button and a spreadsheet control.
2) In the webform's Page_Load() event, use RegisterClientS criptBlock() to
register vbscript events.
-- When the page is first loaded, the events are fired and the script is
executed.
4) Click on the button to generate a postback.
-- When the page is re-loaded, the events are not fired and the script is
not executed.

[ Environment ]
..NET Framework 1.0 / Windows XP

[ Sample ]
<%@ Page language="c#" Codebehind="Web Form3.aspx.cs" AutoEventWireup ="false"
Inherits="Desig nerTest.WebForm 3" SmartNavigation =true %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING= "GridLayout ">
<form id="WebForm3" method="post" runat="server">
<OBJECT id="MyGridContr ol" style="Z-INDEX: 101; LEFT: 219px; POSITION:
absolute; TOP: 117px" classid="clsid: 0002E551-0000-0000-C000-000000000046"
VIEWASTEXT>
</OBJECT>
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 61px; POSITION:
absolute; TOP: 124px" runat="server" Text="Button"></asp:Button>
</form>
</body>
</HTML>
protected System.Web.UI.W ebControls.Butt on Button1;

private void Page_Load(objec t sender, System.EventArg s e)
{
System.Text.Str ingBuilder scriptBuilder = new
System.Text.Str ingBuilder();

scriptBuilder.A ppend("<script language=vbscri pt>\n");

scriptBuilder.A ppend("Sub MyGridControl_L oadCompleted() \n");
scriptBuilder.A ppend(" me.ActiveSheet. Protection.Enab led = -1 \n");
scriptBuilder.A ppend(" me.DisplayColum nHeadings = 0 \n");
scriptBuilder.A ppend(" me.DisplayRowHe adings = 0 \n");
scriptBuilder.A ppend("End Sub\n");

scriptBuilder.A ppend("</script>\n");

Page.RegisterCl ientScriptBlock (this.UniqueID + "_GridEvent s",
scriptBuilder.T oString());
}

Nov 18 '05 #1
0 1106

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1269
by: Jerad Rose | last post by:
I've done some investigating about various problems with the SmartNavigation feature. It seems to me that the general consensus is to avoid SmartNavigation like the plague. It's really a shame that such a potentially handy feature has been rendered useless because of all of the bugs surrounding it. Has Microsoft acknowledged the existence of the many bugs with SmartNavigation? If so, have we any indication as to if and when these will...
2
1057
by: Chris Liang | last post by:
I added "SmartNavigation" directive to the Page tag and it works(keeping page position) on my local machine. However, the code does not work in our hosting server. I means the page position is not kept. Does anybody have any point? Thanks
3
1622
by: gp | last post by:
Hello, I´m trying to use Activex but without using a Global varible or internal member of the class. Is that posible? I must do it with a code but without a control. I ´ll apreciate if anybody can help me with this.
6
8039
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply added a reference to the corresponding COM component. This this only
7
5804
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the ActiveX control doesn't even seem to get loaded. (On the failing machines, if we try and debug down to where the ActiveX DLL method is invoked, both Visual Studio and IE hang.)
3
2780
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window (not web-based or part of current application) brought to the front and focused (findwindow api) and have the button scrape the contents of the focused window so the contents can be parsed and entered into the web application. Ideally, I would...
13
2715
by: Wade Yin | last post by:
Hi, If I can write a ActiveX component that can support socket communication in webpage, that will make browser have strongger capability to communicate with different clients, but not only can exchange info with the web server. I don't familarize with C# programming and here I just want to know is that possible to implemented?
3
4965
by: eusebiu | last post by:
Hello... I am developing a MFC ActiveX that I want to self register when IE promts to Install it. I have added the VALUE "OLESelfRegister", "\0" to activex's resource file (.rc) and I have STDAPI DllRegisterServer(void) method in my code. When I build my ActiveX project, the ActiveX is registered fine and
3
1855
by: tuvman | last post by:
We are developing a web application. Our web app is a heavy client- our existing .net app exposed as an activex control running in IE. We need the activex to be able to access our remote database server when hosted within a browser from anywhere.Originally we were planning on using port forwarding...and having the externalip:databaseport forward from the web server to the database server. But our customer's network admin says this is not...
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.