welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Tuesday, January 31, 2012

Credit card Number for testing in paypal sandbox account or Dummy credit card numbers for developers

some other account.But really i searched a lot to find the those duplicate credit card's number for testing in paypal sand box account.This post might help someone desperately search to find the testing credit card numbers.
I share a bit of useful inofrmation to those who try to testing an account in paypal or

While testing, use only the credit card numbers listed here. Other numbers produce an error.
Expiration Date must be a valid date in the future (use the mmyy format).

Test Credit Card Account Numbers
Credit Card Type
Credit Card Number
American Express
American Express
American Express Corporate
Australian BankCard
Diners Club
Diners Club
Note : Even though this number has a different character count than the other test numbers, it is the correct and functional number.
Processor-specific Cards
Dankort (PBS)
Dankort (PBS)
Switch/Solo (Paymentech)

Expiry Date: (any date in the future)
Verification Code: 123
Visa testing credit card:
Visa: 4688773863816040
Verification Code: 567

I hope u find something useful…

Monday, January 30, 2012

Error message 4000 from paypal:

Recently I worked with paypal integration..When sending synchronization request, if you got an error message number 4000.

Its denote that you crossed limitation sending request for the particular transaction ID..
For an every transaction id paypal send synchronization request only five times.

Note: For security reasons, PayPal will only allow you to use the transaction id to get a response up to 5 times. After that it will be invalidated and you will get an error back instead of the transaction data. Fair enough for regular use, but found it a bit annoying while developing since it took some tries to get the result I wanted :P

Thursday, January 26, 2012

Apply CSS style for Ajax Tab container in ASP.Net

Here i have share to apply a css code for ajax tab container in
In  previous article i wrote about custommize or how to use tab container for your reference i share a link below....
Apply below css for ajax tab container..

Css properties in ajax Tab container:
  • .ajax__tab_header: Denotes heading section of your tabs and also the font that appears in your tabs.
  • .ajax__tab_outer: Denotes outside edges of any non-selected tabs.
  • .ajax__tab_inner: Denotes inside of the non-selected tabs.
  • .ajax__tab_hover: Denotes What the tab (either selected or not) look like when the most is over them.
  • .ajax__tab_active .ajax__tab_outer: Denotes outside edges of the selected tab.
  • .ajax__tab_active .ajax__tab_inner: Denotes inside of the selected tab.
  • .ajax_tab_tab: Denotes every tab

<style type="text/css">
        .Tabcss .ajax__tab_header
            color: Black;
            font-size: 13px;
            font-weight: bold;
            background-color: White;
            margin-left: 10px;
        .Tabcss .ajax__tab_outer
            background-color: White;
        .Tabcss .ajax__tab_inner
            padding: 6px;
            margin-right: 1px;
            margin-left: 1px;
            margin-top: 1px;
            margin-bottom: 1px;
            background-color: #f8f6ea;
            border-left: 1px solid #C21517;
        .Tabcss .ajax__tab_hover .ajax__tab_outer
            background-color: #000000; /* border: 1px solid #C21517;*/ /* border-radius:8px 8px 8px 8px;*/
        .Tabcss .ajax__tab_hover .ajax__tab_inner
            background-color: #FFFFE1; /* border-radius:8px 8px 8px 8px;*/
        .Tabcss .ajax__tab_active .ajax__tab_outer
            background-color: #000000;
            border-radius: 10px 10px 10px 10px;
        .Tabcss .ajax__tab_active .ajax__tab_inner
            background-color: #fefdf7;
            border-radius: 10px 10px 10px 10px;
        .Tabcss .ajax__tab_tab
            cursor: pointer;

 <asp:TabContainer ID="Tabcont" runat="server"ActiveTabIndex="0" Width="300px" CssClass="Tabcss">

I hope you learn something useful........

Customize Ajax Tab container in ASP.Net


Ajax tab container has power full tool, it makes ease our needs. By using this tool we can accomplish everything on as single page.
Ajax tab container contains three main tag, tab container, tab panel, content template…Tab container is main tag if want more tab, we need to increase the tab panel. Once you refer the structure it’s easy to observe tab tool.

For apply css toAjax Tab container try this below link........

Tab container properties:

·         ActiveTabIndex - The first tab to show
·         Height - sets the height of the body of the tabs.
·         Width - sets the width of the body of the tabs
·         ScrollBars - Whether to display scrollbars in the body of the TabContainer
·         TabStripPlacement - Whether to render the tabs on top of the container or below (Top, Bottom)
·         Enabled - Whether to display the Tab for the Tab Panel by default.
·         OnClientClick - The name of a javascript function to attach to the client-side click event of the tab.
·         HeaderText - The text to display in the Tab
·         HeaderTemplate - A TemplateInstance.Single ITemplate to use to render the header
·         ContentTemplate - A TemplateInstance.Single ITemplate to use to render the body

Tab container structure:
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        <asp:TabContainer ID="Tabcont" runat="server" ActiveTabIndex="0" Width="300px" CssClass="Tabcss">
            <asp:TabPanel runat="server" HeaderText="Recent Items" ID="TabPanel1">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                        <asp:ListItem>Creating  ajax tab panel</asp:ListItem>
                        <asp:ListItem>Loading grd view</asp:ListItem>
                        <asp:ListItem>Deleting grid view</asp:ListItem>
            <asp:TabPanel runat="server" HeaderText="Mostviewed" ID="TabPanel2">
                    <asp:RadioButtonList ID="RadioButtonList2" runat="server">
                        <asp:ListItem>Creating slide show</asp:ListItem>
                        <asp:ListItem>Ajax article</asp:ListItem>

For apply css toAjax Tab container try this below link........

Thursday, January 19, 2012

Find a control in gridview or Datalist control

I share the bit of code to find the control present in the grid view..
For many instance we need to get the value or check the condition of the conrol..that time first we need to find the control in grid view or data list..
They are different ways to find the control..
for (int i = 0; i < GridView1.Rows.Count; i++)
    if (GridView1.Rows[i].RowType == DataControlRowType.DataRow)
        CheckBox chk =
        if (chk.Checked)

For i As Integer = 0 To GridView1.Rows.Count - 1
   If GridView1.Rows(i).RowType = DataControlRowType.DataRow Then
     Dim chk As CheckBox = _
     DirectCast(GridView1.Rows(i).Cells(0) _
     .FindControl("CheckBox1"), CheckBox)
     If chk.Checked Then
End if
End if

foreach(GridViewRow row in GridView1.Rows)
                var chkBox = row.FindControl("chkSelect") as CheckBox;


Finding textbox in gridview..
TextBox txt1;
String str;
 txt1 = GridView1.Rows[GridView1.EditIndex].FindControl("textbox1") asTextBox;

i hope this one be useful