Click here to Skip to main content
15,907,497 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNeed to show "Get directions", search nearby and Save to my maps on marker on google maps Pin
enjoycrack10-Nov-07 10:13
enjoycrack10-Nov-07 10:13 
QuestionError Reporting Pin
Sam Heller10-Nov-07 7:15
Sam Heller10-Nov-07 7:15 
QuestionProblem with Timer Control in AjaxControlToolkit Pin
morteza5710-Nov-07 6:44
morteza5710-Nov-07 6:44 
QuestionI'd like to use "smart client" for listing software in someone's computer. Pin
Real Coder10-Nov-07 5:43
Real Coder10-Nov-07 5:43 
AnswerRe: I'd like to use "smart client" for listing software in someone's computer. Pin
Michael Sync10-Nov-07 19:58
Michael Sync10-Nov-07 19:58 
QuestionIn XP works fine, W2000: Bad variable type! Pin
alexvw10-Nov-07 2:05
alexvw10-Nov-07 2:05 
AnswerRe: In XP works fine, W2000: Bad variable type! Pin
Michael Sync10-Nov-07 5:02
Michael Sync10-Nov-07 5:02 
GeneralRe: In XP works fine, W2000: Bad variable type! Pin
alexvw10-Nov-07 15:00
alexvw10-Nov-07 15:00 
Hi Michael,

1.The error is raised when I call a stored procedure.
2.when I started this project, ADODB is all I knew Frown | :( . By the time I discovered ADO.NET I already had over 100 rutines written with ADODB. I Will eventually update the code.

Here is the Code:

Public Function Get_TransDetails(ByVal iTransId As Long, ByRef TransData As String) As System.Text.StringBuilder<br />
        Dim Rs As New ADODB.Recordset()<br />
        Dim Cmd As New ADODB.Command()<br />
        Dim Str As New System.Text.StringBuilder()<br />
<br />
        Try<br />
            Verify_Connectivity()<br />
            Cmd.ActiveConnection = Con<br />
            Cmd.CommandType = ADODB.CommandTypeEnum.adCmdStoredProc<br />
            Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, , iTransId)) '<-the error happens here<br />
            Cmd.Parameters.Append(Cmd.CreateParameter("TransData", ADODB.DataTypeEnum.adVarChar, 2, 60, TransData))<br />
            Cmd.CommandText = "[QTransDetails]"<br />
            Rs.CursorType = 0 : Rs.LockType = 1 : Rs = Cmd.Execute()<br />
            While Not Rs.EOF<br />
                Str.Append(CType(Rs.Fields(0).Value, String).Replace(Chr(13), "") & Chr(10))<br />
                Rs.MoveNext()<br />
            End While<br />
            Rs.Close() : WagerData = Cmd.Parameters(1).Value<br />
            Return Str<br />
        Catch<br />
            Handle_Error(Err, "Get_TransDetails")<br />
        End Try<br />
    End Function


Please forgive my lack of knowledge. I have no idea what Authorization Manager is?

Again, this codes does not generate any errors when run on my XP computer, but fails when excuted in a W2000 machine. Apparently it has something to do with the Long - BigInt data types

Thanks for you time and patience.


Best Regards,
Alex.
GeneralRe: In XP works fine, W2000: Bad variable type! Pin
Michael Sync10-Nov-07 19:52
Michael Sync10-Nov-07 19:52 
GeneralRe: In XP works fine, W2000: Bad variable type! Pin
alexvw10-Nov-07 23:25
alexvw10-Nov-07 23:25 
GeneralRe: In XP works fine, W2000: Bad variable type! Pin
Michael Sync11-Nov-07 0:08
Michael Sync11-Nov-07 0:08 
QuestionHow to show header in DataList Pin
Kurian_Kurian10-Nov-07 0:50
Kurian_Kurian10-Nov-07 0:50 
AnswerRe: How to show header in DataList Pin
pmarfleet10-Nov-07 1:27
pmarfleet10-Nov-07 1:27 
QuestionOpen a new window Pin
.NET- India 10-Nov-07 0:01
.NET- India 10-Nov-07 0:01 
AnswerRe: Open a new window Pin
John-ph10-Nov-07 0:37
John-ph10-Nov-07 0:37 
Questionhow to add scroll bar to grid view (plz help with code) Pin
jagan1239-Nov-07 22:58
jagan1239-Nov-07 22:58 
AnswerRe: how to add scroll bar to grid view (plz help with code) Pin
Christian Graus9-Nov-07 23:28
protectorChristian Graus9-Nov-07 23:28 
AnswerRe: how to add scroll bar to grid view (plz help with code) Pin
Elegantly Wasted31-Jan-12 0:24
Elegantly Wasted31-Jan-12 0:24 
Questioncan i assign datatable to crystal reportt? Pin
dandamudi padma9-Nov-07 22:50
dandamudi padma9-Nov-07 22:50 
AnswerRe: can i assign datatable to crystal reportt? Pin
John-ph13-Nov-07 19:07
John-ph13-Nov-07 19:07 
QuestionShopping Cart Pin
danasegaranea9-Nov-07 21:47
danasegaranea9-Nov-07 21:47 
AnswerRe: Shopping Cart Pin
Christian Graus9-Nov-07 21:58
protectorChristian Graus9-Nov-07 21:58 
GeneralRe: Shopping Cart Pin
danasegaranea9-Nov-07 22:10
danasegaranea9-Nov-07 22:10 
GeneralRe: Shopping Cart Pin
Christian Graus9-Nov-07 22:51
protectorChristian Graus9-Nov-07 22:51 
GeneralRe: Shopping Cart Pin
danasegaranea9-Nov-07 22:53
danasegaranea9-Nov-07 22:53 

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.