Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSAML Pin
Jay Nathan128-Dec-09 21:49
Jay Nathan128-Dec-09 21:49 
Questionhow to handle postback event incloud computing Pin
krishnaveer28-Dec-09 20:49
krishnaveer28-Dec-09 20:49 
AnswerRe: how to handle postback event incloud computing Pin
Abhishek Sur28-Dec-09 21:42
professionalAbhishek Sur28-Dec-09 21:42 
AnswerRe: how to handle postback event incloud computing Pin
Addison Caffery31-Jan-10 20:03
Addison Caffery31-Jan-10 20:03 
GeneralRe: how to handle postback event incloud computing Pin
RyanJos4-Mar-10 20:04
RyanJos4-Mar-10 20:04 
QuestionCredit card processing (.cgi) Pin
Hemant Thaker28-Dec-09 20:29
Hemant Thaker28-Dec-09 20:29 
AnswerRe: Credit card processing (.cgi) Pin
satalaj29-Dec-09 1:17
satalaj29-Dec-09 1:17 
GeneralRe: Credit card processing (.cgi) Pin
Shivendra Pandey30-Dec-09 0:48
Shivendra Pandey30-Dec-09 0:48 
\\Create A Class
using System;
using System.Collections.Generic;
using System.Text;

namespace Shivam
{
public class RemotePost
{
private System.Collections.Specialized.NameValueCollection Inputs = new System.Collections.Specialized.NameValueCollection();


public string Url = "";
public string Method = "post";
public string FormName = "form1";

public void Add(string name, string value)
{
Inputs.Add(name, value);
}

public void Post()
{
System.Web.HttpContext.Current.Response.Clear();

System.Web.HttpContext.Current.Response.Write("<html><head>");

System.Web.HttpContext.Current.Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", FormName));
System.Web.HttpContext.Current.Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", FormName, Method, Url));
for (int i = 0; i < Inputs.Keys.Count; i++)
{
System.Web.HttpContext.Current.Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", Inputs.Keys[i], Inputs[Inputs.Keys[i]]));
}
System.Web.HttpContext.Current.Response.Write("</form>");
System.Web.HttpContext.Current.Response.Write("</body></html>");

System.Web.HttpContext.Current.Response.End();
}
}
}
//Class End


\\On Button Click Write Following Line of Code
\\Change Key Value as well as payment provider Based on ur field
RemotePost myremotepost = new RemotePost();
myremotepost.Url = "https://www.myvirtualmerchant.com/VirtualMerchant/process.do";
myremotepost.Add("ssl_amount",ssl_amount.Value);
myremotepost.Add("ssl_merchant_id",ssl_merchant_id.Value);
myremotepost.Add("ssl_pin",ssl_pin.Value);
myremotepost.Add("ssl_show_form",ssl_show_form.Value);
myremotepost.Add("ssl_transaction_type", ssl_transaction_type.Value);
myremotepost.Add("ssl_result_format", ssl_result_format.Value);
myremotepost.Add("ssl_receipt_decl_method", ssl_receipt_decl_method.Value);
myremotepost.Add("ssl_receipt_decl_get_url", ssl_receipt_decl_get_url.Value);
myremotepost.Add("ssl_receipt_apprvl_method", ssl_receipt_apprvl_method.Value);
myremotepost.Add("ssl_receipt_apprvl_get_url", ssl_receipt_apprvl_get_url.Value);
myremotepost.Post();
QuestionNeed SSRS format help Pin
siddisagar28-Dec-09 19:39
siddisagar28-Dec-09 19:39 
AnswerRe: Need SSRS format help Pin
Abhishek Sur28-Dec-09 20:24
professionalAbhishek Sur28-Dec-09 20:24 
GeneralRe: Need SSRS format help Pin
siddisagar28-Dec-09 21:31
siddisagar28-Dec-09 21:31 
GeneralRe: Need SSRS format help Pin
sashidhar28-Dec-09 22:39
sashidhar28-Dec-09 22:39 
QuestionInserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
Tufail Ahmad28-Dec-09 18:43
Tufail Ahmad28-Dec-09 18:43 
AnswerRe: Inserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
vinodkrebc28-Dec-09 19:48
vinodkrebc28-Dec-09 19:48 
GeneralRe: Inserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
Tufail Ahmad28-Dec-09 20:16
Tufail Ahmad28-Dec-09 20:16 
AnswerRe: Inserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
nagendrathecoder28-Dec-09 20:27
nagendrathecoder28-Dec-09 20:27 
AnswerRe: Inserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
Abhishek Sur28-Dec-09 20:52
professionalAbhishek Sur28-Dec-09 20:52 
AnswerRe: Inserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
dongavipul28-Dec-09 20:57
dongavipul28-Dec-09 20:57 
AnswerRe: Inserting Empty Row in Grid View in ASP Dot net + vb dot net Pin
satalaj29-Dec-09 1:19
satalaj29-Dec-09 1:19 
QuestionHow the Filter by tag feature on Code Project is done ? Pin
Pradeep_Nair28-Dec-09 14:33
Pradeep_Nair28-Dec-09 14:33 
QuestionImporting .cer into .pfx Pin
siva.lankada28-Dec-09 13:32
siva.lankada28-Dec-09 13:32 
QuestionTreeview indentation not proper for last node Pin
pranilrao28-Dec-09 11:02
pranilrao28-Dec-09 11:02 
AnswerRe: Treeview indentation not proper for last node Pin
pranilrao29-Dec-09 11:47
pranilrao29-Dec-09 11:47 
QuestionHow to write user control ? Pin
paper6728-Dec-09 5:56
paper6728-Dec-09 5:56 
QuestionUsing FaceBook in ASP Pin
Anil Kumar.Arvapalli28-Dec-09 3:36
Anil Kumar.Arvapalli28-Dec-09 3:36 

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.