Monthly ArchiveAugust 2006
General hiren.p on 30 Aug 2006
FAQs Google Search Engine
How do I submit my website to the Google Search Engine?
Submitting your website to the Google Search Engine is free, fast and
friendly.
Simply go to www.google.com/addurl.html and enter your website
domain name remembering to include the http:// prefixe.g.
http://www.mywebsite.com
Do I need to submit my website to local Google
Search Engines?
Google operates a large number of Search engines for virtually every country in the World. A single submission covers all Google Search engines around the world!
Do I need to resubmit my website to Google
search engine regularly?
No - once registered it is automatically updated.
What happens when pages get deleted?
Google will automatically remove them.
I submitted my website to the Google Search Engine some time ago and it still doesn’t appear in a Google search It can takes several months to get indexed - the web is a big place!
Make sure you keep your content fresh and up-to-date. In the meantime you can use the Google advertising system called Adwords to get traffic to your website.
.NET pushkar on 25 Aug 2006
Data Reader OR Data Adapter???????
The OleDbDataReader (and SQLDataReader) runs a query and provides once-only access to the results. The DataReader is appropriate for once-off recovery and display of data.
The OleDbDataAdapter (and SqlDataAdapter) runs a query and stores the results in a DataTable.
This is used when the results need to be counted, paged, sorted and so on.
A DataSet contains one or more DataTables
A DataTable stores data in a database-type row-and column format. It is an in-memory object which stores the information in rows and columns. The DataTable uses the DataAdapter’s ‘fill’ method to run the query and retrieve the data (and the field name and data type). The DataTable is a copy in memory to the data in the database and it does not remain connected to the database whilst it is scrolled or paged or sorted.
A DataRelation defines a logical relationship between two DataTables
A DataView provides a sorted or filtered view of the contents of a DataTable
The objects used to make connections, provide a connection string, open a connection and so on are contained in the Namespaces “System.Data” and “System.Data.OleDb” or (for SQL Server) “System.Data.SqlClient”
Most of the rest of the example code (and the DataGrid) is the same. These are the differences:-
Dim dap As OleDbDataAdapter
Dim dst As DataSet
The dataset is defined and then filled. This is the datasource for the Grid, which is then bound.
dst = New DataSet()
dap.Fill(dst,”text”)
grid.DataSource = dst.Tables(”text”)
grid.DataBind
Use DataReader when you need just to display the data in one go - which is not all that common.
General pushkar on 08 Aug 2006
Common Programming Errors
Common errors that occurred at starting time, run time. Most Beginners users have a difficulties with common errors. So some of them are listed below. Those are covered from Programing Language like C, C++, PHP, ASP, ASP.net etc.
1.Providing Spaces between the operators like = =,< =,> = and ! =.
2.Use operators = instead of ==.
3.Take identifier as KeyWord.
4.Starting and Ending brace doesnot match correctly.
5.Uninitialised Variables.
6.Placing commas instead of semicolons.
7.Placing semicolon immediately after for OR while condition.
8.Placing a semicolon immediately after a function header.
9.Define function inside another function.
10.Filename is not correct while reference from another file OR Including (In both Case and Spell)
11.Expected Error Like , ;
12.Use the function that is given in Higher Version Or in other Library.
13.Infinite loop condition.
14.Use of function without declaration. A typical error in C++.
15.Variable Declaration error like variable that use in whole coding should be declare as Global Variable.
16.Object Reference cannot be set as an instance of object. Very common Error in Dot Net. This can be solved by declaring object as
bq. Dim ds as dataset
bq. ds = New Dataset(”temp”)
17.Use same object twice for different purpose. Like in asp/asp.net Recordset rs.