4
Answers

how can i send the parameter using url in ASP.NET

Imran Husain

Imran Husain

8y
682
1
Hello Sir/mam How can i send the parameter using the return rul:
 
return url like this-

http://abcdxyz.com/wp-content/plugins/tet-india/web_services_nektonit/thankYou.php?txnID=&status=&msg=

 in this url there are 3 parameter 
1 txn id
2 status   
3 msg 
 
please help me. 

Attachment: source.zip

Answers (4)
1
Sibiraj Thattalam

Sibiraj Thattalam

NA 251 10.8k 8y
Hi Imran,
 
Try below.
 
string RedirectURL = string.Format("http://abcdxyz.com/wp-content/plugins/tet-india/web_services_nektonit/thankYou.php?txnID={0}&status={1}&msg={2}", Session["tx_id"], "1", "Sucess");
Response.Redirect(RedirectURL); 
Accepted
1
Sibiraj Thattalam

Sibiraj Thattalam

NA 251 10.8k 8y
Hello Imran,
 
You can call below on button click.
Response.Redirect("http://abcdxyz.com/wp-content/plugins/tet-india/web_services_nektonit/thankYou.php?txnID=&status=&msg=");
 
0
ankit srivastava

ankit srivastava

1.4k 229 0 8y
Hi, Imran
In your given test code there are two pages:
Confirm_sp.aspx
vrify_vle_sp.aspx
 In   Confirm_sp.aspx.cs there is one event lb_submit_Command in line no 207 
replace it with
  1. var redirectToNicSeverUrl = REDIRECT+"?encdata="str_enc ;  

 and in vrify_vle_sp.aspx.cs page you have to 

  1. var data =objintg.Decrypt(Request.QueryString["encdata"].ToString());
  2. var arrydata=data.Split('|');

0
Imran Husain

Imran Husain

NA 145 12.3k 8y
Dear Sibiraj Thattalam i dont your answer . you can check my source code then you can understand my query.