run and exit application

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default run and exit application

    i'm very new to asp.net...
    i'm facing problem since i want to run the application...

    i put my connection string (strConnect) in a module (moduleConnect)
    then when my first form load, i want to straight away connect to db.
    so i write"moduleConnect.strConnect) in page_load like this:

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
    System.EventArgs) Handles MyBase.Load
    moduleConnect.strConnect()
    End Sub

    when i use datareader,
    sqlCommand = New SqlCommand(queryString, moduleConnect.strConnect)
    the "moduleConnect.strConnect" always wrong...... WHY? what should i
    put?

    by the way, i have 1 button to exit application.. in vb.net, i write
    application.exit.... wat is the command in asp.net?


    thx
    regards,
    kong
    kong Guest

  2. Similar Questions and Discussions

    1. Myspace Exit
      my browser closes out whenever I go to a different page from the page with music on it. ut comes up with an error report and does this in firefox...
    2. [PHP] PHP if exit Q
      You should fix your logic, or put additional if in. Or you can use while and break, but this is somewhat sick: while( condition ) { // code...
    3. exit window XP
      I want create a shortcut for exit windows XP when i click. But i don't know how to do it? Could you help me Thankyou
    4. exit windows XP
      Hi Go to a command prompt and type "shutdown /?" - without the quotes. Will "Minh Hien" <dm_hien@yahoo.com> wrote in message...
    5. How to exit a Cursor
      Hi, I have two cursors - an outer and an inner. In the inner cursor, I check for a condition, and if the condition is met, I want get out of...
  3. #2

    Default Re: run and exit application

    Hmm, I'm not sure if I follow you all the way.

    So, you have a module with the strConnect variable declared as a String or
    is it a method creating the connection string? Can you show us the code?

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "kong" <kongkong99@yahoo.com> wrote in message
    news:cc50806d.0307310211.6dd98cac@posting.google.c om...
    > i'm very new to asp.net...
    > i'm facing problem since i want to run the application...
    >
    > i put my connection string (strConnect) in a module (moduleConnect)
    > then when my first form load, i want to straight away connect to db.
    > so i write"moduleConnect.strConnect) in page_load like this:
    >
    > Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
    > System.EventArgs) Handles MyBase.Load
    > moduleConnect.strConnect()
    > End Sub
    >
    > when i use datareader,
    > sqlCommand = New SqlCommand(queryString, moduleConnect.strConnect)
    > the "moduleConnect.strConnect" always wrong...... WHY? what should i
    > put?
    >
    > by the way, i have 1 button to exit application.. in vb.net, i write
    > application.exit.... wat is the command in asp.net?
    >
    >
    > thx
    > regards,
    > kong

    CT Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139