Click here to Skip to main content
15,887,861 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: call the sql query from aspx page Pin
Vimalsoft(Pty) Ltd23-Sep-09 1:29
professionalVimalsoft(Pty) Ltd23-Sep-09 1:29 
AnswerRe: call the sql query from aspx page Pin
Ashfield23-Sep-09 1:30
Ashfield23-Sep-09 1:30 
AnswerRe: call the sql query from aspx page Pin
Not Active23-Sep-09 2:25
mentorNot Active23-Sep-09 2:25 
QuestionMy Login System website in ASP/NET runs great in the localhost, but I don't know how to take it to my host provider (Goddady), since I have a database that was created automatically in the ASP.NET configuration. Any hints? Pin
mamix6523-Sep-09 0:48
mamix6523-Sep-09 0:48 
AnswerRe: My Login System website in ASP/NET runs great in the localhost, but I don't know how to take it to my host provider (Goddady), since I have a database that was created automatically in the ASP.NET configuration. Any hints? Pin
sashidhar23-Sep-09 1:06
sashidhar23-Sep-09 1:06 
AnswerRe: My Login System website in ASP/NET runs great in the localhost, but I don't know how to take it to my host provider (Goddady), since I have a database that was created automatically in the ASP.NET configuration. Any hints? Pin
Illegal Operation23-Sep-09 17:50
Illegal Operation23-Sep-09 17:50 
QuestionPost an HTTP Request from one WebServer to another server. Pin
Sean Cleetus23-Sep-09 0:30
Sean Cleetus23-Sep-09 0:30 
AnswerRe: Post an HTTP Request from one WebServer to another server. Pin
sashidhar23-Sep-09 0:53
sashidhar23-Sep-09 0:53 
Sean Cleetus wrote:
Sending an HTTP Request from my server to any other server and getting the response


They Should also Give Response To Ur Server If thts the Case Then Ok
If U R Working With Third Party Then They Have A interface /Or the Coding Methods to Follow

The Below Code Was Used By Me For Credit card Authentication Which Innvolves Both
IT May Help..!


private string CreditCardCheck(decimal bidamount)
    {

        string relayResponse = GeneralSettings.CreditCardRelayResponse;
        string creditCardTestRequest = GeneralSettings.CreditCardTestRequest;
        string creditCardDelimData = GeneralSettings.CreditCardDelimData;
        string TrasactionId = "";
        String result = "";
        string expDate = "";
        expDate = DropDownMonth.SelectedItem.Text + DropDownYear.SelectedItem.Text;
        String strPost = "x_login=" + loginID + "&x_tran_key=" + trans_Key + "&x_method=CC&x_type=AUTH_ONLY&x_amount=" + bidamount + "&x_delim_data=" + creditCardDelimData + "&x_delim_char=|&x_relay_response=" + relayResponse + "&x_card_num=" + TextBoxCreditCardNo.Text + "&x_exp_date=" + expDate + "&x_test_request=" + creditCardTestRequest + "&x_version=3.1" + "&x_first_name=" + TextBoxCardholder.Text + "&x_last_name=" + TextBoxCardholderLastName.Text + "&x_company=" + TextBoxCompany.Text + "&x_address=" + TextBoxAddress.Text + "&x_city=" + TextBoxCity.Text + "&x_state=" + StatesDropDownlist.SelectedItem.Text + "&x_zip=" + TextBoxZipCode.Text + "&x_country=" + TextBoxCountry.Text + "&x_phone=" + TextBoxPhone.Text + "&x_fax=" + TextBoxFaxl.Text + "&x_email=" + TextBoxEMail.Text;
        StreamWriter myWriter = null;
        string url ="https://secure.authorize.net/gateway/transact.dll";
        HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
        objRequest.Method = "POST";
        objRequest.ContentLength = strPost.Length;
        objRequest.ContentType = "application/x-www-form-urlencoded";

        try
        {
            myWriter = new StreamWriter(objRequest.GetRequestStream());
            myWriter.Write(strPost);
        }
        catch (Exception ex)
        {
            logger.Error(ex.Message);
        }
        finally
        {
            myWriter.Close();
        }

        HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
        using (StreamReader sr =
           new StreamReader(objResponse.GetResponseStream()))
        {
            result = sr.ReadToEnd();

            string[] responsedetails = result.Split('|');
            TrasactionId = responsedetails[6].ToString();
           // Close and clean up the StreamReader
            sr.Close();
        }
        if (result.ToLower().Contains("invalid") || result.ToLower().Contains("inactive"))
        {
            
            return "CreditCardis notvalid";

        }
        return TrasactionId ;
    }


If It Helps Click It as Answer

GeneralRe: Post an HTTP Request from one WebServer to another server. Pin
Sean Cleetus23-Sep-09 1:07
Sean Cleetus23-Sep-09 1:07 
GeneralRe: Post an HTTP Request from one WebServer to another server. Pin
sashidhar23-Sep-09 1:10
sashidhar23-Sep-09 1:10 
GeneralRe: Post an HTTP Request from one WebServer to another server. Pin
N a v a n e e t h23-Sep-09 1:13
N a v a n e e t h23-Sep-09 1:13 
GeneralRe: Post an HTTP Request from one WebServer to another server. [modified] Pin
sashidhar23-Sep-09 1:25
sashidhar23-Sep-09 1:25 
AnswerRe: Post an HTTP Request from one WebServer to another server. Pin
N a v a n e e t h23-Sep-09 1:05
N a v a n e e t h23-Sep-09 1:05 
QuestionHow to Supress the Sub Report when there is no data in Crystal Reports Pin
arulselvanS23-Sep-09 0:15
arulselvanS23-Sep-09 0:15 
AnswerRe: How to Supress the Sub Report when there is no data in Crystal Reports Pin
sashidhar23-Sep-09 1:09
sashidhar23-Sep-09 1:09 
QuestionLINQ Disadvantages Pin
sris 42622-Sep-09 23:56
sris 42622-Sep-09 23:56 
AnswerRe: LINQ Disadvantages Pin
S.Dhanasekaran23-Sep-09 0:03
S.Dhanasekaran23-Sep-09 0:03 
GeneralRe: LINQ Disadvantages Pin
N a v a n e e t h23-Sep-09 0:46
N a v a n e e t h23-Sep-09 0:46 
AnswerRe: LINQ Disadvantages Pin
Manas Bhardwaj23-Sep-09 0:04
professionalManas Bhardwaj23-Sep-09 0:04 
AnswerRe: LINQ Disadvantages Pin
Vimalsoft(Pty) Ltd23-Sep-09 1:34
professionalVimalsoft(Pty) Ltd23-Sep-09 1:34 
QuestionRe: LINQ Disadvantages Pin
sris 42623-Sep-09 1:58
sris 42623-Sep-09 1:58 
AnswerRe: LINQ Disadvantages Pin
S.Dhanasekaran23-Sep-09 2:32
S.Dhanasekaran23-Sep-09 2:32 
GeneralRe: LINQ Disadvantages Pin
Not Active23-Sep-09 2:27
mentorNot Active23-Sep-09 2:27 
GeneralRe: LINQ Disadvantages Pin
Vimalsoft(Pty) Ltd23-Sep-09 2:41
professionalVimalsoft(Pty) Ltd23-Sep-09 2:41 
QuestionPrinting at specfic point at page Pin
Thekaninos22-Sep-09 22:53
Thekaninos22-Sep-09 22:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.