Monday, September 16, 2013

ASP.NET Questions and Answers – Part 5

What is differences between an ADO.NET Dataset and an ADO Recordset?

  • ADO RecordSet looks like a single table. ADO.Net DataSet is collection of single or more tables.
  • ADO RecordSet can hold data from a single data source. ADO.Net DataSet can hold data from any data sources.
  • ADO RecordSet is a connected environment. ADO.NET DataSet is a collected of tables and it is a disconnected environment i.e., there is no constant connection with database.

What is the parent class of the Web server control?

The System.Web.Ul.Control class is the parent class for all Web server controls.

What are the various ways of authentication techniques in ASP.NET?

  • Windows Authentication - This is the default authentication technique. It can work with any form of Microsoft Internet Information Services (IIS) authentication, such as Basic, Integrated Windows authentication (NTLM/Kerberos), Digest, and certificates. The syntax of Windows authentication mode is given as follows:
  • Forms Authentication - You can specify this mode as a default authentication mode by using the following code snippet:
  • Passport - This mode works with Microsoft Passport authentication, as shown in the following code snippet:

Related posts:

Wednesday, September 11, 2013

Connect to Windows Share from Ubuntu

When I attempted to connect to Windows Share from Ubuntu 12.04, I got this error message: "Failed to retrieve share list from server"

Found solution from UbuntuForums.org (http://ubuntuforums.org/showthread.php?t=1082148&page=12&p=9762937#post9762937). Enter "smb://192.168.123.123" where 192.168.123.123 is the IP address of Windows Share, it bring up the list of shared folders on Windows machine.
Now, I just entered the user name and password to get in.

Friday, September 6, 2013

Using ODBC 32-bit on 64-bit Operating System

Which ODBC driver should we install on 64-bit machine using Windows Server 2008 R2, Windows Server 2012, Windows 7, or Windows 8? It would depend. When I installed MySQL ODBC 64-bit driver on Windows 8.1 Preview, it worked when I added a new DSN. But, it did not work when Microsoft Access 2007 application made ODBC call to MySQL server.

What wrong? It took me couple hours to figure out. Microsoft Access 2007 may not work with other 64-bit driver or program yet. Installed MySQL ODBC 32-bit solve the problem.

On Windows 8.1, there are two ODBC Administrors under Control Panel – Administrative Tools. One for ODBC Datasources 32-bit and one for ODBC Datasources 64-bit. On Windows Server 2008 R2, there is only one reference to ODBC Administrator. This is 64-bit. Where is 32-bit? To add or manage DSN for ODBC 32-bit, you need to call program odbcad32.exe in C:\Windows\SysWOW64\

Hope this help.

How to recognize a fake Geek Squad renewal scam | Consumer Advice

Except from  https://consumer.ftc.gov/consumer-alerts/2022/10/how-recognize-fake-geek-squad-renewal-scam Scammers are at it ag...