|
[quote]Is your site bigger than CP ? Does it have more users than CP ? CP is written in ASP.NET, using server controls.[/quote]
No, these intranet sites are no where near as big codeproject and they max out around 4000 concurrent connections. My original question wasn't legitimate as I didn't understand how JavaScript partial postback (AJAX) works but after reading some more and talking to others I now understand that JavaScript can query, parse, etc xml from a remote resource (usually generated by a script url) and the xml that's transferred to the browser is send as a result of the database logic in your query script.
I'm at a loss here in determining why our sites are performing so poorly. As I stated before, I have reduced the scope of my stress testing to a single TreeView that's populated from a SQL Query and even with nothing but a treeview on the page I still get TTFB values of approx 6000ms and TTLB of 30000ms. If I replace the ASP.NET tree with a DHTML tree, I get a TTLB that's reduced by a few seconds but even that is unacceptably slow. So for a single page, regardless of the load (and I've tested up to 50 concurrent threads) it takes almost 6 seconds to send the first byte to the users browser and 30 more seconds to send the last byte.
To this point I have enabled caching, reduced the page size, enabled http compression, disabled viewstate and session state, and ensured the pages are batch compiled. I suppose that last thing to do is to run some analysis on the SQL queries used to populate the treeView, perhaps they're the problem (but I'm using NHibernate as the data layer, which is supposed to already be optimized).
Thanks guys, I'm going to continue this testing (I'm using the old Microsoft Web Application Stress Tool; is there a more modern, free stress testing tool?) and I'll update this thread if I get this page to respond in the way our business rules dictate (no longer than 3 seconds to TTFB and no longer than 6 seconds to TTLB).
Thanks
|
|
|
|
|
I m working on a website. The treeview is necessity for my application. Basic treeview i can use.but i want do some attractive plzz guys help me.
|
|
|
|
|
If you are able to use third party control toolkit, I would suggest you to have Infragistics NetAdvantage 2007 controls.
You can have the best looking tree view in your application in website.
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
can u send the link of that site and some example of that page. plzzz
|
|
|
|
|
www.infragistics.com/ [^]
Here is the link....
Download it may take some time.....After installation you can have a look at the samples provided. and easily go for making a treeview...
One more question...? If the application you are building is for any client or other company purpose, you cannot go for these Third party controls. They wont be allowing you to install these on their server to support the application.
If its for personal use, You can go for that and even better GUI providing controls like RADControls are also available here...
www.telerik.com/products/aspnet-ajax.aspx [^]
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Ya I check that website before only i m trying to tell that type of graphics i need. But I m using some person work for this web site. like demonstrate a website one company. maybe they will use or not so that i m searching free 3rd party tool or any program. plzzz help me.
|
|
|
|
|
If you want fancy controls, you should search CP. your other options are typically to pay for them, or write your own.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have an ASP .NET page with some text boxes, where I set the javascript events onfocus and onblur to change the backgroundColor, so the code is something like what's below:
function setBackgroundColor(elementID, color)
{
var control = document.getElementById(elementID);
control.style.backgroundColor = color;
}
The problem is, as soon as this happens, the borderStyle also changes from the original flat/solid borderStyle to one that's 3D (not sure which one though). Does anyone know why these two backgroundColor and borderStyle properties are tied to each other and how I'd go about only changing just the backgroundColor?
|
|
|
|
|
The idea is that the browser uses the underlying OS's rendering capabilities to standard form controls (like buttons or text boxes).
As soon as you change attributes/properties/styles that the OS cannot render anymore, the browser switches from an OS rendered control to an ownerdrawn control.
Happens e.g. inside Google applications quite often, too.
You could set the border always explicitely to avoid the "flipping" you described.
|
|
|
|
|
Interesting, thanks for the info. I tried setting the borderStyle to solid, and then it changed the border outline to a different color (black) than what the OS renders (I guess), which is something like a light blue-ish color. In the end, I just said "screw it, 3D border style it is", since it seemed to look alright.
|
|
|
|
|
I'm reading an xml file that is stored on a webserver that has SSL.
But I get an error " '>' is an unexpected token. The expected token is '"' or '''. Line 3, position 46."
It works fine if the xml file is on a webserver that doesn't have SSL.
I'm using
XmlDocument.Load(url)
Is there some other way that I can try?
Edit.
If I was unclear, the xml file is on a different server than my web application.
modified on Friday, December 12, 2008 2:40 PM
|
|
|
|
|
Sounds to me that it is not a matter of SSL/non-SSL but more to the content of the XML document.
Are you sure that you test with the _same_ XML documents?
|
|
|
|
|
Yes, I'm sure that it's the same file.
|
|
|
|
|
Hi Guys,
I've following problem: I have a grid view which gets data from a SQL server through a DataSet and an ObjectDataSource. The DataSet holds queries to many tables. Now I try to show all the data in the grid view.
When I try to show the data through a DDL, I get following error:
'DDLStatusItem' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
<asp:TemplateField HeaderText="Status" SortExpression="Status">
<ItemTemplate>
<asp:DropDownList ID="DDLStatusItem" runat="server" OnInit="DDLStatusItem_OnInit" DataSourceID="ODSFilterGridByStatus" DataTextField="Beschreibung" DataValueField="StatusId" SelectedIndex='<%# Eval("StatusId") %>' SelectedValue='<%# Bind("Status") %>'>
</asp:DropDownList>
The ODS of the ddl is different from the gridview one. When I try to access the GV DataItems "StatusId" and "Status", it dosen't break.
Does somebody know, what's my problem is?
Have a nice weekend!
|
|
|
|
|
I have a problem with disabling view state. if i set enableviewstate=false at page level that consists of grid.
when i select any record in the grid which is empty its throwing an exception Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex.
Grid is working fine if is set enableviewstate=false to grid level.
is there any solution for this. I am using Rad grid.
cheers
chandu
|
|
|
|
|
Sounds like Rad Grid is the issue, so ask them.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello All,
This may be a simple enough questions but I cannot seem to make them work for me, therefore I am looking for any breadcrumbs that you guys can offer.
I have a simple DropDownList that is bound to an SQL DataSource that just pulls users names from a table. No problem there. What I need to do in certain situations are the following:
A - Add a new item to the list (No User)
B - Have that new item first in the list as being selected.
I have tried adding the .ADD method to the DataBound event, and it appears to be run but that value is not in the list after the page loads. Additionally I cannot make any other items in the list selected (instead of USERA being displayed I would like USERC displayed upon load).
Any assistance will be appreciated.
|
|
|
|
|
You can do one thing
when you want ot add user at that time don't bind it from datasource just add user using .ADD else bind it to datasource.
if you want ot make it more custom read each item from database one by one and add it.
Cheers!!
Brij
|
|
|
|
|
I thought I would have to code it but I wasn't sure if it could be done without the coding.
So that answers that, but how do I make a specific one selected?
|
|
|
|
|
There are two prperties of dropdownlist SelectedIndex and SelectedValue.If you know which item/index you need to show as selected then you can set it by above properties.
Cheers!!
Brij
|
|
|
|
|
That's the ticket.
Thanks guys!
|
|
|
|
|
After you pull data in DropDownList1 from tabel then add new item by code:
DropDownList1.Items.Add(new ListItem("Please select one user",""));<br />
DropDownList1.SelectedValue = "";
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Files may be generated dynamically and fetched from website.
Thanks in advance
|
|
|
|
|
Hi,
where do you store the files? In a directory or database?
|
|
|
|
|
Files will be from website.
I need to download Excel files from a site peridiocally.
The size of the file may be larger upto 5 MB.
Thanks,
Nagaraj
|
|
|
|