Author Archives: Gokul Dahal, Nepal

About Gokul Dahal, Nepal

Software Engineer, Freelancer, Design and Develop web applications,Software Developer Nepal, FreeLancer Nepal Contact : gokuldahal@gmail.com

Download Excel with AJAX Request

This is a simple example where we will discuss how we can download excel through ajax request. This example will use jquery and .net mvc and NPOI framework to create an Excel worksheet. Below is the snippet where we are making … Continue reading

Posted in C#, javascript, Javascript and Jquery | Tagged , , | Leave a comment

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

HTTP GET and POST

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”; graphic.data = { 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