Hello to everyone,
I have web site ASP.NET 2.0
I have dedicated server for that site it is very fast calling from the
internal LAN
When we call from internet is fine except one page
In that page I have 8 DropDownList(s)
if I disable the code for populate DDlist the page is fine
we have same page from old web site ASP 3.0 and it if fine same code
What I do wrong????
Each dropdown list has 3500 rows
I think I optimize and call only one time Database…
I test and disable JavaScript is not that…
if I enable only one DDlist is acceptable but is slow
Here is my code
Public Sub buildStockStyleOptions()
Dim conn As New OracleConnection(dbConnection)
Dim query As String = "select TRIM(style) AS STYLE,TRIM(des) as
DESCRIPTION from (select style, FIRST_VALUE(description) OVER (partition by
style ORDER BY style ASC) AS DES from style) group by style,des "
Dim dt As DataTable = New DataTable("StockSTYLEs")
Try
conn.Open()
Dim adap As New OracleDataAdapter(query, conn)
adap.Fill(dt)
Catch ex As Exception
' make log entry for the error
cmpError.MakeLogEntry(ex, "error comes from function
buildStockStyleOptions PDRPageControlFromStock.ascx.vb")
Response.Redirect("?pg=DBError")
Finally
conn.Close()
End Try
Dim row As DataRow
row = dt.NewRow
row("DESCRIPTION") = ""
row("STYLE") = "(pick a style from this list)"
' dt.Rows.Add(row)
dt.Rows.InsertAt(row, 0)
ddStyleList1.DataSource = dt
ddStyleList1.DataValueField = "DESCRIPTION"
ddStyleList1.DataTextField = "STYLE"
ddStyleList1.DataBind()
ddStyleList1.Attributes.Add("onChange", "return check1();")
ddStyleList2.DataSource = dt
ddStyleList2.DataValueField = "DESCRIPTION"
ddStyleList2.DataTextField = "STYLE"
ddStyleList2.DataBind()
ddStyleList2.Attributes.Add("onChange", "return check2();")
ddStyleList3.DataSource = dt
ddStyleList3.DataValueField = "DESCRIPTION"
ddStyleList3.DataTextField = "STYLE"
ddStyleList3.DataBind()
ddStyleList3.Attributes.Add("onChange", "return check3();")
ddStyleList4.DataSource = dt
ddStyleList4.DataValueField = "DESCRIPTION"
ddStyleList4.DataTextField = "STYLE"
ddStyleList4.DataBind()
ddStyleList4.Attributes.Add("onChange", "return check4();")
ddStyleList5.DataSource = dt
ddStyleList5.DataValueField = "DESCRIPTION"
ddStyleList5.DataTextField = "STYLE"
ddStyleList5.DataBind()
ddStyleList5.Attributes.Add("onChange", "return check5();")
ddStyleList6.DataSource = dt
ddStyleList6.DataValueField = "DESCRIPTION"
ddStyleList6.DataTextField = "STYLE"
ddStyleList6.DataBind()
ddStyleList6.Attributes.Add("onChange", "return check6();")
ddStyleList7.DataSource = dt
ddStyleList7.DataValueField = "DESCRIPTION"
ddStyleList7.DataTextField = "STYLE"
ddStyleList7.DataBind()
ddStyleList7.Attributes.Add("onChange", "return check7();")
ddStyleList8.DataSource = dt
ddStyleList8.DataValueField = "DESCRIPTION"
ddStyleList8.DataTextField = "STYLE"
ddStyleList8.DataBind()
ddStyleList8.Attributes.Add("onChange", "return check8();")
dt.Dispose()
End Sub
Yes disable (ViewState + databind) cost less as size of the page 40%
But still is very, very slow
How in ASP same dropdownlist printed repeated 8 times takes 7 sec
In ASP used Session to store data for the DDlist
My dropdown when I databind is 187kb by 8 times I generate 1.756kb page L
This became the worst in my live
10x
val 2 1220
On Mar 29, 5:22 pm, bluelabs <bluel...@discussions.microsoft.com>
wrote:
Hello to everyone,
I have web site ASP.NET 2.0
I have dedicated server for that site it is very fast calling from the
internal LAN
When we call from internet is fine except one page
In that page I have 8 DropDownList(s)
if I disable the code for populate DDlist the page is fine
we have same page from old web site ASP 3.0 and it if fine same code
What I do wrong????
Each dropdown list has 3500 rows
I think I optimize and call only one time Database...
I test and disable JavaScript is not that...
if I enable only one DDlist is acceptable but is slow
Here is my code
Public Sub buildStockStyleOptions()
Dim conn As New OracleConnection(dbConnection)
Dim query As String = "select TRIM(style) AS STYLE,TRIM(des) as
DESCRIPTION from (select style, FIRST_VALUE(description) OVER (partition by
style ORDER BY style ASC) AS DES from style) group by style,des "
Dim dt As DataTable = New DataTable("StockSTYLEs")
Try
conn.Open()
Dim adap As New OracleDataAdapter(query, conn)
adap.Fill(dt)
Catch ex As Exception
' make log entry for the error
cmpError.MakeLogEntry(ex, "error comes from function
buildStockStyleOptions PDRPageControlFromStock.ascx.vb")
Response.Redirect("?pg=DBError")
Finally
conn.Close()
End Try
Dim row As DataRow
row = dt.NewRow
row("DESCRIPTION") = ""
row("STYLE") = "(pick a style from this list)"
' dt.Rows.Add(row)
dt.Rows.InsertAt(row, 0)
ddStyleList1.DataSource = dt
ddStyleList1.DataValueField = "DESCRIPTION"
ddStyleList1.DataTextField = "STYLE"
ddStyleList1.DataBind()
ddStyleList1.Attributes.Add("onChange", "return check1();")
ddStyleList2.DataSource = dt
ddStyleList2.DataValueField = "DESCRIPTION"
ddStyleList2.DataTextField = "STYLE"
ddStyleList2.DataBind()
ddStyleList2.Attributes.Add("onChange", "return check2();")
ddStyleList3.DataSource = dt
ddStyleList3.DataValueField = "DESCRIPTION"
ddStyleList3.DataTextField = "STYLE"
ddStyleList3.DataBind()
ddStyleList3.Attributes.Add("onChange", "return check3();")
ddStyleList4.DataSource = dt
ddStyleList4.DataValueField = "DESCRIPTION"
ddStyleList4.DataTextField = "STYLE"
ddStyleList4.DataBind()
ddStyleList4.Attributes.Add("onChange", "return check4();")
ddStyleList5.DataSource = dt
ddStyleList5.DataValueField = "DESCRIPTION"
ddStyleList5.DataTextField = "STYLE"
ddStyleList5.DataBind()
ddStyleList5.Attributes.Add("onChange", "return check5();")
ddStyleList6.DataSource = dt
ddStyleList6.DataValueField = "DESCRIPTION"
ddStyleList6.DataTextField = "STYLE"
ddStyleList6.DataBind()
ddStyleList6.Attributes.Add("onChange", "return check6();")
ddStyleList7.DataSource = dt
ddStyleList7.DataValueField = "DESCRIPTION"
ddStyleList7.DataTextField = "STYLE"
ddStyleList7.DataBind()
ddStyleList7.Attributes.Add("onChange", "return check7();")
ddStyleList8.DataSource = dt
ddStyleList8.DataValueField = "DESCRIPTION"
ddStyleList8.DataTextField = "STYLE"
ddStyleList8.DataBind()
ddStyleList8.Attributes.Add("onChange", "return check8();")
dt.Dispose()
End Sub
Yes disable (ViewState + databind) cost less as size of the page 40%
But still is very, very slow
How in ASP same dropdownlist printed repeated 8 times takes 7 sec
In ASP used Session to store data for the DDlist
My dropdown when I databind is 187kb by 8 times I generate 1.756kb page L
This became the worst in my live
10x
val
8 DropDownList X 3500 rows = are you kidding?
Anyway, it might be that the real problem is not in the DropDownList
Control. It might be a problem with OracleDataAdapter.Fill. Maybe you
can try to count the time it needs to execute that method.
Also try to use a native .NET provider from Oracle. You will need to
download and install it.
No the problem is : generate size of DDL is 178kb by 8 the page size is 1.7MB
it is crazy
I disable populate DDLists and is work fine
val This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bruce Davis |
last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded
tkinter gui application. The problem appears to be a deadlock condition
when a child thread pops up a
Pmw dialog window in...
|
by: Kostatus |
last post by:
I have a virtual function in a base class, which is then overwritten by a
function of the same name in a publically derived class. When I call the
function using a pointer to the derived class...
|
by: Peter Olcott |
last post by:
www.halting-problem.com
|
by: Jon Davis |
last post by:
If I have a class with a virtual method, and a child class that overrides
the virtual method, and then I create an instance of the child class AS A
base class...
BaseClass bc = new ChildClass();...
|
by: Ammar |
last post by:
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the end
user can send a comment about the article.
The problem is:
I the comment length...
|
by: Lupakkiotto |
last post by:
Hi!, I am using framework 2.0 and Visual Visual Web Developer Express.
In a gridview, when it is in editmode, I have a dropdownlist in a
templatefield. The problem is that it show always the first...
|
by: Dany |
last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
|
by: Mike Collins |
last post by:
I cannot get the correct drop down list value from a drop down I have on my
web form. I get the initial value that was loaded in the list.
It was asked by someone else what the autopostback was...
|
by: ndhoan19 |
last post by:
I have two dropdowlist. dropdowlist1 and dropdowlist2. dropdowlist2 get data of dropdowlist1 .Example. data of dropdowlist2 is
English
Span
Japan
Other
Now. I want to English, Span,Japan not...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |