Passing parameters...

  • Thread starter Miroslav Ostojic
  • Start date
M

Miroslav Ostojic

Hallo people...

I desperatly need help with one problem...
I've got this .net web application that I need to pass some parameters
from, to a payment form page some other place. My problem is that I've
got this control, which contains some input fields and some pictures,
I use this control in an aspx page with a form around it. When I post
the form to a payment page, asp.net turns it from [parametername] to
[control name]_[parametername]. I only want it to pass
[parametername]. Is there any solutions to this? I'm sorry because of
my english, but please ask me if there is something that you guys
don't understand.

Thanks guys
Miroslav Ostojic
 
D

DalePres

How are you posting to the payment page? Do you mean that you're
redirecting to the payment page? Though it is possible to post an ASP.Net
form to a different page, it's not very practical, so I assume you're
actually posting back to your own page. Can you give some more information
about how you're passing the value from the original form to the payment
page?

DalePres
MCAD, MCDBA, MCSE
 
G

Guest

I would think that the easiest way to accomplish this would be to use the
HttpWebRequest object to build the request that you're making manually. The
payload for a request that emulates a form POST is a set of URL-encoded
name/value pairs in the form 'parametername=paramatervalue&...'. With this
approach, you have full control over the parameters names that are being
created and passed.

Hope this helps.
 
M

Miroslav Ostojic

Do you know where I can find a good sample of code that is using HttpWebRequest?
But please, do have in mind that I'm just newbee in .NET... :)
It could help me solve one of my big problems...

=?Utf-8?B?QnJ1Y2UgSm9obnNvbiBbQyMgTVZQXQ==?= said:
I would think that the easiest way to accomplish this would be to use the
HttpWebRequest object to build the request that you're making manually. The
payload for a request that emulates a form POST is a set of URL-encoded
name/value pairs in the form 'parametername=paramatervalue&...'. With this
approach, you have full control over the parameters names that are being
created and passed.

Hope this helps.


Miroslav Ostojic said:
Hallo people...

I desperatly need help with one problem...
I've got this .net web application that I need to pass some parameters
from, to a payment form page some other place. My problem is that I've
got this control, which contains some input fields and some pictures,
I use this control in an aspx page with a form around it. When I post
the form to a payment page, asp.net turns it from [parametername] to
[control name]_[parametername]. I only want it to pass
[parametername]. Is there any solutions to this? I'm sorry because of
my english, but please ask me if there is something that you guys
don't understand.

Thanks guys
Miroslav Ostojic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top