Tutorials

Search an object in Dababase

Submitted by planetsourcecode on
Always forgot to remember one query. So for them only Below query you can any table, stored procedure or views who ever have that expression as a column or object name. SELECT * FROM SYSOBJECTS WHERE ID IN (SELECT ID FROM SYSCOMMENTS WHERE TEXT LIKE ‘%PRODUC%’) The query produced all the object names. where ever it finds expression like ‘PRODUC‘

Barcode development in dot net

Submitted by planetsourcecode on
Recently we were working on Barcode application and want details of the Barcode mechanism like how the barcode works, what are the different types of barcode, which one is better for which condition and other important questions by googling we got the following website which are providing efficient information to deal with these type of issues

5 Tips & Tricks in ASP.NET

Submitted by planetsourcecode on
Trick #1 Delete a selected row from a DataGrid using c# Double click the dataGrid and write the code private void DataGridvie_selected(Object sender,EventArgs e) { DataSet da=new DataSet(); int i=datagrid1.selectedIndex; int empidval=ds.Tables["emp"].Rows[i][0].ToString(); SqlConnection conn=new Sqlconnection("conn string"); conn.Open();

Printing in ASP.NET

Submitted by planetsourcecode on
In windows desktop application it is easy to print a form data for report or other purpose but in asp.net web form it is not easy to print a page. The printing on client side needs solutions for different conditions using JavaScript The simplest way to print a web form is to use client side JavaScript. To print a web page, you can use code like this:

Exception Handling

Submitted by admin on

What is an Exception?

Definition:

“When an unusual, irregular, abnormal or nonstandard condition arises in a sequence of code at run time this phenomenon is referred as Exception handling

An exception is a runtime error.

In Object Oriented, an exception is an object that is used to describes an exceptional condition that has occurred in a piece of code.

Skins and themes in ASP.NET

Submitted by planetsourcecode on
Sometimes we have to design those pages which have different color schemes but it is very difficult to maintain these types of pages. We can overcome from this situation by using skins and themes. This makes these things easier. 1). First create a Master Page having the following components. * One Content Placeholder 2).Create another page (default.aspx) and select the Master Page

Interfaces

Submitted by admin on

Definition:

In java programming language, an interface is an abstract, conceptual or concrete type that is used to specify an interface.

How to use an interface:

  • By using the key word interface, we can fully abstract a class interface from its implementation.

It means that, using interface, we can specify what a class must do, but not how it does it.

Inheritance

Submitted by admin on

What is inheritance?

Inheritance is a process which allows inheriting the methods and properties of parent or super class.

OR

Deriving an object from an existing class (super class)