asp.net - Use PostBackUrl to submit specific part of form -
asp.net - Use PostBackUrl to submit specific part of form -
i have asp.net webforms application , requirement add together form page posted external url, payment processing provider. form needs include specific hidden inputs, 1 of hashed string representation of form data.
i understand given limitations of webforms can't nest sec form within main <form runat="server" />. however, don't have alternative locate form outside of main form (due cms site built into).
i know can utilize asp.net button command postbackurl attribute allows form post specific url. however, posts every form element on page, including __viewstate, __eventtarget etc.
this not desired behaviour. want submit specific data. also, makes hard (impossible?) generate hash representation of form because have include viewstate etc.
i don't have alternative post info code behind because client expected go on interaction @ target url.
do have options here? must possible, net search has returned little.
update: i'm looking solution doesn't rely on javascript.
one alternative utilize ajax. utilize post info need , don't have redirect or anything. you'd in command of literally (well long user has javascript turned on, of course).
asp.net forms
Comments
Post a Comment