Disable Keyboard Prompt on Boot Compaq Servers

The solution to this issue is to run the server in “Server Mode“.

Get into the BIOS by Pressing on F10 on Boot

Go to the Security menu -> Power-On Password -> Set A password -> F10

Go Back to Security menu – > Password Options -> Network Server Mode -> Enabled.

Hit F10 -> and Save the BIOS changes

Resizing GridViews Columns

If your Gridview is not behaving as it should (the widths of the columns are out of control), this method below should help you Fix that.

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
       foreach (TableCell myCell in e.Row.Cells)
        {
            // Takes cares if wrapping the long Cells
             myCell.Style.Add("word-break", "break-all");
            // set the height of my Cells
             myCell.Style.Add("height", "50px");
        }

       // set each with based on the maximun size of each data
       // In this case i have 6 columns on my gridview that i have to fit in "800px"

       GridView1.Columns[0].ItemStyle.Width = 30;
       GridView1.Columns[1].ItemStyle.Width = 30;
       GridView1.Columns[2].ItemStyle.Width = 100;
       GridView1.Columns[3].ItemStyle.Width = 50;
       GridView1.Columns[4].ItemStyle.Width = 80;
       GridView1.Columns[5].ItemStyle.Width = 200;
    }

Property or indexer cannot be assigned to — it is read only

When trying to set up a property variable let’s say “Properties.Settings.Default.YcsoftwareDb = DbLocation.FileName” for example you may get the error message: “Property or indexer cannot be assigned to — it is read only”. To fix the issue make sure that the application scope of you settings variable is set to  “User” instead of “Application”

“The crucial distinction between application-scope and user-scope settings is that user-scope settings are read/write at run time, and their values can be changed and saved in code. Application-scope settings are read only at run time. While they can be read, they cannot be written to. Settings with application scope can only be changed at design time, or by altering the settings file manually.”

Microsoft (http://msdn.microsoft.com/en-us/library/aa730869(VS.80).aspx)

Reporting Services Headers and Footers

Adding Header and Footers on your reports.
http://technet.microsoft.com/en-us/library/ms156326.aspx

According to the article,  “On the design surface, right-click the report”.  The “design surface” is shown below.

If you are working with 8.5 by 11 pages,  make sure that you work within 7.5 Inches and set up you margin to be 0.5 inches left and 0.5 inches right, you will avoid a lot of headaches.

Note that you can set up the report margin using the report properties.  Right click on the area shown above and select report properties or go to the report on the menu bar and select  “Report Properties”.  You will find them under the layout tab.