Uploading And Extracting Zip in Asp.net

Uploading And Extracting Zip in Asp.net

Method for uploading and extracting a zip. Note:- 1.Please provide the path for saving the zip,dont copy the same text as it given below. 2.Please do not change any syntax of method you have to only change the destination folder path . public void Upload_And_Extract_ZIP() { if (FileUploadControlID.HasFile) { string filename = Path.GetFileName(FileUploadControlID.FileName); string ext = Path.GetExtension(FileUploadControlID.FileName); string Destination_Folder_Path = “Enter the full folder path where you want to save the zip”;
Payment through paypal in asp.net

Payment through paypal in asp.net

1. For Test First register it and login before payment. https://developer.paypal.com/ 2. Initialize Item for payment //Query String of Item Detail to send item description to paypal private string GetItemDtetail() { string strPayPalUrlType ="https://www.sandbox.paypal.com/cgi-bin/webscr";// For Test string strPayPalUrlType ="https://www.sandbox.paypal.com/cgi-bin/webscr";// For Live string cmd = "_xclick"; string redirect = ""; redirect += strPayPalUrlType; redirect += "?cmd=" + cmd;
Payment through Authorize.net in C#

Payment through Authorize.net in C#

1. Test Card Details Card Number: 4111111111111111 Cvv Code: 123 Exp Date:1013 2. Code // From serverside alert Function protected void jsCall(string alert) { string script = @"alert( """ + alert + @""" );"; ScriptManager.RegisterStartupScript(this, this.GetType(), "jsCall", script, true); } private bool AuthorizePayment() {
Payment through merchant gateway in Asp.net

Payment through merchant gateway in Asp.net

protected void Button1_Click(object sender, EventArgs e) { //Demo Url Process=https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do? //Live Url Process= https://www.myvirtualmerchant.com/VirtualMerchant/process.do? //One transaction will done at a time Test Card Number:4111111111111111 StringBuilder ob = new StringBuilder(); ob.Append("https://demo.myvirtualmerchant.com/VirtualMerchantDemo/process.do?"); ob.Append("ssl_merchant_id= Merchant Id"); ob.Append("&ssl_amount= Amount"); ob.Append("&ssl_user_id=User Id");