|
Hi
I have a third party payment system to integrate into my application. The final page in my application displays the order details and allows the user to confirm their order. Upon clicking confirm the order is created and at this point in my code behind file I would like to generate a post to a third party payment form that expects some form post values and the users browser should then be redirected to that page within the same session obviously so that the posted values can be used accordingly.
Any help would be greatly appreciated
Thanks in advance
Andy
|
|
|
|
|
Some API's are easier to work with then you think and while you did not mention which payment API your using, most are similar in how they are used/consumed.
You can use the HttpWebRequest class to post values to a site (e.g. PayPal), but the premise is the same.
Dim req As HttpWebRequest = CType(WebRequest.Create(API_URL), HttpWebRequest)
' Set values for the request back
req.Method = "POST"
req.ContentType = "application/x-www-form-urlencoded"
If you need to post the values to the page and have the user perform some final steps on the page while keeping the user on your site, this can be a little more tricky. You would need to send the identifier for the cart/user from your site, so once they are redirected back to your site,
you can perform the look up and react to the messages sent from the api.
You should look into the documentation of the API though. Most times you can handle all of this without the user ever leaving your site - a much better implementation IMO.
|
|
|
|
|
can any body tell me how to add search option in my website .asp.net with c# output should be in other page
|
|
|
|
|
Please use Google for generic questions such as these. The forums are for specific questions such as you post code and are getting an error.
|
|
|
|
|
Leckey AKA Google super evangelist.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I just don't understand people who spend more time setting up a CP account and posting a a generic question when in the same amount of time they could research their question!
|
|
|
|
|
i changed my domain user password in morning, and after 1 min i wanted to chang password again but i can not , and not changed.but if i want to change tommarow i can. do any body know why.??
can u give me a source too show me the reason of this problem.
|
|
|
|
|
I assume you're trying to do this programmatically? Wrong forum otherwise...
However, this has nothing to do with programming - it is a system policy enforced by your sysadmins. You will experience the same result if you do it manually.
The problem is that people will change passwords repeatedly until the system allows them to use their old password when they are asked to pick a new one (the system only rembers a specific - configurable - number of passwords). So, due to the inevitable stupidity of humans in general and computer users in particular, they have to be thwarted somehow - hence the minimum password age policy. I even think one day is the default in Active Directory (which would make sense as no sane sysadmin would ever use a smaller value or disable the policy).
In case you are the sysadmin and are unaware of this (which could be excused if you're a developer playing with Active Directory, but not otherwise): You will find this in the default domain policy or the default domain controller policy (not so in my own domain at the moment so I can't check and don't remember which). Look around in the security stuff under computer settings (you will of course need to be a domain administrator in order to mess around with it).
If you have accounts that are to be used by services or other software and that can't change, you have the option of disabling password aging for a particular account (on one of the account property sheets) - after assigning it a *really* long, random and complex password, of course.
--
Peter
|
|
|
|
|
I need help on this.
In my project I have a folder called "files". Inside that folder I have many file which I have uploaded. Now ,just by writing the link of the files in the address bar of Web Browser (ex: http://localhost:1234/Server/files/file.rar) anyone can download that file. I want to change that. When the clients are writing the link, instead of downloading the file, another page will be opened (ex: continue.aspx) and by clicking a button on that page, they can download that file (the story is like in rapidshare, filefactory, megaupload ...)
Can anyone tell how this can be done.
|
|
|
|
|
The way I would do this, is to stuff the files in the app_data folder, and read them in code and send them with a response.binarywrite, but only to users who were allowed to access them.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you can save the file in your database then read from database
it is safer but slower
modified on Sunday, May 18, 2008 1:01 AM
|
|
|
|
|
I'm looking for a good analyze-tool for websites.
I have used the tools at sitening.com but they are starting to charge for it as of June 1st.
The kind of tool I'm looking for is something that analyzes a site and gives suggestions on how to improve the coding.
It doesn't have to be a free service but that's always nice
|
|
|
|
|
I have some crystal reports in my maintanance project.when ever we are editing anything inside the crystal report (Cry_variablepay.rpt),its automatically generating another crystal report file (Cry_variablepay1.rpt) in the project file itself. the application shows build error showing that "the namespace already contains a definition for Cry_variables" ......ie; the newly created crystal report file has the same namespace as the older one.
so i cant able to build the project wthout error...can anybdy suggest the reason and solution...
|
|
|
|
|
hi,
i want to get a string from 0th position to current cursor position in HTML Textbox using javascipt.
anybody know pls reply me....
Nothing is Impossible. Keep always Smiling...
|
|
|
|
|
Hi All,
I am working with sub reports using Crystal report.
In the sub report I want a page header and footer but it is having only the report header and footer.
Can anyone tell me how to include a page header and footer in sub reports.
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
hai frnds
i m devloping a page in asp.net 2.0
in that page , i have a button - "Download Demo"
and the demo file is a vedio file
now my problem is , how to download that file...
when user clicks on "download demo" button , then he should be able to download the file.
plz help me
its very urgent
thankis in advance
vijay
|
|
|
|
|
I am astounded at the sort of questions people ask that show they have not bothered to do any sort of research themselves.
If you look for Response.BinaryWrite on the web, I guarentee you that you'll find the answer. If you want to force a download, you also need to set a filename and a contentType so that the browser downloads the file instead of trying to play it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello....
How to upload a Project......?
|
|
|
|
|
FTP.
Why did you ask this again ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Because. ...
U haven't Replying me...
So i am asking again in another way...
|
|
|
|
|
You are yet to ask a meaningful question, to be frank. Your question is so brief that it's hard to work out what your actual problem is, given how straight forward the answer is ( you use FTP to upload your site to a server ).
Either way, 'you' is 5 million members, so long as your question is visible, it's just rude to ask again.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi everyone,
I am developing a website using asp.net with C#.
And I developed a toolbar using javascript like google and yahoo toolbar which is placed in the browser separately.
Toolbar has the toolbar id.
I need to capture the toolbar id and save into the mysql database during the page load.
So that, I put the javascript funcation called myFunc() in the Source file of the page to capture the toolbar id.
I need to save the toolbar id into the mysql database and so I applied the coding to insert the toolbarid into the database.
When I execute the coding, first of all, the page is loaded, then only the javascript is executed. Therefore, I am unable to get the toolbar id to the variable assigned in the page load.
Please help me regarding this.
How do I call the javascript function to the page load event.
Thanks in Advance,
J. Mohan.
J. Mohan
|
|
|
|
|
Hi,
Test this one:
Page.ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "jsFunctionName('Params');", true);
you can execute scripts on page load event using this way
|
|
|
|
|
Thanks for your reply,
You have represented "mykey". Should I represent the "mykey" in the javascript.
I placed your code. sorry, I doesn't work. Please guide me.
Thank You,
J. Mohan.
J. Mohan
|
|
|
|
|
RegisterStartupScript registers the startup script with the Page object using a type, a key, a script literal, and a Boolean value indicating whether to add script tags.
public void RegisterStartupScript(
Type type,
string key,
string script,
bool addScriptTags
)
Parameters
type
Type: System.Type
The type of the startup script to register.
key
Type: System.String
The key of the startup script to register.
script
Type: System.String
The startup script literal to register.
addScriptTags
Type: System.Boolean
A Boolean value indicating whether to add script tags.
So, I think you cant represent the "mykey" in the javascript but you can represent script lirtal and you can send your params using that.
|
|
|
|