vijay

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.
hi
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
378282246310005
American Express
371449635398431
American Express Corporate
378734493671000
Australian BankCard
5610591081018250
Diners Club
30569309025904
Diners Club
38520000023237
Discover
6011111111111117
Discover
6011000990139424
JCB
3530111333300000
JCB
3566002020360505
MasterCard
5555555555554444
MasterCard
5105105105105100
Visa
4111111111111111
Visa
4012888888881881
Visa
4222222222222
4688773863816040
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)
76009244561
Dankort (PBS)
5019717010103742
Switch/Solo (Paymentech)
6331101999990016

Note:
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 asp.net..
In  previous article i wrote about custommize or how to use tab container for your reference i share a link below....
http://www.dotnetcode.in/2012/01/customize-ajax-tab-container-in-aspnet.html
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;
        }
    </style>


 <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


Introduction:

Ajax tab container has power full tool, it makes ease our needs. By using this tool we can accomplish everything on as single page.
Description:
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:
<div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:TabContainer ID="Tabcont" runat="server" ActiveTabIndex="0" Width="300px" CssClass="Tabcss">
            
            <asp:TabPanel runat="server" HeaderText="Recent Items" ID="TabPanel1">
                <ContentTemplate>
                    <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:RadioButtonList>
                </ContentTemplate>
            </asp:TabPanel>
            
            <asp:TabPanel runat="server" HeaderText="Mostviewed" ID="TabPanel2">
                <ContentTemplate>
                    <asp:RadioButtonList ID="RadioButtonList2" runat="server">
                        <asp:ListItem>Creating slide show</asp:ListItem>
                        <asp:ListItem>Ajax article</asp:ListItem>
                    </asp:RadioButtonList>
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>





I
For apply css toAjax Tab container try this below link........
http://www.dotnetcode.in/2012/01/apply-css-style-for-ajax-tab-container.html.

Thursday, January 19, 2012

Find a control in gridview or Datalist control asp.net


Hi..
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..
C#
for (int i = 0; i < GridView1.Rows.Count; i++)
{
    if (GridView1.Rows[i].RowType == DataControlRowType.DataRow)
    {
        CheckBox chk =
         (CheckBox)GridView1.Rows[i].Cells[0].FindControl("CheckBox1");
        if (chk.Checked)
        {
}
}}

 VB
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
Next

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

                if(chkBox.Checked)
                {
}}

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

i hope this one be useful