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 .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 .Net, ASP.Net, Development, Visual StudioAug 28th, 2009 | No Comments
I have been getting good response for my post Integrating blog engine into existing site. One of the guy asked me this question on how can we do the opposite? He had a BlogEngine as parent site and needed some other site to be child of BlogEngine. So He posted on that and this is the answer he got for his question.
You need to make this change in your web.config file. If you want to have a website as child of BlogEngine
<location path="." inheritInChildApplications="false">
<system.web>
..... existing content .....
</system.web>
</location>
<location path="." inheritInChildApplications="false">
...
Posted by Ajay Matharu in Technology, Visual StudioJul 25th, 2009 | No Comments
Understanding existing, and writing new, code
As the complexity of applications grows so does the
challenge of understanding the code that you’re working
on. With Visual Studio 2010 the IDE provides integrated
support for understanding what is happening in the code
section that you’re viewing.
The editor in Visual Studio 2010 has been rebuilt using the
Windows Presentation Foundation (WPF) technology. WPF
enables the editor to richly present information about the
code in the context of presenting the actual source. This ability
enables features such as the “Document Map Margin” to render
a...
Posted by Ajay Matharu in .Net, Development, Technology, Visual StudioJul 25th, 2009 | No Comments
Hi Guys, Microsoft released Visual Studio 2010 CTP in October. You’ll be amazed with the download size its near about 7 GB. You can download it from here.
After you download you’ll run the .exe file to extract the setup and the setup is of the .vhd format that is Virtual PC hard disk. So you’ll need Virtual PC to run Visual Studio 2010.
But, but, but guys please check out the minimum requirement for this CTP to run. Hard disk space required is 75 GB, yes, its not 7.5 but 75 GB. Well that’s not true you can have this CTP run if you have upto 25 GB on one drive.
When you...