How To Improve Coding
May 7, 2010how can i do perfect coding using all oops concepts?
View 6 Replieshow can i do perfect coding using all oops concepts?
View 6 Repliesgive me a feedback on the below coding. I like to know whether i had improved in writing the .net coding.
[code]....
I 'm new to vs.net 2005,now I am studying asp.net 2.0 technology ,I need the demo code like Duwamish 7.0 CS in vs.net 2003 verison to improve my coding and develpoment my asp.net application.
View 2 Replies I manage to change part of it and the rest i not quite sure how to do it. Below is the code written in C#, it is a svc file.
[code]....
I have developed a gridview which has displays 8,000 records. However, the user is compaining that it is too slow. A major function of this gridview is to filter on two of the columns. It seems to me that if the records were stored in memory it would be much faster. This is caching, I think. Is that the case? Since filtering is being done I don't think custom paging will help much. When they submit a filter, with custom paging wouldn't the entire table be read again? So I was thinking of trying caching which is available on SQL Server. Am I on the right track? Can you cache with an Access database? Can you think of any other ways to improve performance of a gridview?
View 1 RepliesMy scenario is : WebApp -> WCF Service -> EDMX -> Oracle DB
When I want to bind grid I fetch records from Oracle DB using EDMX i.e LINQ Query. But, this degrades performance as multiple layers take place between WebApp & Oracle DB. Can I use caching mechanism to improve the performance? But as far as I know cache is shared across the whole application. So, if I update cache other user might receive wrong information. Can we use caching per user? Or is there any other way to improve performance of the application?
I am using Asp.net MVC 2 for my application.In view pages consist of aroung 4 jqgrids,data loading in grid asynchronous using jquery post method when user performace action on the view.In jqgrid i used datatype as local while view is displayed,when ever user perform an action it load json data to grid.In view i have 3 partial page which also loaded based on the user action.It takes more time to display the view.How to improve the performace while opening the view
View 6 RepliesASP.NET 3.5 Classes throughout our solution referenced ConfigurationManater.AppSettings[""] to get appSettings (from web.config).
We decided we weren't happy with that. Folks were mistyping appSetting key names in code (which compiled fine), and it was cumbersome to track usages. And then there's the duplicated strings throughout the codebase as you reference the same appSettings all over the place.
So, we decided that only one class would be allowed to reference the ConfigurationManager, and the rest of the solution would reference that class when it needed the value of a certain appSetting. ConfigurationManater.AppSettings[""] was static, so we exposed a bunch of static read-only properties off of our single Settings class.
[Code].....
And now we're injecting the ISettings instance as a dependency of the objects which use settings values (the class/interface are in a project that everyone can reference without problems).
In places where we can't inject an existing instance (e.g. Global.asax), we construct a new instance into a static field.
Given all of that, what would you recommend we change, and why?
So i am using visual studio 2008, asp.net 3.5, with the basic toolkit provided. Now i have made the gui which a lot of functionality but the design is very basic. nd looks too old. I need to give it a new look, a new feeling new designs. like the gridview, the buttons the textboxes, the menus look basic. this is not working for me. let me how should i go about doing this?
1) i have herd about tool kits but dont kno which ones are good..(dont want the really expensive ones) but if it is really good my company is ready to spend.
2) will the new VS 2010 or asp.net 4.0 make a difference.
3) The ajax toolkit or silverlight toolkit is any good?
4) i also need to show Charts and graphs now, currently using MS charts.. but now i need which is good.
[Code]....
View 5 Repliesi have 100 buttons and 101 textboxs, button run scripts and some of them run by code like this:
[code]....
i meaen i want it run on client side only , before i submit by another button, but the problem is it spent more than 2 second to get value
from textbox1 to textbox2 in this case( because i have 101 button run like these), i know that it need time postback to server. i could not use return()false because if i do like that the value from texbox1 will not add into textbox2, 2 seconds is not reach my golf.
regarding the performance improvement in Asp.Net?The best practise tips for asp.net performance improvement?
View 4 RepliesI have one online school management application developed on asp.net 3.5 using Linq,
Now in my database i have main three talbes which uses in many store procedures,functions,linq join query
CourseMst - Master Table Have CourseID P.K.
StudentMst - Master Table Have StudentID P.K.
Student_Course - Child Table Have StudentCourseID P.K
StudentID F.K. Reference To StudentMSt
CourseID F.K. Reference To CourseMSt
Now i want to increse speed of my application for those page which have query or sp related to above tables,
I want to know about indexing procedure that how to apply indexing and on which field i have to apply indexing
I am using gridview control of .net framework 4.0. My list contains 1000 of rows which i am binding to a gridview on each postback. Hence, My page is taking time to load I want to speed up the system. Is there any other control available which can enhance the performance or is there any other way to achieve this? What all i want is faster performance
View 3 RepliesI see bugs? give me your opinion really improve my site es [URL] this is metasearch fly meta search flights
View 2 RepliesI am working on finance domain, we are using many sessions and viewstates for store values and data. Our clients want fast speed of our website. We are using grid/repeater/datalist and chart controls for show data.
View 3 RepliesI am working on AJAX-ASP.NET site. This site is taking 25-30 sec to load the contents. I want to improve this site performance. Is there any settings required in IIS? How to check IIS log files?
View 2 RepliesIn ASP.net when we perform paging over Gridview or DetailsView than the Gridview fetch all rows from the Database each time.
Suppose our Database contains 100 rows and we have configured Paging in Gridview with page size of 10 records per page.But whenever we click on the the pager control of gridview for any particular page no. then GridView should fetch only particular 10 rows from database.
If we click on page no 3 then it should query only rows 21-30 but it fetches all rows and neglect the remaining .which is simply a wastage of resources.
I have designed site for my customer site and this Commercial Loan site for the users who are willing to take a commercial loan.I wan to know what should I do from programming site of view so that when user search it must be there in first 5 link.Site name is http://commercialloans4all.com
View 2 RepliesI am a .Net Developer and I develop using C#. I am always but all business logic at separat Class Library project , and then use it with my project, But I want to know if it will improve the performance of application , or I can but the Business logic class within the main project without effect at the application performance?
View 2 RepliesI have a website that enable the user to upload pics to server (uploaded pics sizes are 300x400 and approximately 270kb). In my app. I am having another page that lists the pics and I am using there an image control for that purpose. The Image control sizes are 80px width, 60px height. My question is how can I improve the download speed by minimizing the images ? Do I have to create a thumbnail for each picture the user upload?
View 4 RepliesIn ASP.net when we perform paging over Gridview or DetailsView than the Gridview fetch all rows from the Database each time.Suppose our Database contains 100 rows and we have configured Paging in Gridview with page size of 10 records per page.But whenever we click on the the pager control of gridview for any particular page no. then GridView should fetch only particular 10 row
View 3 RepliesI had created a web site with asp.net and sqlserver. How can i improve the my website's performance in with regard sqlserver connection?What's your mind about use pool connection? In this regard what the defualt values is set for 'Max Pool Size' and 'Min Pool Size'?What's your mind about use Asynchronous access to data? What's your mind about other ways that you think?
View 3 RepliesThere are various website speed test online tools available. Few of them are listed on: [URL] I tested my website using iweb and selfseo. My website is showing 0.03KB Average speed per KB everywhere. Even google also is giving same kind of results.I tested the site using Page Speed and YSlow. I have already followed most of the recommendations suggested by these tools like efficient use CSS, contents across the domains, caching, compression and all. But still I am getting the same average speed per kb. Page speed is showing around 85/100 as my page speed score, so I guess I have optimized my site a lot. My questions here are:
1. What are the other factors affecting the avg speed per kb of a website?
2. How to improve the Avg speed per kb?
3. Is there anything related with the Server Software and Hardware that I have to check?
Note: I tested by uploading a plain html page with simple text "Hello World", but the avg speed per kb is the same for this page as well. Same is the case with the rest of the pages.
Application Platform : ASP.Net 3.5, C#3.0, LINQ as Data Access, SQL Server 2008
Server Platform : Windows Server 2003.
I found this code to send email using a contact form; the problem is that after the email is sent the page doesn't display a message indicating that the email was sent successfully. In addition, it doesn't reload (refresh) the page so the actual email remains there.
[Code]....