Muralidharan's profileMurali@B'lorePhotosBlogLists Tools Help

Blog


    May 25

    Find string from stored procedure (Sql Server)

     
     
    declare
    @search varchar(50)
    SET
    @search = '%systemparameter%'
    SELECT
    ROUTINE_NAME
    ,
    ROUTINE_DEFINITION
    FROM
    INFORMATION_SCHEMA
    .ROUTINES
    WHERE
    ROUTINE_DEFINITION
    LIKE @search
    ORDER
    BY ROUTINE_NAME
     
     
    May 24

    Get value of Querystring using Javascript

    var tabvalue = getQueryVariable("tab");


    --------------------------------------------------------------------------

    function getQueryVariable(variable)
    {
    var query = window.location.search.substring(1);
    var vars = query.split("&");
    for (var i=0;i<vars.length;i++)
    {
    var pair = vars[i].split("=");
    if (pair[0] == variable)
    {
    return pair[1];
    }
    }
    }
    May 14

    Debug Java Script

    I know all of us struggle when we are working in javascripts.
    Many of us will use alert box to debug the javascripts.
    But microsoft provides a debugging features in its VS products.
    unfortunately none of us use this facility. use this facility and
    enjoy working with JS wiht out any stess.

    for that u need to do a single word
    -------------------------------------------------

    simply put the word 'debugger' inside ur JS thats all, now u can enjoy
    the debugging facility.
    u can enjoy how u put breakpoints in cs debugging, the same u can use
    here too.

     eg)

    <script language="javascript">
    function SendAttach()
    {
    debugger
    ---
    ---
    ---

    }

    Note :
    ---------

    Kindly ensure the disable script debugging checkbox remains unchecked.

    To do
    --------
    IE--> Tools-->InternetOptions -->Advanced --> uncheck Disable Script
    Debugging (Internet Explorer)
    IE--> Tools-->InternetOptions -->Advanced --> uncheck Disable Script
    Debugging (Otheres)