I am using “ASP.NET Development Server” with Visual Studio 2010 Ultimate x64 on a Windows Server 2008 R2 x64 machine. Development Server is my primary development and debug my ASP.NET applications. After my work is done, the website moves to an IIS 7.5 on a Windows Server 2008 R2 x64 (same machine) with “DefaultAppPool”. I …
یکی از جاهایی که کار میکردم دو تا Solution خیلی بزرگ داشتیم. اولی که ۶۴ تا پروژهی ویژوال استودیو بود که همگی تبدیل به dll میشدند و دومی که یک پروژهی وب حجیم بود با چیزی بالای ۶۰۰ صفحه aspx. بعضی وقتها که ایرادی پیش میآمد مجبور میشدم Solution اول را روی کامپیوتر خودم Build …
یکی از امکانات ASP.NET مجموعه Membership و امکانات جانبی آن است. این مجموعه به برنامههای ASP.NET امکان تعریف کاربر، نقش و کنترل دسترسی بر اساس آنها را میدهد. برای این که بتوان از این امکانات استفاده کرد بایستی موارد مورد نیاز ASP.NET applications services در بانک اطلاعاتی مورد استفاده برنامه نصب گردد. این کار به …
ASP.NET GridView and other similar controls that support paging needs special methods that return only the requested slice of data and the count of total data. As I’m a lover of NHibernate/Castle ActiveRecord I have gathered paging techniques in NHibernate HQL, LINQ-to-NHibernate and Castle ActiveRecord: NHIbernate HQL: public IList GetData(int page, int pageSize, ref long …
بیشتر کارهای کنترلهای ASP.NET را هم میتوان به صورت Declartive و هم در Codebehind انجام داد. یکی از این کارها عملیات Paging در GridView است. متاسفانه یک محدودیت ظریف در حالت غیر Declarative وجود دارد که کار را برای کسانی که همه کارهای کنترلهایشان را در Codebehind انجام میدهند سخت کرده است. اگر GridView را …
I’m using log4net for logging in my ASP.NET application. This web site is based on .Net framework 3.5 and is installed on IIS 7.5 and Windows Server 2008 R2 in a 64 bit machine. Logging was working greatly when I was running application from Visual Studio 2010’s internal web server, but was not working at …
Paging and sorting is a common need in ASP.NET applications. GridView itself have a default paging and sorting mechanism. Default paging has performance issues while manipulating large amounts of data. So people use a custom paging mechanism. This way they must note that only needed data must be extracted from database. For example when page …
While binding data to ASP.NET data aware controls like GridView and FormView, there is always two choices. Firstly you can do updating, inserting and deleting operations just in code behind. This way you should reference controls, get/set values and do actual operation in codebehind. Secondly it’s possible to do almost everything in markup of your …
One of the problems that I encounter so often is need to refresh an ASP.NET website. Many times we make some changes in website’s data and need the website act on these new data. But unfortunately this does not take effect, because ASP.NET worker process is not going to read data from beginning. One of …
In all of my passed years in university and development teams, I was wondering if our style of software development is correct or not. I was comparing ourselves with those development teams in well-known companies and universities in industrial countries specially in United States (I live and work in Iran). There was no direct way …