Author Archives: Gokul Dahal, Nepal

About Gokul Dahal, Nepal

Software Engineer, Freelancer, Design and Develop web applications,Software Developer Nepal, FreeLancer Nepal Contact :

EarthQuake impacts around Kathmandu and Lalitpur

It has been 12 days today of the massive earthquake and I am in Kathmandu. Kathmandu including Lalitpur and Bhaktapur has become almost empty these days, with very less people and vehicles on the road. Few days back i could … Continue reading

Posted in ASP.NET | 1 Comment

Villages near Barpak, Gorkha after Earthquake

Barpak, the name that has become well known to the people all over the world, is the epicenter of the calamitous earthquake that hit Nepal on April 25, 2015. This earthquake which finished all the infrastructure and killed many human … Continue reading

Video | Posted on | 1 Comment


Both HTTP method can achieve the same goals, but making incorrect choice between them can lead to unexpected and potentially harmful results. Basically GET is used to retrieve remote data, and POST is used to insert/update remote data. Applications which … Continue reading

Posted in ASP.NET | Leave a comment

generate hyphen key

In this example i am trying to do some string manipulation. Depending on the value of this string different sorts of new hyphenated string will be generated. Such as Input String is “data”, output will be “data-1” Input String is … Continue reading

Posted in C# | Leave a comment

C# : new and virtual keywords

Example demonstrate how we can access derived class method without overridng the base class method. Fiddle public class Base { public virtual void Run() { Console.WriteLine(“Base running”); } } public class Derieved : Base { public new void Run() { … Continue reading

Posted in C# | Tagged , | Leave a comment

Use and Advantage :private set

Basically, I want to create an instanceof a class, and once the instance is created, the properties of that object should not be allowed to be modified. Bit tricky, when you hear this for the first time. It can be … Continue reading

Posted in C# | Leave a comment

Excluding object properties while json-stringifying

Example to exclude the properties of javascript object. var graphic= new GraphicalElement(); graphic.objectType = “CIRCLE”; = { radius: 20 }; //Removes the property objectType from graphic object graphic.toJSON = function() { var attrs = {}; for (var attr in … Continue reading

Posted in javascript | Tagged , | Leave a comment

Function Vs Stored Procedure

Difference between Function and Stored Procedure Functions Compiled and executed at Run time. Can not affect the Database state. i.e Can not perform insert,delete and update operation. Can return 1 value which is mandatory. Can have Input parameters only. Function … Continue reading

Posted in SQL | Tagged , , , , | Leave a comment