How to insert data in Database on submit button

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/1/2017 12:31:30 AM
Gravatar
Total Posts 4

How to insert data in Database on submit button

I'm using HTML instance to create below mentioned form:

Name:             <input name="txtName" type="text" id="txtName" style="width:700px;" />

Attach Resume

<input type="file" name="Resume" id="Resume" />

<input type="submit" name="BtnSubmit" value="Submit"  id="BtnSubmit"  />


On click event of this button, I want to insert/save whatever applicable data to my MS Sql database/server side.

Kindly help me and suggest me somewhat things for this as Contact Form feature is not exactly suitable option according to my requirements.

Thanks in an advance!


Regards,
Hemang Mehta.

2/20/2017 8:34:49 AM
Gravatar
Total Posts 2239

Re: How to insert data in Database on submit button

Hi Hemang,

You cannot insert form elements in an HTML instance and have them work.There is a limitation to one HTML form per page in ASP.NET and that form already exists so adding another one will likely cause errors on your page and will not work.

We have the Form Wizard Pro add-on which will allow you to create custom forms and use the submitted data to populate database tables or anything else you can dream up by using what we call a "Form Submission Event Handler".

Thanks,
Joe D.

You must sign in to post in the forums. This thread is closed to new posts.