"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Friday, February 22, 2013

Scroll text on webpage


Scroll text on webpage

Front end

<table width="100%" cellspacing="0px" cellpadding="0px" class="NewsBgColor">
    <tr>

Tuesday, February 19, 2013

2 hrs in my life

Today i gone for blood donation with my colleagues in RCC (Regional cancer center, Trivandrum,Kerala,India).That my first blood donation.After giving blood i gone unconscious.I really done know what happened to me.After sometime i find myself sitting in a bed near by an air cooler and i'm tired.I feel so bad and why should i be here...for an unknown ??? !!!.Worst day of my life ever. i lost more than 1 and half office hour.Today i cant be 8 hr in office otherwise i need to cancel my movie ticket.After half an hour i feel good and plan to leave the RCC. Then one of my colleagues introduced me to the donor's parents.My eyes suddenly catch the mom's eyes.That filled with tears and saying million thanks to me.i'm freezed. On way back to office i promised myself, will be back here after 3 months.

Monday, February 18, 2013

Monday, February 11, 2013

Bind Dropdown on Footer templete


protected void grdRequestHandling_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            try
            {
                if (e.Row.RowType == DataControlRowType.Footer)
                {
                    DropDownList dropdown = e.Row.FindControl("ddlAddRole") as DropDownList;

                    dropdown.DataSource = objBL.GetRoles();
                    dropdown.DataTextField = "RoleName";
                    dropdown.DataValueField = "RoleId";
                    dropdown.DataBind();
                }
            }
            catch (Exception)
            {
               
            }
        }


If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)

Thursday, February 7, 2013

decrypt a string in javascript which encrypted in c#

encrypted in string in c# and decrypt that in JavaScript


Code behind  
protected void Page_Load(object sender, EventArgs e)
    {
        Hdn.Value = "sdsd".EncodeTo64();
    }

Wednesday, February 6, 2013

auto resize jquery ui dialog box



$('#AddStage').dialog({ modal: true, "width": "auto" });


"width""auto"
don't forgot to all necessary js and css files

If u had any trouble just ask, Happy to help u :)
Stay Tune... Have a nice day... 'N happy Coding :)

Monday, February 4, 2013

get current date in storeprocedure

cast(getdate() as date)
simple and sexy isit?

If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)

Sunday, February 3, 2013

Moving focus around the table in Jquery

Last week i answered a question in a fourm ( http://forums.asp.net/p/1877841/5281857.aspx/1?How+can+I+move+the+focus+around+my+html+table+ ) to move focus around the cells in a table using jquery . i go with keypress event. below it goes.

Friday, February 1, 2013

addition operation in Grid inside the text box using javascript

Having addition operation on gridview in JavaScript.


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>