While this is similar to other questions, I've been unable to figure this out, and I feel pretty dumb for not knowing how to do it.
1) I can't use the PostbackURL property for the button click.
Basically what I need to do is, when a user clicks a button, I need to post data to a separate URL. That data is not found within the form. I need to add the data programmaticaly in the code behind.
So the user would click "Send". I would then add the user's email, firstname, lastname to a namedvaluecollection I'm assuming, and then post that to a certain URL.
My question is, how the heck do you do that? I've been unable to find anything online so far that clearly states how this is done, without creating a new HttpWebRequest.
EDIT PER COMMENT BELOW:
Basically we are integrating our membership with a separate application, and this has worked before. Unfortunately their tech support isn't helping much.
Basically a user is on their site and tries to do something which requires you to be logged in.
User is redirected to my login page. User enters credentials. If the user authenticates, I post their information (name, email etc...) to a specific URL. That URL will create the user on their end (if they don't exist) and/or redirect them to whatever URL they were trying to access the first time.
I have this working, however since I'm creating a new HttpWebRequest object, the redirect on their end is not working.
I could do this all in a query string, but with the amount of data being posted I think I'll exceed the URL character limit.