Friday, February 15, 2008

Regular Expression Library

Regular expression is hottest technology nowdays. It saves lots of time of development. In asp.net we can use regular expression in regular expression as regular expression validation control.

I have found the very good resource of ready made regular expression.

Here is the link for that.

http://regexlib.com/Default.aspx

The RegExLib.com, the Internet's first Regular Expression Library. Currently it has indexed 1974 expressions from 1203 contributors around the world.

Share:
Thursday, February 14, 2008

Infosys Guys are blogging about .NET

Infosys is India's most well know company at we all know.Recently I have visited the Infosys and I found there blogs about Microsoft Technologies. I had read some entries and I found lots of things to learn.

here is the link for there blogs about Microsoft technology.

http://infosysblogs.com/microsoft/net_20/

Share:

Get a Blog on WindowsClient.NET.

If you are serious windows developer and intersted in blogging then windowsclient.net is a plateform to share your knowledge. You can create your blogs there. Microsoft has opened now for new bloggers.

here is the link to signup blogs there..

http://windowsclient.net/community/blog-with-us.aspx

Happy blogging...

Share:

My new blog at weblogs.asp.net

Well thanks to Joe Stagner and his team i got blog on the weblogs.asp.net which is  a very good community of asp.net. You can see my posting at there

http://weblogs.asp.net/JalpeshPVadgama

No need to worry for this blog as i am constaly posting on both the blogs. Some posts may diffrer because this is my personal blog and i will post all the entries that i will post on weblogs at asp.net.

Microsoft have opened the asp.net community for some time so if you wanna blog there on weblogs.asp.net. You just need to create a account on asp.net site and then request a weblog to joe at following link.

 

http://www.joeon.net/post/2008/01/Wanna-Blog-on-ASPNET-.aspx

and that is once joe will approve your blog. You are ready to blog there.

Share:
Tuesday, February 12, 2008

Three common mistake while creating application with ajax

I have found a great article about developing a application with ajax enabled rich text website.

Here is the three mistakes we are making..

  • Page events still fire during partial postbacks.
  • UpdatePanel events fire, even when not updating.
  • Control event handlers fire after Load events
  • Dave has posted a very good article on above mistake.

    Here is the link for that..

    http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/

    Share:

    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:
    Wednesday, November 28, 2007

    Some handy Visual Studio 2005 shortcuts

    We always use to perform the things faster without interacting with mouse. I have found a great link for visual studio 2005 short cuts. It's is very use ful when we want to save time while developing applications.

    Here is the link:

    http://jason.diamond.name/weblog/2006/07/29/some-handy-visual-studio-2005-keyboard-shortcuts
    Share:

    How to debug process with visual studio 2005 + aspnet_wp.exe

    Some time while you are testing you need to debug some things in your asp.net application. Suppose you have run the application with ctrl + f5 and now you want to debug some things, then there are two things either you close the browser and press f5 and start debuging but if your application is heavy that will waste lots of time for your application, second way is some thing tricky but you can debug things.

    We have aspnet_wp.exe(asp.net worker process) running on machine where iis and application is installed. Now suppose at present you are browsing default.aspx page and you want to debug it without pressing f5 . Then go to the your visual studio IDE -> Debug menu-> Attach Process. Select the aspnet_wp.exe process and click 'attach to process'. Now your application instance will bind with code. You can set the debug point as you do with normal debugging and it will work just as normal debugging.

    So you can start debugging without wasting so much time.

    Happy Programming...
    Share:
    Tuesday, November 27, 2007

    What's new in visual studio 2008 and .NET Framework 3.5

    Microsoft has just released the visual studio 2008 and .net framework 3.5. I have found a great link to discover what's new in visual studio 2008 and .net framework. The Link contains following things.

    1) WPF improvements.
    2) What's new in visual studio 2008
    3) What's new in .net framework 3.5

    Here is the link for that:

    http://windowsclient.net/vstudio2008.aspx
    Share:

    Visual Studio 2005 and .NET Framework 3.5Release

    Visual Studio 2008 and .NET framework released by the Microsoft recent days.It has lots of new features compare to it's prior version.

    With asp.net 3.5 you can now develop web application as you are developing desktop application. You can give functionality to asp.net web application just like desktop with lots of new technologies with .net framework 3.5.

    I have found a great link form where you can download asp.net 3.5 and visual studio 2008.

    Here is the link:
    http://www.asp.net/downloads/vs2008/
    Share:

    What is diffrenece between string.compare and string.compareordinal

    String.Compare can be or not be case-sensitive, and can incorporate anynumber of comparison options, including culture-sensitivity and sortingrules. That is, it is not comparing the exact strings necessarily, but canbe configured to do various sorts of comparisons. String.CompareOrdinalcompares the numeric values of the individual Unicode characters of thestrings. In other words, it is always case-sensitive, and neverculture-sensitive.

    String.CompareOrdinal is faster (more efficient) when you don't need to do aculture-sensitive comparison, and you do want to do a case-sensitivecomparison.String.CompareTo is case-sensitive, using an Ordinal comparison, andculture-sensitive, but always uses the current culture. It is faster thanString.Compare, but less efficient than String.CompareOrdinal.
    Share:
    Thursday, November 15, 2007

    Free ASP.NET Icons

    We need icon to display various operations. Actually a image can speak more virtually then the text. I have found a great free collection of icons for asp.net and other applications.

    Here is the link for that...
    http://www.aspneticons.com/

    You can download it free from above link.
    Share:

    CUBE and Roll Up in SQL Server

    Some time we need to summarize data very quickly without writing very complex query. CUBE And ROLL UP are great commands that give us very good summary options.

    We can summarize the data without writing dirty and complex queries with the help of CUBE and ROLL Up Operators.

    I have found a great link for CUBE and ROLL UP to understand it deeply.

    Here is the link for that.
    http://databases.about.com/od/sql/l/aacuberollup.htm
    Share:

    Visual Studio 2005 Keyboard Short Cuts

    Visual Studio 2005 is a great IDE to develop .NET applications. But If we don't know the keyboard shortcut for some function we have to do it with mouse and it will take lots of time.

    I have found a great link which contains almost all the short cut for keyboards.

    Here is the link for that article...
    http://www.codinghorror.com/blog/files/Visual%20Studio%20.NET%202005%20Keyboard%20Shortcuts.htm
    Share:
    Thursday, November 8, 2007

    Enabling Java script debugging + visual studio 2005

    You can debug java script in visual studio 2005 by default. If your browser support java script debugging. For example Internet Explorer 7 provides this support.

    You can go tools->Options-> Advance tab where you have two tick boxes.

    1) Disable Script Debugging(Internet Explorer)
    2) Disable Script Debugging(other).

    Untick the tick box and then you can directly debug your java script via visual studio 2005 directly just as you do with your asp.net server side code.
    Share:

    ASP.NET,Visual Studio 2008 and .Net Framework 3.5

    ASP.NET is a great platform to develop web base application. It always been pleasure to develop application in asp.net. Microsoft has recently launched the new .net framework 3.5. There are some new features provided in asp.net 3.5. I have found a great link that will discuss and have information you want to know about asp.net 3.5 framework version.

    Following are the some of the new feature that are included in .net framework 3.5 and described in the article.

    1. ASP.NET and Ajax
    2. New list and data pager controls
    3. Linq and other .net 3.5 enhancements
    4. WCF Support for RSS, JSON, POX and Partial Trust

    Following are some new features that are described in article for visual studio 2008

    1. New Design Interface
    2. Javascript debugging and intelisense
    3. Multitargetting support.

    Here it the link for that article...

    http://www.asp.net/downloads/vs2008/

    Share:
    Tuesday, October 16, 2007

    Master pages and child pages -Page Excecution.

    Lots of people are in confusion whether the master pages are loaded first or content page(child page is loaded first.I want to make it more clear.

    Following is page execution structure of the master page and child pages.

    First the controls of the master page will instantiated and then control of the child page is instantiated.

    Then the first the page_load event of the child page is executed and then page_load of event is executed.
    Share:
    Monday, October 15, 2007

    What is the diffrence between abstract(must inherit) class and inteface

    Following are the main difference between abstract class and interface.

    1. Abstract class can contain abstract method while interface does not.
    2. Abstract class can contain method body while interface does not.
    3. Methods in abstract class can contain any valid access specifier while in interface public access specifier is only allowed.
    4. Abstract class can contain methods with body while interface can contain only method signature.

    For VB.NET abtract class is must inherit class.
    Share:

    Overriding static member in child class with C#.NET,VB.NET

    Static member are accessible without creating the objects of the class so you don't need to create a object for that class.

    Micorosft CLR does not permit the static methods to be override in child class. But off course you can hide the static method of parent method with new keyword in child class. Here is the example of that.


    public class A
    {
    public static virtual void Test()
    {
    }
    }
    public class B : A
    {
    public new override static void Test()
    {
    }
    }
    Share:

    What is diffrence between string and String in C#.net

    There is no diffrence between string and String. string is a alias created by microsoft for System.string.

    There are some other datatypes for which microsoft has created the alias.

    These are the aliases defined:

    string->System.String

    sbyte->System.SByte

    byte->System.Byte

    short->System.Int16

    ushort->System.UInt16

    int->System.Int32

    uint->System.UInt32

    long->System.Int64

    ulong->System.UInt64

    char->System.Char

    float->System.Single

    double->System.Double

    bool->System.Boolean

    decimal->System.Decimal
    Share:
    Tuesday, October 9, 2007

    How to insert a item in databound dropdownlist at nth position

    Hello guys,

    Sorry for not posting anything for long time. Actually i was busy about changing my job.

    We have use the dropdownlist with millians of time some developer still does not know that how to insert the listitem at particular level.

    Suppose your dropdownlist is having 5 items and it isbound with some datasource and you want to insert "--Select---" on the top of the order. You can do it easily with following code.

    DropDownList1.Items.Insert(0, new ListItem("--Select---", "0"));

    So "--Select--" will be added at the top of the dropdownlist box. You can add it at any index as you want via specifing index as first argument.

    If you are using the asp.net 2.0 then it is having one property
    AppendDataBoundItems set it to true and write directly a new list item in html code. It will work.

    Happy Programing...


    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