Thursday, March 8, 2007

C#.NET Coding Industry Standards.

Lots of people are creating and devleoping the application using Microsoft.NET plateform but still don't know the right way to code it. Here is the link for .NET Coding Standards that a developer must following while developing application.

http://www.irritatedvowel.com/Programming/Standards.aspx
Share:

What is Blog & RSS

Lots of people don't know about blog and rss. I have found a great atricle in msdn which is explaining all aspects of the Blog and RSS.

Here is the link ...
http://msdn.microsoft.com/msdnmag/issues/04/04/XMLFiles/
Share:

TRY-CATCH Block-SQL Server

In SQL server 2000, to handle sql server exception we have to use goto statement while in the sql server 2005 support the try-catch type of exception handling just like vb.net or c#.

here is exmple of it.


set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go


CREATE PROCEDURE [dbo].[sp_InsertState]
@StateId int,
@Name varchar(30)
AS
BEGIN
declare @Error Int
declare @TableName sysname
declare @ErrorMessage nvarchar(2000)
BEGIN TRY
BEGIN TRANSACTION
SET NOCOUNT ON;
INSERT INTO tbl_State_Master
(stateid, name, isactive)
VALUES (@StateId,@Name,1)
SET NOCOUNT OFF;
COMMIT TRANSACTION;
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION
set @ErrorMessage=ERROR_MESSAGE()
RAISERROR('State can not be inserted',16,1)
END CATCH
END
Share:

Proctect your blog content

I have found great site which will list the users who are using content without your site.
So you can protect your blog content.

here is the link ....
http://www.copyscape.com/
Share:
Friday, March 2, 2007

Spalsh Screen -C#

It is a good idea to create splash screen when you loading data on the main form. So splash screen resides till the data loaded on the screen.

Fist design a form then set formborderstyle property to "SizableToolWindow"
set ControlBox Property to "False"
set StartPosition Property to "CenterScreen"
set WindowState Property to "Normal"

Import following name space with using directive


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;


then write following code on the your main forms load event


FrmSplash frm = new FrmSplash();
frm.Show();
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();

////do your work here you can put your code to load data
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();
Application.DoEvents();
frm.Close();
Share:

Indian Buget Effects on the Technology

The Indian Finance Minister has presented a financial budget for year 2007-2008. The FM has put a 12% met tax on softwares.

I have found a very ineresting site where we can found whole effects of budgets on technology .
here is the link

http://www.tech2.com/budget
Share:

Enterprise Resource Planning....

Our company have decided to develope a Enterprise Resource Planning System. We are new to this.So please put us some comments how we should start and how we develope this erp system.
You can put your comments at my blog Jalpesh or Sameer.

I am eagarly waiting my users Comments.

Have a nice time....
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews