22/08/2012 by Nitesh

How to add a piece of Javascript just before the end of Form Tag in ASP.Net

In ASP.Net, we often require to add some piece of Javascript from Code-behind that should get added towards the end of <form> tag and not in the header of the form. For this, we need to use RegisterStartupScript function. The syntax to use the function is as below: Page.RegisterStartupScript(this.GetType(),”key_for_script”, “alert(‘Hey! This gets alerted after the…

Continue Reading »

11/05/2012 by Nitesh

How to Optimize and Repair MySQL tables

Very Often when we deal with large amount of data in MySQl table, we need to Optimize and repair MySQL tables. Here are the MySQL Queries to do the same: Optimize Table: OPTIMIZE TABLE TBL_NAME Repair Table: REPAIR TABLE TBL_NAME The Other way of doing this is to follow the below steps. Go to PhpMyAdmin…

Continue Reading »

09/05/2012 by Nitesh

How to Change Startup Form in VB .Net Windows Application

Today, I was working on a demo VB.Net windows application and going the Visual studio way, I added a new Windows Form Application in VB.Net. It created a default Form1.vb form with start up items. I added a new form MainForm.vb and then I wanted to change the application start up form to MainForm.vb from…

Continue Reading »

27/11/2011 by Nitesh

How to create a .wsp file manually

A .wsp file is a deployable, reusable package that contains a set of features, site definitions, and assemblies that you can apply to a SharePoint  site and can activate/deactivate individually on your own discretion. MOSS provides a way to bundle all of the components called a solution file which is a cabinet or .CAB-based format…

Continue Reading »

24/11/2011 by Nitesh

Troubleshooting Generic “File Not Found” Error in Sharepoint

Dear Friends, While working with Sharepoint, almost everyone of us have faced the Sharepoint “File Not Found” error..may be while adding a webpart to a page or while performing some action on the page. The error as shown below: It is highly recommended that you do NOT apply these changes on production server. Also, on…

Continue Reading »

1 3 4 5 6