Posted by Ajay Matharu in .Net, Development, Microsoft, Sharepoint, Visual StudioNov 27th, 2009 | No Comments
Last night while developing an event listener custom list, I ran into this error,
SharePoint Error: “The language-neutral solution package was not found”
The solution to this problem is, Restart your visual studio. And it will be back to normal.
Hope this helps
Posted by Ajay Matharu in Development, Google, TechnologyNov 12th, 2009 | 3 Comments
Google created their own programming language. But is there a need to create a new language?
Well here is some details about the Go programming language.
Go offers an expressive type system, fast compilation, good performance, and built-in language features that simplify threaded programming and concurrency. The language has been under development for roughly two years. It started out as a 20 percent project—time that Google’s engineers are given to use as they choose for undirected experimentation—and evolved into a serious full-time undertaking. Google is releasing the source code...
Posted by Ajay Matharu in .Net, ASP.Net, Development, Visual StudioOct 7th, 2009 | 1 Comment
Following code helps you to import grid values to excel,
//Import System.IO in your application for StreamWriter Object
//note: excel_file represents the complete physical address of excel file eg C:/myexcel.xls
public void export_datagridview_to_excel(DataGridView dgv, string excel_file)
{
int cols;
//open file
StreamWriter wr = new StreamWriter(excel_file);
//determine the number of columns and write columns to file
cols = dgv.Columns.Count;
for (int i = 0; i < cols; i++)
{
wr.Write(dgv.Columns[i].Name.ToString().ToUpper() + “\t”);
}
wr.WriteLine();
//write rows to excel file
for...
Posted by Ajay Matharu in Development, Google, TechnologySep 28th, 2009 | No Comments
A new programming language that runs on the Java Virtual Machine is available thanks to a couple of Google’s developers. Called Noop (pronounce it like an abbreviated version of “no operation”), the developers claim that it combines the finest aspects of other languages and attempts to guide users towards accepted best practices.
Other parts of the new Noop homepage (which is hosted by Google Code) explain that Noop “in source form looks similar to Java. The goal is to build dependency injection and testability into the language from the beginning, rather than rely...
Posted by Ajay Matharu in Development, SQLSep 10th, 2009 | No Comments
SQL Server programmers can choose between two functions in SQL Server 7 and 2000 for converting expressions from one type to another. In many cases there will be a need within a stored procedure or other routine to convert data from, say, a datetime type to a varchar type; CONVERT and CAST are used for such things.
Because SQL Server provides both functions, there may be some confusion about which is best to use and under what circumstances. CONVERT is specific to SQL Server, and allows for a greater breadth of flexibility when converting between date and time values, fractional numbers, and monetary...