New ASPX page with submit button code

Kapil Kumar Sharma asked on May 17, 2016 13:34

Hello

I have installed the Kentico on my local machine.Now I am accessing it through Visual Studio. I need to create two new ASPX pages and on click on submit of first form need to save data and then redirct to second one.

And on second form submit I need to make a call to another site and then save info with the response message into the database. So how can I create custom forms and also how can I handle submit from code behind.

Regards

Kapil

Recent Answers


Brenden Kehren answered on May 17, 2016 14:04

Any particular reason you chose ASPX development model vs. Portal development model? I'd suggest looking at Portal development and using the Online Forms module, webpart/widget, and a custom event handler. The combination of these 3-4 items will accomplish what you need without the need to try to recreate everything Kentico has already setup for you.

0 votesVote for this answer Mark as a Correct answer

Kapil Kumar Sharma answered on May 18, 2016 06:52

Hi it is in my requirement so I need to create a new APSX template.

So please help me out.

Thanks

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on May 19, 2016 15:25

Kapil, have you looked into Brendens suggestion? Are you stuck with aspx or can you use the portal engine? Either way, seems like you are trying to do something that is fairly simple. Create your two pages(webforms), include the forms on those pages, and set the form to redirect to your other page. If this seems difficult, I would suggest looking at the documentation on Kentico forms and also as Brenden said above, this would be quicker and easier to setup using portal engine, so you may want to look into that as well.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.