473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to Fire the events of DLL



I have created a window application which has two grid

we drag and drop from one grid to other.

tn i changed that window application into DLL.
and called that dll in a web page.
grid are displaying with record but.

how to fire drag and drop event from web page to Dll.

Any help please

Regards
Amit

Nov 17 '05 #1
3 2801
VJ
If I understand correct you want to send a notification from the Webpage to
the dll.. This is normally done through properties...and the reverse of DLL
to Webpage will be done through events.. but, you can send event
notifications from Component Higher in the order to ones lower in the
order.. How to do this... as below..

public class DLLClass
{

private System.Web.Forms.Button btn1;

public System.Web.Forms.Button SetBtn
{
btn1 = value;
btn1.Click+=new EventHandler(btn_click)
}

private void btn_click(obecjt sender, EventArgs e )
{
//Click Event... (A)... recivied in Dll
}

}
public class WePage : System.Web.Forms
{

private System.Web.Forms.Button button1;
button1.click+=new EventHandler(tb_Click);
//Some Method that invokes the Dlls class...

private void Method1()
{
DLLClass dlCls = new DLLClass()
dlCls.SetBtn = button1;
}

private void tb_Click(object sender, EventArge e)
{
//Click Event... (A)... send to Dll
}

}

The code might not be syntax perfect (and might have typos)... but hope you
get the idea...Also, somebody correct me if I am wrong or if this is a bad
practice to do..
VJ

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...


I have created a window application which has two grid

we drag and drop from one grid to other.

tn i changed that window application into DLL.
and called that dll in a web page.
grid are displaying with record but.

how to fire drag and drop event from web page to Dll.

Any help please

Regards
Amit

Nov 17 '05 #2
Vj there is error in this line

private void Method1()
{
DLLClass dlCls = new DLLClass()
dlCls.SetBtn = button1;
}
"button1" Can not impliset convert window control to web control

Nov 17 '05 #3
VJ

Sorry about that.. I also just realized that you are saying you need the
drag drop within the DLL... so that is part of your window... Why would that
come from the Webpage.., The drag and drop event should occur in the DLL
even if you embbed that in a Web page as a DLL or Control.... Can you give a
sample of what you are doing?

VJ
"VJ" <vi********@yahoo.com> wrote in message
news:um**************@TK2MSFTNGP15.phx.gbl...
If I understand correct you want to send a notification from the Webpage
to the dll.. This is normally done through properties...and the reverse of
DLL to Webpage will be done through events.. but, you can send event
notifications from Component Higher in the order to ones lower in the
order.. How to do this... as below..

public class DLLClass
{

private System.Web.Forms.Button btn1;

public System.Web.Forms.Button SetBtn
{
btn1 = value;
btn1.Click+=new EventHandler(btn_click)
}

private void btn_click(obecjt sender, EventArgs e )
{
//Click Event... (A)... recivied in Dll
}

}
public class WePage : System.Web.Forms
{

private System.Web.Forms.Button button1;
button1.click+=new EventHandler(tb_Click);
//Some Method that invokes the Dlls class...

private void Method1()
{
DLLClass dlCls = new DLLClass()
dlCls.SetBtn = button1;
}

private void tb_Click(object sender, EventArge e)
{
//Click Event... (A)... send to Dll
}

}

The code might not be syntax perfect (and might have typos)... but hope
you get the idea...Also, somebody correct me if I am wrong or if this is a
bad practice to do..
VJ

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...


I have created a window application which has two grid

we drag and drop from one grid to other.

tn i changed that window application into DLL.
and called that dll in a web page.
grid are displaying with record but.

how to fire drag and drop event from web page to Dll.

Any help please

Regards
Amit


Nov 17 '05 #4

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

Similar topics

0
by: Sagaert Johan | last post by:
Hi I have a problem with an activeX control in a c# application, the events do not fire when i deploy the app to another PC When used in a web page, the events fire ok, so i guess the activeX...
5
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover...
2
by: Sam Miller | last post by:
Hi, I have a button event that won't fire. I left it on Friday and it worked fine. I came back in on Monday and it won't fire. I tried putting another button and just putting a...
2
by: Mark Broadbent | last post by:
I initially posted a problem in the aspnet.webcontrols and have now found why the problem existed. Just thought I'd post this to see if this was perhaps a known issue. Scenario: I have a simple...
2
by: Ofer | last post by:
I finally learned that DataGrid1.EditItemIndex = {row I want} -1 DataGrid1.DataBind() will make that row get to edit mode. I am stiil looking for ways to programticaly do other things: 1) show...
3
by: Beavis | last post by:
I hate to repost a message, but I am still at the same point where I was when I originally posted, and hopefully someone else will see this one... Ok, so I have gone off and documented the...
4
by: Ty Salistean | last post by:
So, here is a wierd question that we have been discussing for a bit now. Does an event fire even though nothing is subscribed to listen to the event? For instance, does the Click event of a...
3
by: Mike Cain | last post by:
Hi I have a JS library that I want others in my company to use that uses AttachEvent (etc) to add a method to the onLoad event so that it is called. Using this approach of course is good because...
19
by: Daniela Roman | last post by:
Hello, I try to fire an event under a button click event and maybe anybody can give a clue please. I have let's say a WEB grid with PageIndexChanged event: private void...
0
by: BFlaherty_2003 | last post by:
I have a web application that has a number of pages that have GridViews, and linkbuttons. I have tested this app on my own machine, and it works great. Next step was to deploy it to our QA server...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...

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.