Setting up Master Page at runtime in asp.net
July 21st, 2010 by Sanket
Setting up Master Page at runtime in asp.net
Many times we needs to decide master page at runtime.
Here is quick help for the same.
You will have to use ‘Page_PreInit’ method. In that set MasterPageFile attribute of current page to required master page.
And Done !
protected void Page_PreInit(object sender, EventArgs e)
{
this.Page.MasterPageFile = “~/MasterPages/” + mymaster...Delete All Stored Procedures and Views in SQL
July 17th, 2010 by Sanket
Delete All Stored Procedures
declare @procName varchar(500)declare cur cursor for select [name] from sys.objects where type = 'p'open cur
fetch next from cur into @procName while @@fetch_status = 0 begin if @procName <> 'DeleteAllProcedures' exec('drop procedure ' + @procName) fetch next from cur into @procName end
close...Delete All Tables in MS SQL
July 16th, 2010 by Sanket
Delete All Tables – MS SQL Query
--Delete All Keys
DECLARE @Sql NVARCHAR(500) DECLARE @Cursor CURSORSET @Cursor = CURSOR FAST_FORWARD FORSELECT DISTINCT sql = 'ALTER TABLE [' + tc2.TABLE_NAME + '] DROP [' + rc1.CONSTRAINT_NAME + ']'FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc1LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc2 ON tc2.CONSTRAINT_NAME =rc1.CONSTRAINT_NAMEOPEN @Cursor FETCH...Touchless – A webcam multi-touch sdk (Image processing future)
July 15th, 2010 by Sanket
Touch less – A webcam multi-touch sdk
Look at the following video.
You can surely say future is of image processing !!!
You can download this SDK and integrate it in your application.
http://touchless.codeplex.com/
Custom Installer Class to create setup tasks in Visual Studio Setup Project
July 8th, 2010 by Sanket
Custom Installer Class to create setup tasks in Visual Studio Setup Project
Sometimes we have to perform custom tasks that are not there in ‘Visual Studio setup project’.
Installer Classes are great tools that you can develop and integrate with your Setup and Deployment Projects in order to perform additional tasks while running any application’s installation or un-installation process, though...Microsoft’s eight core businesses
July 1st, 2010 by Sanket
Microsoft’s eight core businesses
We know that Microsoft has too many products and services.
From them, there are only few which gives revenue to Microsoft.
Microsoft has eight core focus areas to focus on, General Manager of Investor Relations Bill Koefoed, told the Wall Street analysts.
The eight, according to Koefoed:
Xbox and TV
Bing
Office
Windows Server
Windows Phone
Windows...