Tuesday, February 12, 2008

Copy Paste source as html- Visual Studio Add in

If you blogging your code in your blogs post. You waste lots of time to format your code like in IDE. I have a  solution for that. I have a found a add in which will copy paste code as html. So you don't need to do anything.

Here is the link for that..

http://www.jtleigh.com/people/colin/software/CopySourceAsHtml/

Share:

Windwos Live Writer Directly writing Blogs from desktop

If you are still logged in to blogger for writing yours blogs then here is the easy way to write blogs directly from your desktop.

Windows live writer is a free application for writing blogs from your desktop. It supports lots of provider. You just have to setup a blog once then you don't need to do anything.

here is the link to get live writer...

http://get.live.com/writer/overview

Happy programming....

Share:
Monday, February 11, 2008

GetYear Function in Java Script is not working properly in firefox

Hi Folks,

I have found that some times in firefox getyear function is not working properly. For example.We define a date value with following.

var dtTo = new Date("11-Feb-2007");

Now if you do alert like

Alert(dtTo.getYear());

But in firefix year is displaying like 107.So to fix this issue. I have used getFullYear function like

Alert(dtTo.getYear());

And It's working fine...

Share:
Thursday, January 17, 2008

How to show javascript alert message from asp.net code behind

Javascript is one of the most important language for webdevelopement. We need to build the interactive websites. For the desktop application Messagebox are very important thing for building interactive websites. But from server side (asp.net) we can not display messageboxes and other things. But with the help of java script we can display the alert(Messagebox) messages on our websites.

I have found a great link on this. Here is the link:

http://www.devnewz.com/devnewz-3-20061129JavaScriptAlertShowmessagefromASPNETCodebehind.html
Share:

ASP.NET validation control in Depth.

From asp.net 1.0 to ASP.NET 3.5 asp.net having validation controls like required field validator,Compare field validation, Range Validator,Validation Summary, Regular Expression Validator, Custom Validator.

This control can be use very efficiently without writing much of javascript and other code.

I have found a great link which describes each and every aspect of validation control from asp.net 1.0.

Here is the link for that article..

http://msdn2.microsoft.com/en-us/library/aa479045.aspx
Share:

How to Alter ColumnName in sql server with query..

We are normally using Alter Column Modify command to modify the column defination. But SQL Server does not support it. Rather then then that they are are supporting new syntax Like

"ALTER TABLE ALTER COLUMN"

Here is the syntax for ALTER TABLE command for sql server.

ALTER TABLE table { [ ALTER COLUMN column_name { new_data_type [ ( precision [ , scale ] ) ] [ COLLATE <> ] [ NULL NOT NULL ] {ADD DROP } ROWGUIDCOL } ] ADD { [ <> ] column_name AS computed_column_expression } [ ,...n ] [ WITH CHECK WITH NOCHECK ] ADD { <> } [ ,...n ] DROP { [ CONSTRAINT ] constraint_name COLUMN column } [ ,...n ] { [ WITH CHECK WITH NOCHECK ] CHECK NOCHECK } CONSTRAINT { ALL constraint_name [ ,...n ] } { ENABLE DISABLE } TRIGGER { ALL trigger_name [ ,...n ] } }

If you want more to know about it. Please visit following link at Micorosft sql server developement center.

http://msdn2.microsoft.com/en-us/library/aa275462(SQL.80).aspx
Share:

.NET Framework Source Code Available

Have you ever think that you can view the source code available for .net framework. If you have dream of it, this is the time to come it true. Microsoft has just released the source code to debug.

I have found a great post that how to debug the cod the .net framework.

Here is the link for the code...
http://www.hanselman.com/blog/NETFrameworkLibrarySourceCodeAvailableForViewing.aspx
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