Ask a Question related to ASP.NET General, Design and Development.
-
kong #1
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
-
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... -
[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... -
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 -
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... -
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... -
CT #2
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



Reply With Quote

