473,287 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Add Form Textbox Data Dynemically and send data to databae mvc c#

I need to send data to database with dynamic textbox value. mvc c#


Expand|Select|Wrap|Line Numbers
  1.  <form id="fromdata">
  2.         <table id="tpvt" border="1" cellpadding="4">
  3.             <tbody>
  4.                 <tr>
  5.                     <td><h6 class="text-left">Company Name</h6><input type="text" name="CompName[]" placeholder="Company Name" id="CompName" value="" class="name_list p-0 m-0" /></td>
  6.                     <td><h6 class="text-left">Region</h6><input type="text" name="Region[]" id="Region" placeholder="Region" value="" class=" name_list" /> </td>
  7.                     <td><h6 class="text-left">Office Address</h6><input type="text" name="OffAdd[]" id="OffAdd" placeholder="Office Address" value="" class=" name_list p-0 m-0" /><input type="button" name="btnadd" id="btnadd" value="+" class="text-danger" /></td>
  8.                     <td><h6 class="text-left">Telephone</h6><input type="text" name="Tele[]" id="Tele" value="" placeholder="Telephone" class=" name_list p-0 m-0" /> <input type="button" name="btnadd" id="btntele" value="+" class="text-danger" /></td>
  9.                     <td><h6>Name</h6>&nbsp;<input type="text" name="NameOwner[]" id="NameOwner" placeholder="Name" value="" class=" name_list p-0 m-0" /><input type="button" name="btnadd" value="+" class="text-danger" /></td>
  10.                     <td><h6>Contact No</h6><input type="text" name="ContNo[]" id="ContNo" placeholder="Contact No" value="" class=" name_list p-0 m-0" /> <input type="button" name="btnadd" value="+" class="text-danger" /></td>
  11.                     <td><h6>Designation</h6>&nbsp;<input type="text" name="Desig[]" id="Desig" placeholder="Designation" value="" class=" name_list p-0 m-0" /><input type="button" name="btnadd" value="+" class="text-danger" /></td>
  12.                 </tr>
  13.  
  14.                 <tr>
  15.                     <td><h6>Email</h6><input type="text" name="Email[]" id="Email" placeholder="Email" value="" class=" name_list p-0 m-0" /> <input type="button" name="btnadd" value="+" class="text-danger" /></td>
  16.                     <td><h6>Decription</h6>&nbsp;<input type="text" name="Descp[]" placeholder="Discription" id="Descp" value="" class=" name_list p-0 m-0" /></td>
  17.                     <td><h6>GSTN No</h6><input type="text" name="Gstno[]" id="Gstno" placeholder="G.S.T No" value="" class=" name_list p-0 m-0" /> </td>
  18.                     <td><input type="submit" id="btnSubmit" value="Submit" class="btn btn-outline-danger p-1" /></td>
  19.                     <td></td>
  20.                     <td></td>
  21.                     <td></td>
  22.                 </tr>
  23.  
  24.  
  25.  
  26.             </tbody>
  27.         </table>
Jan 26 '21 #1
0 3739

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
5
by: amanatio | last post by:
I have a huge form with many data bound controls on it and 34 tables in database (and of course 34 data adapters and 34 datasets). The form is extremely slow to design (huge delay when I go to code...
3
by: Pat Alessi | last post by:
I want to use an XML data island to display editable records to a user on the cleint side. The user should be able to scroll through the records, modify any or all fields in any or all records, add...
4
by: T.Jackson | last post by:
Hi guys, I want to display the data of a table in a datagrid in one form, & enable the user to edit the details of a particular record in another form. I want the following features, 1....
16
by: Adda | last post by:
If I cycle through the MdiChildActivate event of the parent form I can read text in a textbox on the child mdiform -- console.writeline(Me.ActiveMdiChild.Controls(1).Text) But if I have a sub...
17
by: stathis gotsis | last post by:
Hello everyone, I am tying to come up with an elegant way to process some input data that come from a form. When the user hits the 'Submit' button, i want the form to appear again with the...
17
by: lokidog | last post by:
I am trying to automatically transfer data from one textbox to another between subforms within a 'main' form. I put this code into the Gotfocus eventprocedure: Private Sub Date_GotFocus() If...
2
by: ajaxcoder | last post by:
Hi In my project i had a login form and i am trying to send the username and password to the server for authentication using xmlHttpRequest. Hence i am using POST request but i am unable to send...
3
by: Joe Y | last post by:
In Access 2007, I have a form called OrderHeader that displays order details. The record source is based on table DBA_Order. When user clicks a combo box to select customer no, I want the form to...
0
by: tommy99 | last post by:
HI (Web form & data retrieval) I am looking to build a form whereby I can input a customers information (Name, address etc). However, what I want to do is for the to check a box then upon...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.