Results 1 to 2 of 2

Thread: Creating ASP's with VB.NET Windows Form?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89

    Creating ASP's with VB.NET Windows Form?

    Hello,

    I was wondering if there is a way to create a long URL using ASP's query strings BUT in a VB.NET Windows Application.

    In that URL it will have an encoded SQL query & Username / Password.

    Do I add a component? Reference?

    After the URL is created in the VB.NET windows form, pass that URL (maybe a string variable) to an ASP page? Then open Internet Explorer.

    So far, I have some code to open up IE.

    VB Code:
    1. Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
    2.         Try
    3.             Process.Start("http://localhost/weblink")
    4.         Catch ex As Exception
    5.             MsgBox("Can't load Web page" & vbCrLf & ex.Message)
    6.         End Try
    7.     End Sub

    As for the syntax to create a query string in a Windows Form not a Web Form and encoding the UserName/Password, I'm foggy about that. Any samples?

    Thanks for your assistance!

    Chris

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well, you might want to post a few examples of the type of URL strings you want to build.

    Any component used in AsP.Net is available through Windows applications simply by:

    1) referencing System.Web in your project references
    2) Imports System.Web at the top of any class that uses it (unless you like typing System.Web all the time)

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