Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

rakeshs312

@rakeshs312
About
Posts
109
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • opacity issue with ie6
    R rakeshs312

    Still the dropdowns are enabled when the popup appears

    Web Development help

  • opacity issue with ie6
    R rakeshs312

    i have a div and style .modalBackground { background-color: Gray; filter: alpha(opacity=70); opacity: 0.7; } . This is for when loading a popup , disabling the background. but in IE6 all the dropdowns are enabled, What i can do for this Thanks in Advance Rk

    Web Development help

  • dropdown issue
    R rakeshs312

    Hi All, I have a dropdown with two options."All" and "Selected". "All" is the default value. In selected index_changed event , when i changed to second option, it is hitting , but when going back to "All" ,the event is not firing. Drop down's viewstate and autopostback properties are true. Thanks Rk

    C# database help

  • Selected rows in a gridview
    R rakeshs312

    Hi, there is no status for the selected row in the database . this is an aspx grid. i need to hide the unselected rows Thanks Rk

    C# css

  • Selected rows in a gridview
    R rakeshs312

    Hi all, i have a aspx grid with checkboxes for selecting the rows. I have some rows seleted and unselected rows also. how i can display only selected rows in the selectedindex_changed event of a dropdown Thanks Rk

    C# css

  • Selecting issue in SQl Server
    R rakeshs312

    I have a sp for selecting all the records(policies here) and it should display 3 records and remainig in 'all others' category and total. But this is displaying 'all others' if there is less than 3 records. Waht should do for this

    CREATE Procedure [dbo].[cpGetFirmRemittedPolicySummaryByPolicyType]
    @firmId int = null,
    @totalPoliciesToShow int = 0,
    @currentDate datetime = NULL
    AS
    BEGIN
    /******************************************************************************************

    Name: cpGetFirmRemittedPolicySummaryByPolicyType

    Description: Returns a dataset with the count of remitted policies types by
    MTD, YTD and Prior Year.

    Parmeters:
    @firmId - Id of the firm that need to retrieve data for

    @totalPoliciesToShow - The number of unique policy types to display for the current month. If there
    are more than totalPoliciesToShow policies in a given month the remaining ones are rolled up into
    the 'All Others' Category. If the value is 0, then there is no rollup into the 'All Others' category,
    all policy types are shown. There is one case where the 'All Others' category could still show with
    the @totalPoliciesToShow value of 0. That is when there are policy types that exist for YTD or Prior
    Year but not in MTD. In this case, the All others category will show zero for MTD but will have a
    value for YTD and/or Prior Year.

    @currentDate - Date to be used as current date. If the value is not supplied, then the current date
    is used. If a value is supplied, then that date is used to be considered as the current date. Added
    for testing purposes.

    Testing:
    -- Show all policies types for Firm Id 3244631 for the current date
    exec dbo.cpGetFirmRemittedPolicySummaryByPolicyType 4699056, 0

    -- Show top 3 policies types for Firm Id 3244631, rolling all others into ALL OTHERS for current date
    exec dbo.cpGetFirmRemittedPolicySummaryByPolicyType 3244631, 3

    -- Show top 3 policies types for Firm Id 3244631, rolling all others into ALL OTHERS, using 12/12/2012
    -- as current date
    exec dbo.cpGetFirmRemittedPolicySummaryByPolicyType 3244631, 3, '12/12/2012'

    ********************************************************************************************/

    SET NOCOUNT ON

    declare @debug bit = 0
    declare @ALL_OTHERS varchar(10) = 'All Others'

    -- If the @currentDate is NULL then use the current system date, otherwise use the date passed
    -- This is used for testing purpose

    Database css sharepoint database sql-server sysadmin

  • Text replace
    R rakeshs312

    Thanks for the reply . i Found a solution like this

    function ValidateTimeControl(s, e) {
    var isValidHour = true;
    var isValidMin = true;
    var hours, minutes;
    if (e.value != null) {
    if (e.value.substring(0, 1).trim() == "" || e.value.substring(1, 2).trim() == "" ) {
    isValidHour = false;
    }
    if (e.value.substring(3, 4).trim() == "" || e.value.substring(3, 4).trim() == "") {
    isValidMin = false;
    }
    else {
    hours = parseInt(e.value.substring(0, 2), 10);
    minutes = parseInt(e.value.substring(3, 5), 10);

            if (hours > 12) {alert(hours)
                isValidHour = false;
                
            }
    
            if (minutes > 59) {
                isValidMin = false;
                
            }
        }
    }
    else {
        isValidHour = false;
        isValidMin = false;
    }
    
    if (isValidHour == false && isValidMin == false) {
        e.value = '00:00';
    } else if (isValidHour == false) {
        e.value = e.value.replace(hours, '00');
    } else if (isValidMin == false) {
        e.value = e.value.replace(minutes, '00');
    }
    

    }

    JavaScript

  • Text replace
    R rakeshs312

    I have a text box andit will accept only time in the format 00:00(maximum value can be 12:59) . If user enter any of the value greater than this that part only needs to become 00. i have the code like this,but it will change the whole value to 00:00 . In the greater than conditions, what i have to write .

    function ValidateTimeControl(s, e) {
    var isValid = true;
    if (e.value != null) {
    if (e.value.substring(0, 1).trim() == "" || e.value.substring(1, 2).trim() == "" || e.value.substring(3, 4).trim() == "" || e.value.substring(3, 4).trim() == "") {
    isValid = false;
    }
    else {
    var hours = parseInt(e.value.substring(0, 2), 10);
    var minutes = parseInt(e.value.substring(3, 5), 10);

            if (hours > 12) {alert(hours)
                isValid = false;
                
            }
    
            if (minutes > 59) {
                isValid = false;
            }
        }
    }
    else {
        isValid = false;
    }
    
    if (!isValid) {
        e.value = '00:00';
        
    }
    

    }

    Thanks Rks

    JavaScript

  • Postback issue
    R rakeshs312

    thanks

    ASP.NET css help

  • Postback issue
    R rakeshs312

    I Have a gridview . When i click one of the files in the gridview , it will display the file details in a table in the grid.But if i am in 20th or 19th page of the gridview, after clicking on the file , the grid is comming to page 1. Is there any property for the grid to prevent this.

    ASP.NET css help

  • Buttons are not working for enterkey press
    R rakeshs312
    ASP.NET

  • Tab index with firefox issue
    R rakeshs312

    These are the buttons and UseSubmitBehavior will not help . Firefox version is 16.0.2

    ASP.NET help database

  • Tab index with firefox issue
    R rakeshs312

    Hi All, When i am hitting Enter key after focused to a button with tab key , nothing is happening , but when i am hitting spacebar ,it is working (in Firefox) . What will be the issue . Please help Thanks Rks

    ASP.NET help database

  • What is this doing
    R rakeshs312
    ASP.NET question

  • Aspx control
    R rakeshs312

    Hi All, I have a control like this

    This will take 12.59 as maximaum . But if i am entering morethan that like 22.99 , 12.59 is comming , i need to 00.00 if i am entering a higher value than 12.59. Please help Thanks Rk

    ASP.NET help

  • Logout control hide in login page using master page
    R rakeshs312

    Menu MyMasterMenu = (Menu)Master.FindControl("logoutLink"); MyMasterMenu.Visible = false; I done like this in my login page but not working

    ASP.NET

  • Logout control hide in login page using master page
    R rakeshs312

    Hi all, I have a control in my master page like this
    Logout How i can hide this in my login page using this master page

    ASP.NET

  • FInd Sundays only
    R rakeshs312

    Thanks verymuch for all

    Database help question

  • FInd Sundays only
    R rakeshs312

    Hi all, I have two dates, from date and to date. i need to display only sundays between that days[IN SQLSERVER2008] How can i do this. Please help and thanks in advance Rakesh

    Database help question

  • Clearing IE browsing history
    R rakeshs312

    HI all, How can i clear IE history with c# Thanks Rakesh

    C# csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups