Click here to Skip to main content
15,923,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to show message box when data is in gridview on temporary basis. Pin
$unil Dhiman10-Dec-07 13:31
$unil Dhiman10-Dec-07 13:31 
GeneralRe: how to show message box when data is in gridview on temporary basis. Pin
$unil Dhiman10-Dec-07 17:11
$unil Dhiman10-Dec-07 17:11 
QuestionHow to display a message box when record is temporary stored in session/grid view Pin
Rajesh_K_Sharma10-Dec-07 13:24
Rajesh_K_Sharma10-Dec-07 13:24 
AnswerRe: How to display a message box when record is temporary stored in session/grid view Pin
Michael Sync10-Dec-07 15:39
Michael Sync10-Dec-07 15:39 
GeneralRe: How to display a message box when record is temporary stored in session/grid view Pin
Rajesh_K_Sharma10-Dec-07 17:07
Rajesh_K_Sharma10-Dec-07 17:07 
GeneralProblem with the page's style Pin
Payal_e_m10-Dec-07 12:00
Payal_e_m10-Dec-07 12:00 
GeneralRe: Problem with the page's style Pin
Michael Sync10-Dec-07 15:24
Michael Sync10-Dec-07 15:24 
QuestionHow to access API functions in a C++ ActiveX Control from ASP.NET Page using either C# or VB Pin
Member 253045010-Dec-07 10:22
Member 253045010-Dec-07 10:22 
I have spun my wheels already. I have also looked pretty much everywhere for my specific use case but I have not been able to find anything that helps me. Please help.

I have an ASP.NET page embedding an unmanaged C++ OCX within the page using the following code.

[code]

<%@ Page AspCompat="true" Language="C#" AutoEventWireup="true" CodeBehind="Anywhere.aspx.cs" Inherits="Anywhere_Example_CSharp.AnywhereExample" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>

<script runat="server" language="C#">
public void btn1_Click(object sender, EventArgs e)
{
mycontrol.AddUnconnected(10, 10, 0, 0);
}
</head>


<body>
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Add Person" OnClick="btn1_Click" />
<OBJECT id="mycontrol" style="WIDTH: 773px; HEIGHT: 488px" classid=clsid:F3AA9E66-A723-11D2-A17D-0060975A5AFA>
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="20452">
<PARAM NAME="_ExtentY" VALUE="12912">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
<asp:Label id="lblMessage" runat="server" />
<asp:PlaceHolder id="phMyPlaceHolder" runat="server" />
</form>
</body>
[/code]

The control get displayed properly. The trouble comes when I try to get access to the API functions in the OCX with ID "mycontrol". What I wanna do is call the method mycontrol.AddUnconnected(0, 0, 0, 0) on the OCX. Unfortunately this is not working.

In fact if I have function

[code]
public void btn1_Click(object sender, EventArgs e)
{
mycontrol.AddUnconnected(10, 10, 0, 0);
}
[/code]

not commented out as shown, the page is not displayed whereas if I comment out the line

[code]
mycontrol.AddUnconnected(10, 10, 0, 0);
[/code]

The page is displayed and the control works fine, except I cannot call the API functions.

How do I make the control that has been embedded inside a page using the <object> tag as shown above accessible to my server side controls / and server side scripts?

Your help is appreciated.

Thanks,

Melody
GeneralRe: How to access API functions in a C++ ActiveX Control from ASP.NET Page using either C# or VB Pin
Melody12-Dec-07 12:19
Melody12-Dec-07 12:19 
Questionwriting at server side?? Pin
Muammar©10-Dec-07 8:45
Muammar©10-Dec-07 8:45 
GeneralRe: writing at server side?? Pin
Christian Graus10-Dec-07 9:11
protectorChristian Graus10-Dec-07 9:11 
GeneralRe: writing at server side?? Pin
Muammar©10-Dec-07 21:55
Muammar©10-Dec-07 21:55 
GeneralAccessing property of inner class with &lt;%# bind() %&gt; Pin
Federico Orlandini10-Dec-07 8:31
Federico Orlandini10-Dec-07 8:31 
GeneralRe: Accessing property of inner class with &lt;%# bind() %&gt; Pin
Christian Graus10-Dec-07 9:12
protectorChristian Graus10-Dec-07 9:12 
QuestionRe: Accessing property of inner class with &lt;%# bind() %&gt; Pin
Federico Orlandini11-Dec-07 3:15
Federico Orlandini11-Dec-07 3:15 
QuestionLocation of the web-services DLL Pin
c_sk10-Dec-07 7:30
c_sk10-Dec-07 7:30 
GeneralRe: Location of the web-services DLL Pin
Michael Sync10-Dec-07 15:18
Michael Sync10-Dec-07 15:18 
GeneralRe: Location of the web-services DLL Pin
c_sk10-Dec-07 16:12
c_sk10-Dec-07 16:12 
GeneralRe: Location of the web-services DLL Pin
Michael Sync10-Dec-07 16:27
Michael Sync10-Dec-07 16:27 
GeneralRe: Location of the web-services DLL Pin
c_sk10-Dec-07 18:32
c_sk10-Dec-07 18:32 
GeneralRe: Location of the web-services DLL Pin
c_sk11-Dec-07 1:01
c_sk11-Dec-07 1:01 
Questionusing sleep function in vb.net Pin
solarthur0110-Dec-07 6:14
solarthur0110-Dec-07 6:14 
GeneralRe: using sleep function in vb.net Pin
Christian Graus10-Dec-07 8:30
protectorChristian Graus10-Dec-07 8:30 
GeneralRe: using sleep function in vb.net Pin
solarthur0110-Dec-07 13:05
solarthur0110-Dec-07 13:05 
GeneralRe: using sleep function in vb.net Pin
Michael Sync10-Dec-07 15:15
Michael Sync10-Dec-07 15:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.