Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi,
am have developed web application,in ASP

but here is the request is:
when i type in the browser as:


http://www.silicontrace.com/Finance/Transaction.aspx?MID=V0001&&CNUM=0015856886&AMT=XXXXXXX&TOT=08102013223300&UPWD=1234&TT=1

and hit the enter.
then my application need to respond to that url on web and collect those parameters and update into mysql database .

i don't know what to do.

any suggestions.
Posted
Updated 29-Jan-14 21:58pm
v2
Comments
SP HINGU 30-Jan-14 3:03am    
use querystring for getting url values
Request.QueryString["MID"]
Member 10263519 30-Jan-14 3:20am    
ok, but my doubt is:

just type that url, then browser should respond TT=1.
webserver internally connects to my application and should update the record then give responce.
SP HINGU 30-Jan-14 3:23am    
can you please describe it in more detail..
Member 10263519 1-Feb-14 0:19am    
by hosting on web will get www.silicontechlabs.com

and my web page is Transaction.aspx , but how can i get Finance .in the above url.
SP HINGU 1-Feb-14 3:06am    
you can get it from HttpContext.Current.Request.Url.AbsolutePath

retrieve the values u are passing using query string like

C#
if (Request.QueryString["MID"] != null)
           {
               string mid = Request.QueryString["MID"];
           }
 
Share this answer
 
v2
Try is as below.Like as below you can get all your query string values.

C#
var MID = Request.QueryString["MID"] ?? null;

 var CNUM = Request.QueryString["CNUM"] ?? null;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900