Click here to Skip to main content
15,911,711 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem in migrating from asp to asp.net 1.x [modified] Pin
divyesh143229-Jun-07 3:09
divyesh143229-Jun-07 3:09 
GeneralRe: problem in migrating from asp to asp.net 1.x Pin
Not Active29-Jun-07 3:23
mentorNot Active29-Jun-07 3:23 
GeneralRe: problem in migrating from asp to asp.net 1.x Pin
Narendra Mohan29-Jun-07 4:18
Narendra Mohan29-Jun-07 4:18 
GeneralRe: problem in migrating from asp to asp.net 1.x Pin
Narendra Mohan29-Jun-07 5:45
Narendra Mohan29-Jun-07 5:45 
AnswerRe: problem in migrating from asp to asp.net 1.x Pin
Not Active29-Jun-07 3:17
mentorNot Active29-Jun-07 3:17 
GeneralRe: problem in migrating from asp to asp.net 1.x Pin
Narendra Mohan29-Jun-07 4:05
Narendra Mohan29-Jun-07 4:05 
GeneralRe: problem in migrating from asp to asp.net 1.x Pin
Not Active29-Jun-07 4:25
mentorNot Active29-Jun-07 4:25 
AnswerRe: problem in migrating from asp to asp.net 1.x Pin
doWhileSomething29-Jun-07 14:39
doWhileSomething29-Jun-07 14:39 
Narendra Mohan wrote:
<%
Dim gi_LoginOptional As Object
Dim displayHeader As Object
Dim cmd As ADODB.Command
Dim con4 As ADODB.Connection
Dim rs1 As ADODB.Recordset
Dim g_IsLoggedIn As Boolean
Dim displayFooter() As Object
Dim i As Integer
Dim g_HasLoggedIn As Boolean
Dim rs2 As ADODB.Recordset
Dim writeOneOption As Object
Dim MemberOpen() As Object
Dim loginURL As String
Dim headAdd As String
%>


Your going to want to make at the very least a simple connection class and do away with any includes for connection objects.

Some of the above code (the ones I can make out) would then be re-written something like this:

Dim cmd As New SqlCommand
Dim con4 As New SqlConnection
Dim rs1 As SqlDataReader

Assuming your using MSSQL for a DB, otherwise you will need to use Oracle, MySql or OLEDB for Access.

You don't need to write a connection class, you could write it out manually each time, but this is not a good practice and will make managing things more complex in the log run.

Hope this helps.


QuestionFont Problem Pin
divyesh143229-Jun-07 2:49
divyesh143229-Jun-07 2:49 
AnswerRe: Font Problem Pin
cschuman29-Jun-07 9:53
cschuman29-Jun-07 9:53 
QuestionLifetime of an object in ASP.NET Pin
www.Developerof.NET29-Jun-07 2:42
www.Developerof.NET29-Jun-07 2:42 
AnswerRe: Lifetime of an object in ASP.NET Pin
Sylvester george29-Jun-07 2:52
Sylvester george29-Jun-07 2:52 
GeneralRe: Lifetime of an object in ASP.NET Pin
www.Developerof.NET29-Jun-07 3:05
www.Developerof.NET29-Jun-07 3:05 
GeneralRe: Lifetime of an object in ASP.NET Pin
Not Active29-Jun-07 3:12
mentorNot Active29-Jun-07 3:12 
GeneralRe: Lifetime of an object in ASP.NET Pin
www.Developerof.NET29-Jun-07 3:35
www.Developerof.NET29-Jun-07 3:35 
QuestionBiztalk, pls, answer. pls. I have created a flatfile schema Pin
indian14329-Jun-07 2:27
indian14329-Jun-07 2:27 
AnswerRe: Biztalk, pls, answer. pls. I have created a flatfile schema Pin
Not Active29-Jun-07 2:36
mentorNot Active29-Jun-07 2:36 
Questionincorrect syntax error..., Pin
Member 387988129-Jun-07 2:20
Member 387988129-Jun-07 2:20 
AnswerRe: incorrect syntax error..., Pin
kubben29-Jun-07 2:25
kubben29-Jun-07 2:25 
GeneralRe: incorrect syntax error..., Pin
Member 387988129-Jun-07 2:28
Member 387988129-Jun-07 2:28 
GeneralRe: incorrect syntax error..., Pin
kubben29-Jun-07 2:31
kubben29-Jun-07 2:31 
GeneralRe: incorrect syntax error..., Pin
Member 387988129-Jun-07 2:37
Member 387988129-Jun-07 2:37 
AnswerRe: incorrect syntax error..., Pin
doWhileSomething29-Jun-07 14:53
doWhileSomething29-Jun-07 14:53 
QuestionIdentifier Expected Error Pin
vijay_8329-Jun-07 2:01
vijay_8329-Jun-07 2:01 
AnswerRe: Identifier Expected Error Pin
Vasudevan Deepak Kumar29-Jun-07 2:10
Vasudevan Deepak Kumar29-Jun-07 2:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.