how to Fire the events of DLL

  • Thread starter Thread starter sonu
  • Start date Start date
S

sonu

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
 
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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top