473,396 Members | 2,017 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,396 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 3822

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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.