Skip to main content

Posts

How to center a Div Horizontally and Vertically

  .wrapper { width : 100% ; height : 100% ; background-color : aqua ; } .body { width : 600px ; height : 300px ; background-color : #567 ; position : absolute ; left : 50% ; top : 50% ; margin-left : -300px ; margin-top : -150px ; } we set wrapper class to parent container. then set body css to child div which needs to center in the screen.  

Access to this web server is disabled by default because it is controlled by Basic Authentication and does not use Secure Socket Layer (SSL). Do you want to search the Microsoft Online Support Center to view possible solution?

I got this error when i tried to connect to  a SharePoint site using SharePoint designer. since I'm using Windows7 home premium as my development environment i configured the SharePoint to use basic  authentication which does not support SSL authentication. But Microsoft provide hot fix to overcome this situation. You need to download and install the fix mentioned below. [Microsoft Fix it 50711] http://go.microsoft.com/?linkid=9777384

The specified dsn contains architecture mismatch between the driver and application

This is a common error that is raising when 32bit applications and 64appications working together. therefore if you wan to create a 32bit DSN you should refer the 32bit DSN (ODBC) exe to create the DSN. therefore you need to go to the folder called C:\Windows\SysWOW64. Therefore you need to run the ODBC exe in the location C:\Windows\SysWOW64\odbcad32.exe to over come the situation. WOW is abbreviated as Windows on Windows

Calculated Columns in .NET Data Tables (C#)

Recently I had a requirement to add Calculated Columns to Data Table. For an example I’m Only providing Amount and Quantity. Then discount will be calculated automatically. String Discount = ".1" ; DataTable workTable = new DataTable ( "Customers" ); DataColumn workCol = workTable.Columns.Add( "ID" , typeof ( Int32 )); workTable.Columns.Add( "UnitPrice" , typeof ( Double )); workTable.Columns.Add( "Quantity" , typeof ( Int16 )); workTable.Columns.Add( "Total" , typeof ( Double )); workTable.Columns.Add( "Discount" , typeof ( Double )); workTable.Columns[ "Total" ].Expression = "UnitPrice*Quantity" ; workTable.Columns[ "Discount" ].Expression = String .Format( "Total*{0}" ,Discount); Later you can bind the Data Table to a Grid View if you need. dataGridView1.DataSource = workTable; dataGridView1.Update(); Special Note: But my requirement was to update the Column Expression dynam...