Results 1 to 8 of 8

Thread: [2.0] webApplication and windowsApplication

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    [2.0] webApplication and windowsApplication

    hi there..
    right now, i got a web application written in asp.net using c# behind page.
    i also write a windows application written using c#.
    the problem is : is it possible to combine the two of them ? (the web and the windows application together in one project )

    Actually, i just need to get data from the windows application to be used in my web.

    thx..

    i'm using vs 2005. and 2.0 net framework

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2.0] webApplication and windowsApplication

    You can store the data in a database, then you can read from both windowsApp and WebApp
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    Re: [2.0] webApplication and windowsApplication

    erm..
    actually, the windows application retrieve data from database and modify the data. After it is modified, i need to display it in the web application.
    Supposed that making another new table to store modified data is not an option here, is there other any way to do this ?

    is it possible for windows application to store the data in session variables , so that web application can read it?

    thx for da reply :

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] webApplication and windowsApplication

    This all sounds rather odd. Why would someone be running a Windows app and a Web app that access the same data at the same time? Why wouldn't you just be using one or the other?

    You cannot have two applications in one project. Each project is compiled to a single assembly and each assembly is either an application or a library. You can have more than one project in a single solution, but solutions are only a loose association of projects to afford some conveniences. It doesn't really bind the projects together.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2.0] webApplication and windowsApplication

    I think you should sort out which user model you are going to implement before implementing it.

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    Re: [2.0] webApplication and windowsApplication

    it's just because i already got a system written in a web application, and now i want to combine it with the windows application that i've just created. If the data between Web and Windows applications is not interchangeable, maybe the option available here is only rewrite my Windows application in the form of Web application.
    am i right ?
    is there any other option ? (besides creating a new table inside my Database to store the data temporarely)

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2.0] webApplication and windowsApplication

    Well, you shouldn't be running a WinForms app to facilitate a WebForms one. If your code is already written you can salvage it and chuck it into a Web app. Or if you can't be bothered doing that you could reference your Winforms app as a library. That's not as neat as having it all in the one project though.

  8. #8
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: [2.0] webApplication and windowsApplication

    Quote Originally Posted by ini_hendry
    it's just because i already got a system written in a web application, and now i want to combine it with the windows application that i've just created. If the data between Web and Windows applications is not interchangeable, maybe the option available here is only rewrite my Windows application in the form of Web application.
    am i right ?
    is there any other option ? (besides creating a new table inside my Database to store the data temporarely)
    Yeah you should do the editing of data in your web apps to make it neat rather than creating a windows apps.

    Just my 2 cents.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width