Rohit Gupta
5 posts.
- Combining jquery form serialize() and JSON.stringify() when doing ajax post in MVCMost of the times we end up using either $(‘#myform’).serialize() along with default contentType in ajax POST request, OR we use the JSON representation…
- Search All Columns in All Tables using TSQL1…Works like a charm: 1: DECLARE @SearchStr nvarchar(100) 2: 3: SET @SearchStr = 'SEARCH\KEYWORD' 4: 5: CREATE TABLE #Results (ColumnName nvarchar(370),…
- Dispose and Finalize methodsHere are are few tips on using the IDisposable pattern and using Finalizers - Implement IDiposable if accessing managed resources like…
- Dynamic log fileNames with log4netIf you needed to generate dynamic logfile names with log4net then you can use the following config 1: <appender name="RollingFileAppenderV1"…
- Tips on using log4net RollingFileAppenderBy Default we have the following values for following properties of a RollingFileAppender - staticLogFileName = true - countDirection = –1 - rollingStyle…
