Results 1 to 12 of 12

Thread: Web based application

Hybrid View

  1. #1
    New Member
    Join Date
    Jul 12
    Posts
    6

    Web based application

    Please what are the steps and requirements in using vb.net to design a web-based application (I dont mean website). But I mean that any user that have the application deployed on his system can access it any where in the world.

    Thanks

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,545

    Re: Web based application

    Welcome to the forum!

    You actually have several paths you can take to accomplish this.

    ASP.Net allows you to build a template for a webpage - that gets mixed with real data from a database, for instance (using code that runs on the web server itself). When the user changes something on the page there is a "postback" of the page to the server and the page gets re-generated - re-merged.

    There are ways to have "partial postbacks" so the whole page doesn't re-render. ASP.Net uses ajax (async calls) back to the server to accomplish this.

    For simple pages this technique works fine. I've used it in the past for several public facing database-driven web sites.

    As your pages get more complicated you will find that the ajax utilized by ASP.Net becomes a burden to debug and work with.

    Due to this fact I've started creating web pages that only load once - and then using the jQuery javascript library I "re-draw" the parts of the page based on user interaction. I've created all my own ajax calls back to "web methods" (running on the server) that take the "request" from the page and responds back with a JSON string of data that the jQuery/JS code on my page uses to re-draw whatever parts are affected.

    I prefer the control I have over the page using this method. Drawbacks are you need to really know javascript to make this fly.

    I'm sure there are other techniques that people will bring to this thread...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,545

    Re: Web based application

    Quote Originally Posted by szlamany View Post
    ...I'm sure there are other techniques that people will bring to this thread...
    @forumaccount - I knew others would be along...

    Tell me - what security is in place in WCF that was an improvement over web services.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    PowerPoster
    Join Date
    Mar 02
    Location
    UK
    Posts
    4,063

    Re: Web based application

    Quote Originally Posted by noblemfd View Post
    But I mean that any user that have the application deployed on his system can access it any where in the world.
    If the application is deployed on his system, it will be availabile to them. Possibly you mean that this application needs to communicate with data from a central server/database somewhere?

    If that is the case, you can use VPNs to save doing anything complicated. You could use a webservice instead to broker your requests and responses through to the server/database. You could even create an offline mirrored database if the structure allows.

  5. #5
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,545

    Re: Web based application

    Quote Originally Posted by Grimfort View Post
    ... Possibly you mean that this application needs to communicate with data from a central server/database somewhere?
    Wow - I didn't see that - you could be right.

    Are we talking about a winform or a webform here?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  6. #6
    New Member
    Join Date
    Jul 12
    Posts
    6

    Re: Web based application

    Quote Originally Posted by szlamany View Post
    Wow - I didn't see that - you could be right.

    Are we talking about a winform or a webform here?
    WinForm should be used, but the users should be able to view it either at home or in the office

  7. #7
    PowerPoster
    Join Date
    Mar 02
    Location
    UK
    Posts
    4,063

    Re: Web based application

    That does not really answer my question. If this is an application like say notepad, then you install it where-ever you need it. What does your application do that it requires the web?

  8. #8
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,545

    Re: Web based application

    web form - with web services - runs in a browser - nothing to install

    win form - with web services - runs an application that needs to be installed on every machine it runs on

    You need to give more basic details about what you are trying to accomplish.

    Is there a data store that is remote from the user that you want to talk to over the web?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  9. #9
    New Member
    Join Date
    Jul 12
    Posts
    6

    Re: Web based application

    Quote Originally Posted by szlamany View Post
    web form - with web services - runs in a browser - nothing to install

    win form - with web services - runs an application that needs to be installed on every machine it runs on

    You need to give more basic details about what you are trying to accomplish.

    Is there a data store that is remote from the user that you want to talk to over the web?
    It is Win Form with web service, and it runs an application that needs to be installed on every machine it runs on. Also, there is a data store(MS SQL SERVER)

  10. #10
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 09
    Location
    Canada
    Posts
    2,798

    Re: Web based application

    If you don't want to make a web page or web application, you should use WCF, web services are based off .NET 2.0 and have less features (biggest of those features it lacks is security).

  11. #11
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 09
    Location
    Canada
    Posts
    2,798

  12. #12
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,545

    Re: Web based application

    @forumaccount - thanks for those links.

    Seems the security is more "comprehensive" and the "throughput" potentially faster with WCF...

    I use web methods with asp.net and jquery/ajax from the browser side. Security and packaging the json data is all home-grown - I'm happy with what I've created to work with here - don't see any benefit to moving into wcf.

    Thanks again for the info!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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