Last post Jan 24, 2011 05:11 AM by nilsan
Jan 24, 2011 02:03 AM|vinothvsbe|LINK
I'm facing some critical issue. I will tell where i'm facing problem. One Page which contains more than 150 Controls say Text box and Labels only. Data Entry form( Telerik Tabbed Format). Only one button is there Save. When we click save it will insert
in to Database Table (Sql Server 2008). When data is already there then it will update. I need to know what are all the Ways that i can increase my code Performance. It is taking nearly 30 sec to load complete page (Not leading to Time Out Expired issue any
way ). If some one faced some article based on Code Optimization and Performance Tuning , and you felt that article is really good, please post link also. Will be helpful for me.
Thanks in Advance
asp.net 3.5 ajax
Jan 24, 2011 04:59 AM|selfmotivated|LINK
If you are using viewstate then remove those. Use SQL procedures and most imprtant one if you can put your
existing record update and insert script in the single Stored proceduer. And for loading the controls in your page you can
create on demand loading of controls not all together in a single instance.
Hope this will help you.
Jan 24, 2011 05:11 AM|nilsan|LINK
ne Page which contains more than 150 Controls say Text box and Labels only
That's too much. I think you should disable viewstate of the controls and rather than using Lable, you should use Literal control which will simply rendered as text. If you use Lable, it will be rendered as SPAN.
Please check out more detail about Viewstate
here. Read the whole article, you'll learn something important.
As you have so many controls, you can use Wizard control in Asp.net to collect data from user.
One benifit is only current wizard step controls will be rendered and and make your page lightweight.