Computing.Net > Forums > Programming > VB.Net and ASP.Net same interface

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VB.Net and ASP.Net same interface

Reply to Message Icon

Original Message
Name: kaepeekay
Date: October 7, 2004 at 20:52:41 Pacific
Subject: VB.Net and ASP.Net same interface
OS: win 2000
CPU/Ram: 512 MB
Comment:

I would like to have an application which contains database/data layer and user interface(3-tier). In Head Office, the application willl run in VB.Net. When they connect from remote places, we would like to provide them with ASP.Net Interface to be run in Browser. Is it possible to have the same kind of user interface for both forms. The deployment time should be minimized. Is there a possibility to develop a component to act as an user interface in both Windows Forms and Web Forms. If possible, where can I get the samples or get the ideas.


Report Offensive Message For Removal


Response Number 1
Name: SN
Date: October 8, 2004 at 06:56:23 Pacific
Reply: (edit)

Although both UIs are written in VB.net, the event handling and state management in ASP.NET is very different from that in regular VB.NET apps. Not to mention that in ASP.NET the UI is written in html (kind of), which isn't done in VB.NET.

We do things pretty similar to what you're describing where I work, and if you have objects that encapsulate your data and do most of the work on them, creating two UIs to use those objects really isn't too bad. Just put as much as you can into a class library that both the windows app and the web app can use.

Luck,
-SN


Report Offensive Follow Up For Removal

Response Number 2
Name: Chi Happens
Date: October 8, 2004 at 11:20:50 Pacific
Reply: (edit)

Actually you can have the same interface. If you use a Web Service in .net. Then you can create a Windows application that connects to the web service. So both of your apps can be exactly the same.

Chi Happens


Report Offensive Follow Up For Removal

Response Number 3
Name: Chi Happens
Date: October 8, 2004 at 11:23:21 Pacific
Reply: (edit)

oh, i forgot to add that I can provide working example if you want.

Chi


Report Offensive Follow Up For Removal

Response Number 4
Name: SN
Date: October 8, 2004 at 13:24:42 Pacific
Reply: (edit)

So you create the web service...That will allow the programming interface to the data to remain the same and provide access to the data or any other kind of object you can represent in soap, but how does that allow the web forms and windows forms to share the user interface? (ie textboxes, labels, and such)

Chi knows more about this stuff than I do, so I don't doubt he knows what he's talking about...But I wouldn't mind seeing a link or something describing the process.

I did find this article on SmartClients, which may fit the bill.
http://www.developer.com/net/asp/article.php/10917_3369601_1

-SN


Report Offensive Follow Up For Removal

Response Number 5
Name: kaepeekay
Date: October 8, 2004 at 22:12:54 Pacific
Reply: (edit)

Thanks for the responses. I would like to have a sample. You can send it to me email address

1. kaepeekay@hotmail.com
2. kaepeekay@yahoo.com

KPK


Report Offensive Follow Up For Removal


Response Number 6
Name: Chi Happens
Date: October 11, 2004 at 07:32:22 Pacific
Reply: (edit)

SN,
As I have said before...I sometimes fail to clairfy my posts correctly.

SN is correct, the web interface will be different from the windows interface.

But, if you use a webservice, you can use a Windows interface for remote and local access.

I will send you an example right now.

I will rar it up, so please get yer hands on WinRAR.

And for anyone else interested you can find it here:
http://www.evolutionsoftwarellc.com/downloads/WebSVSExample.rar

Hope This Helps
Chi


Report Offensive Follow Up For Removal

Response Number 7
Name: SN
Date: October 11, 2004 at 08:26:30 Pacific
Reply: (edit)

Ah, I get it now. So you use the same windows forms application for both remote and local access, and leave the browser out of it completely. That would work nicely, and deployment time would definitely be minimized.

-SN


Report Offensive Follow Up For Removal

Response Number 8
Name: Chi Happens
Date: October 12, 2004 at 11:03:06 Pacific
Reply: (edit)

Exactly.

Thanks for bearing with my poor explanatory skills. :)

Chi


Report Offensive Follow Up For Removal






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software