Click here to Skip to main content
15,911,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRepetitive Rows of Controls Pin
freshonlineMax27-May-07 17:40
freshonlineMax27-May-07 17:40 
AnswerRe: Repetitive Rows of Controls Pin
Christian Graus27-May-07 18:13
protectorChristian Graus27-May-07 18:13 
GeneralRe: Repetitive Rows of Controls Pin
freshonlineMax27-May-07 19:55
freshonlineMax27-May-07 19:55 
GeneralRe: Repetitive Rows of Controls Pin
Sandeep Akhare27-May-07 20:06
Sandeep Akhare27-May-07 20:06 
GeneralRe: Repetitive Rows of Controls Pin
Sathesh Sakthivel27-May-07 20:06
Sathesh Sakthivel27-May-07 20:06 
AnswerRe: Repetitive Rows of Controls Pin
freshonlineMax27-May-07 20:25
freshonlineMax27-May-07 20:25 
Questiontree component with multiple columns Pin
dannyyy27-May-07 11:03
dannyyy27-May-07 11:03 
QuestionHow do I add HTML dynamically in C# ASP? Pin
InvalidTypecast27-May-07 9:25
InvalidTypecast27-May-07 9:25 
Easy question most likely, but I don't know where to get started.

I need to build an HTML form dynamically based on the results of an SQL query I am doing so I can submit the form to paypal.

They need something in this format (this is from their example site):

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><br />
   <input type="hidden" name="cmd" value="_cart"><br />
   <input type="hidden" name="upload" value="1"><br />
   <input type="hidden" name="business"<br />
      value="seller@designerfotos.com"><br />
   <input type="hidden" name="item_name_1"<br />
      value="Item Name 1"><br />
   <input type="hidden" name="amount_1" value="1.00"><br />
   <input type="hidden" name="item_name_2"<br />
      value="Item Name 2"><br />
   <input type="hidden" name="amount_2" value="2.00"><br />
   <input type="submit" value="PayPal"><br />
</form>


So I need to be able to insert that HTML onto my ASP page and then recursively add sections like this for each item returned from my SQL query.

<br />
<input type="hidden" name="item_name_1"<br />
      value="Item Name 1"><br />
   <input type="hidden" name="amount_1" value="1.00">


Alternately, if anyone knows of an easier way to submit a shopping cart to paypal from an ASP page I'd love to hear it.

Thanks
AnswerRe: How do I add HTML dynamically in C# ASP? Pin
Christian Graus27-May-07 10:45
protectorChristian Graus27-May-07 10:45 
QuestionSoapException Pin
123456uio27-May-07 8:44
123456uio27-May-07 8:44 
QuestionPageChanged Event Handling with User Control Pin
Anees Mitha27-May-07 8:34
Anees Mitha27-May-07 8:34 
AnswerRe: PageChanged Event Handling with User Control Pin
Christian Graus27-May-07 10:49
protectorChristian Graus27-May-07 10:49 
GeneralRe: PageChanged Event Handling with User Control Pin
Anees Mitha27-May-07 17:23
Anees Mitha27-May-07 17:23 
GeneralRe: PageChanged Event Handling with User Control Pin
Christian Graus27-May-07 17:36
protectorChristian Graus27-May-07 17:36 
Questionpicture in URL Pin
haytham_mohammad27-May-07 8:00
haytham_mohammad27-May-07 8:00 
AnswerRe: picture in URL Pin
Paul Conrad27-May-07 9:19
professionalPaul Conrad27-May-07 9:19 
QuestionHow to improve website ranking in Google Pin
rajesh22527-May-07 4:28
rajesh22527-May-07 4:28 
AnswerRe: How to improve website ranking in Google Pin
Sathesh Sakthivel27-May-07 4:43
Sathesh Sakthivel27-May-07 4:43 
GeneralRe: How to improve website ranking in Google Pin
Maor David27-May-07 10:38
Maor David27-May-07 10:38 
GeneralRe: How to improve website ranking in Google Pin
N a v a n e e t h27-May-07 21:16
N a v a n e e t h27-May-07 21:16 
AnswerRe: How to improve website ranking in Google Pin
N a v a n e e t h27-May-07 21:23
N a v a n e e t h27-May-07 21:23 
GeneralRe: How to improve website ranking in Google Pin
rajesh22528-May-07 3:26
rajesh22528-May-07 3:26 
QuestionHow do I pass a string from one aspx file to another? Pin
Ranger4927-May-07 3:55
Ranger4927-May-07 3:55 
AnswerRe: How do I pass a string from one aspx file to another? Pin
Dave Herren27-May-07 5:18
Dave Herren27-May-07 5:18 
GeneralRe: How do I pass a string from one aspx file to another? Pin
Ranger4927-May-07 7:45
Ranger4927-May-07 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.