Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Shared dll between Asp.net and Windows Form

Reply
Thread Tools

Shared dll between Asp.net and Windows Form

 
 
Alphapage
Guest
Posts: n/a
 
      08-06-2008
Hello,

I have a dll that I want to share between Asp.Net and Windows Form.
The dll code is something like this:
public List<string> list;
public void Init()
{
list=new List<string>();
}

My Asp.net website initializes the generic list on page load, and when I
click the button on my webpage, I add a new string to the list
(list.Add("test")). No problem.

Now, from my Windows Form app I use a foreach to display all the string in
the list and here comes the problem.
I can't access the list that was running by my asp.net website from my
Windows form app.

How can I share that between Asp.Net and Windows Form ?

Thanks in advance for your help.
 
Reply With Quote
 
 
 
 
Munna
Guest
Posts: n/a
 
      08-06-2008
Hi,

Asp.net application and you winform application running in two
different app domain..
this not likely that you will access list of asp.net process from a
windows client directly..
make a webclient request to the asp.net application to a perticular
handler and handler should return the list as a string array
parse the request and make a list in winform client...

regards

Munna
 
Reply With Quote
 
 
 
 
Jay
Guest
Posts: n/a
 
      08-06-2008
"Munna" <> wrote in message
news:3695c2fe-0038-4082-979b-...
> Hi,
>
> Asp.net application and you winform application running in two
> different app domain..
> this not likely that you will access list of asp.net process from a
> windows client directly..
> make a webclient request to the asp.net application to a perticular
> handler and handler should return the list as a string array
> parse the request and make a list in winform client...
>
> regards
>
> Munna



or persist the list items data in a database and have both apps query the
database for the items.

Jay

 
Reply With Quote
 
Alphapage
Guest
Posts: n/a
 
      08-06-2008
Thanks,

The only way would be to do some kind of interprocess connection using IPC
channel or query a db or query the webpage as you suggest

Am I right ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
Why does Ruby use both tcl83.dll and tk83.dll (instead of just tk83.dll)? H. Simpson Ruby 4 08-03-2004 04:45 PM
mprapi.dll --> samlib.dll --> ntdll.dll issue. Some1 Computer Support 4 04-05-2004 02:02 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments