What is Abstraction in C#.net

By | November 17, 2017

What is Abstraction in C#.net Abstraction refers to the act of representing essential features without including the background details or explanations. Abstraction defines way to hide your data and members from outside world. This is achieved by means of access specifies. e.g.: Interface Abstraction is used to create a common set of methods that might… Read More »

enable disable kendo datepicker in MVC

By | November 17, 2017

Suppose you have a kendo Datepicker on UI and you want to disable / enable it on some click events then just use below syntax to enable disable kendo datepicker in MVC. For Enabling use below syntax, $(‘#date1’).data(‘kendoDatePicker’).enable(true); For disabling kendo DatePicker control use below syntax, $(‘#date1’).data(‘kendoDatePicker’).enable(true); Here $(‘#date1’) is the control name of datepicker,… Read More »

How to set a default value for an existing column in sql server

By | November 9, 2017

How to set a default value for an existing column in SQL server Syntax: ALTER TABLE {TABLENAME} ADD {COLUMNNAME} {TYPE} {NULL| NOT NULL} CONSTRAINT {CONSTRAINT_NAME} DEFAULT {DEFAULT_VALUE} [WITH VALUES] For Example: ALTER TABLE EmployeeMaster ADD City NOT NULL CONSTRAINT EmpMaster_City DEFAULT ‘Pune’ Click here for more SQL Tutuorials

Codility BinaryGap Solution C#

By | November 7, 2017

Codility BinaryGap Solution C# Find the longest sequence of zeros in binary representation of an integer. Solution: public int GetBinaryGap(int N) { string binaryValue = Convert.ToString(N, 2); int longestBinaryGap = 0; int binaryGapLenght = 0; for (int i = 1; i & lt; binaryValue.Length; i++) { if (binaryValue[i – 1] == ‘1’ && binaryValue[i] ==… Read More »

Fiddler Wildcard AutoResponse For URL parameters

By | November 6, 2017

Fiddler Wildcard AutoResponse For URL parameters Suppose you want to enable autoresponder for perticular URL like, https://dotnetpeoples.blogspot.in/Employee/Login?id=12345 but every time id changes when we re-fresh this page, so autoresponder not considering it, Just do below 2 steps it will work for you guys, Step 1:  Enable Automatic responses & unmatched request passthrough   Step 2: In Rule… Read More »