Tuesday, December 28, 2010

Change CSS style passwordstrenght meter in ASP.NET

Here You need to set CSS inside of head section in HTML page i.e. -


<style type="text/css">
.barIndicatorBorder {
border:solid 1px #c0c0c0;
width:200px;
}

.barIndicator_poor {
background-color:#EF0E17;
}

.barIndicator_weak {
background-color:#9F7779;
}

.barIndicator_good {
background-color:#3F373E;
}

.barIndicator_strong {
background-color:#2F0BBF;
}

.barIndicator_excellent {
background-color:#2F7F7D;  
}

.textbox {
border: solid 2px #cccccc;
border-top: solid 2px #a0a0a0;
}

</style>

HTML body element -

HTML body Element-
<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <cc1:PasswordStrength ID="PasswordStrength1" runat="server"
            TargetControlID="txt_Password"
            TextStrengthDescriptions="Poor; Weak; Good; Strong; Excellent"
            TextStrengthDescriptionStyles="barIndicator_poor; barIndicator_weak; barIndicator_good; barIndicator_strong; barIndicator_excellent">
        </cc1:PasswordStrength>
        <br />
        <br />
&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="Enter Password"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txt_Password" runat="server"></asp:TextBox>
        <br />
        <br />
   
    </div>
    </form>
</body>

Hope this is helpful for you.......

Friday, December 24, 2010

Brief Introduction About JSON

JSON(Java script object notification)

Feature Of JSON Object -

1.Lightweight data interchange formate
2. Easy to human read and right
3. Easy to machine parse and generate it


JSON is build on two structure

1. collection of name/value pair
2. Order list of array

 Get more info
http://www.json.org/
http://www.learn-ajax-tutorial.com/Json.cfm

Thursday, December 23, 2010

Handling backspace in IE extension

I post solution for textbox backspace problem which I am facing during creating a IE toolbar using band object. Here txtUserName and txtName_GotFocus could be different.


 public partial class IEToolbarEngine : BandObject
 {


          [DllImport("user32.dll")]

        public static extern int SendMessage(IntPtr hWnd, UInt32 Msg, UInt32 wParam, Int32 lParam);

        [DllImport("user32.dll")]

        public static extern int TranslateMessage(ref MSG lpMsg);

        [DllImport("user32", EntryPoint = "DispatchMessage")]

        static extern bool DispatchMessage(ref MSG msg);


        Public IEToolbar()
      {
                InitializeComponant();
                txtUserName.GotFocus  += new EventHandler(txtName_GotFocus);
                txtUserName.focus();  
      }
     Private void txtName_GotFocus(object sender, EventArgs e)
    {
                this.OnGotFocus(e);
    }

}

Hope this will be solve your issue.

Wednesday, December 22, 2010

Session Handling In PHP

Here I am posting basic function which are used for maintain session in PHP 

1. To Start/Open session

  session_start();

2. To set variable in session

  $_SESSION['variable_name'] = $value;

3. To remove all variable from session
 

  session_unset();

4. To destroy session

  session_destroy();

For getting more information read session handling function in PHP manual.

Monday, December 20, 2010

General Message

Dear Friend,

 Here I am making my blog site for sharing my experience with you. I will try make this site interactive for you.

Here I am posting my day to day problem  which I am facing during development  just go through here so that you will overcome issue which i was faced