Click here to Skip to main content
15,926,857 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: append the listitems as a comma seperated string Pin
n_gchaitra2-Aug-07 22:09
n_gchaitra2-Aug-07 22:09 
AnswerRe: append the listitems as a comma seperated string Pin
#realJSOP1-Aug-07 3:24
professional#realJSOP1-Aug-07 3:24 
GeneralRe: append the listitems as a comma seperated string Pin
jc.net1-Aug-07 3:40
jc.net1-Aug-07 3:40 
QuestionConverting code Pin
SirNathaniel1-Aug-07 2:03
SirNathaniel1-Aug-07 2:03 
AnswerRe: Converting code Pin
BasharatAli1-Aug-07 2:18
BasharatAli1-Aug-07 2:18 
GeneralRe: Converting code Pin
SirNathaniel1-Aug-07 6:53
SirNathaniel1-Aug-07 6:53 
AnswerRe: Converting code Pin
Dave Doknjas1-Aug-07 14:04
Dave Doknjas1-Aug-07 14:04 
QuestionCannot open any more Tables Pin
Khan.Bangash1-Aug-07 1:15
Khan.Bangash1-Aug-07 1:15 
Hi all, I have a page which works fine on my local computer, but when I upload it to my server it gives the following error. Can any one tell me the reason of that error and possible solution for that.

System.Data.OleDb.OleDbException: Cannot open any more tables. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.OleDb.OleDbCommand.ExecuteReader() at cust_order.custOrdDes() in c:\domains\etradehouse.com\wwwroot\code\adm\cust_det\adm_order_det.aspx.vb:line 2090

and the code of that sub is given belown

Public Sub custOrd()
customerAsc.Clear()
customer.Clear()
Try
If Conn.State <> 0 Then
Conn.Close()
End If
Conn.Open()
SelectQuery = "select order_id from cust_order"
command = New OleDbCommand(SelectQuery, Conn)
total = command.ExecuteReader()
While total.Read
ordAsc.Add(total.GetValue(0))
End While
Dim i As Integer
For i = 0 To ordAsc.Count - 1
SelectQuery = "SELECT customers.customer_id,customers.customer_type FROM customers INNER JOIN cust_order ON customers.customer_id=cust_order.customer_id WHERE cust_order.order_id=" & ordAsc(i) & ""
command = New OleDbCommand(SelectQuery, Conn)
total = command.ExecuteReader()
While total.Read()
cstAsc.Add(total.GetValue(0))
typAsc.Add(total.GetValue(1))
End While
Next
total.Close()
total = Nothing
Dim k As Integer
For k = 0 To cstAsc.Count - 1
If typAsc(k) = 1 Then
SelectQuery = "Select comp_name, customer_id from biz_cust_extra where customer_id = " & cstAsc(k)
command = New OleDbCommand(SelectQuery, Conn)
total = command.ExecuteReader()
While total.Read()
If Not total.IsDBNull(0) Then
customerAsc.Add(total.GetValue(0) & "," & total.GetValue(1))
End If
End While
Else
SelectQuery = "Select fname, lname, customer_id from customers where customer_id = " & cstAsc(k)
command = New OleDbCommand(SelectQuery, Conn)
total = command.ExecuteReader()
While total.Read()
If Not total.IsDBNull(0) Then
customerAsc.Add(total.GetValue(0) & " " & total.GetValue(1) & "," & total.GetValue(2))
End If
End While
End If
Next
total.Close()
total = Nothing
Dim customer As New ArrayList
Dim cust As Array
customerAsc.Sort()
Dim j As Integer
For j = 0 To customerAsc.Count - 1
cust = Split(customerAsc(j).ToString, ",")
customer.Add(cust(1))
Next
Dim l As Integer
Dim str As String = ""
For l = 0 To customer.Count - 1
If l = 0 Then
str &= "txtSearch=" & customer(l)
Else
str &= "&txtSearch=" & customer(l)
End If
Next
Response.Redirect("/code/adm/cust_det/adm_order_det.aspx?index=32&" & str)
Catch ex As Exception
Response.Write(ex.ToString)
Finally
Conn.Close()
End Try
End Sub



the line 2090 is underline in above code.

Pls help me its very urgent.

Thanks in Advance.
AnswerRe: Cannot open any more Tables Pin
_mubashir1-Aug-07 1:59
_mubashir1-Aug-07 1:59 
GeneralRe: Cannot open any more Tables Pin
Khan.Bangash1-Aug-07 2:04
Khan.Bangash1-Aug-07 2:04 
GeneralRe: Cannot open any more Tables Pin
_mubashir1-Aug-07 2:13
_mubashir1-Aug-07 2:13 
GeneralRe: Cannot open any more Tables Pin
Khan.Bangash1-Aug-07 2:22
Khan.Bangash1-Aug-07 2:22 
GeneralRe: Cannot open any more Tables Pin
_mubashir1-Aug-07 2:27
_mubashir1-Aug-07 2:27 
GeneralRe: Cannot open any more Tables Pin
Khan.Bangash1-Aug-07 2:41
Khan.Bangash1-Aug-07 2:41 
GeneralRe: Cannot open any more Tables Pin
_mubashir1-Aug-07 5:34
_mubashir1-Aug-07 5:34 
GeneralRe: Cannot open any more Tables Pin
Khan.Bangash1-Aug-07 5:53
Khan.Bangash1-Aug-07 5:53 
GeneralRe: Cannot open any more Tables Pin
_mubashir1-Aug-07 6:01
_mubashir1-Aug-07 6:01 
Questionexception classes Pin
pavanteja1-Aug-07 0:53
pavanteja1-Aug-07 0:53 
AnswerRe: exception classes Pin
kubben1-Aug-07 1:52
kubben1-Aug-07 1:52 
GeneralRe: exception classes Pin
pavanteja1-Aug-07 2:10
pavanteja1-Aug-07 2:10 
QuestionPage Unload ... Pin
itzmevishu1-Aug-07 0:49
itzmevishu1-Aug-07 0:49 
AnswerRe: Page Unload ... Pin
Christian Graus1-Aug-07 1:26
protectorChristian Graus1-Aug-07 1:26 
GeneralRe: Page Unload ... Pin
itzmevishu1-Aug-07 6:11
itzmevishu1-Aug-07 6:11 
Questioncomes to home page Pin
Raghvendra Kumar Roy1-Aug-07 0:30
Raghvendra Kumar Roy1-Aug-07 0:30 
AnswerRe: comes to home page Pin
Christian Graus1-Aug-07 0:34
protectorChristian Graus1-Aug-07 0:34 

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.