Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep data in client side

Status
Not open for further replies.

murugesanks

Programmer
Jan 25, 2001
48
0
0
US
Hi,
My application running in IIS/ASP/SQL Server.

In my ASP page, i have a form, which will accept Multi-row data entry from user.

I don't want to go to backend for enach and everytime, user clicks ADD button.

On click of ADD button, the data should appear as text and allow to enter data( Next Row).

Finally when i click "SAVE", all the data should store in DB.

how to do this. its something similer to Datagrid in VB. but i don't want third party COM.

thanks in advance.
Murugesan
 
Use javascript and cloneNodes to make mulitple form fields...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
<script>
memberCt = 0
function addField(){
memberCt ++
newFamily = document.getElementById(&quot;family0&quot;).cloneNode(true)
newRelate = document.getElementById(&quot;relationship0&quot;).cloneNode(true)
newFamily.id = &quot;family&quot; + memberCt
newRelate.id = &quot;realtionship&quot; + memberCt
document.getElementById(&quot;family0&quot;).parentNode.appendChild(newFamily)
document.getElementById(&quot;family0&quot;).parentNode.appendChild(newRelate)
}
</script>

<form name=myForm id=myForm>
<input type=text id=&quot;family0&quot;>
<select id=&quot;relationship0&quot;>
<option value=&quot;Mother&quot;>Mother
<option value=&quot;Father&quot;>Father
<option value=&quot;Brother&quot;>Brother
<option value=&quot;Sister&quot;>Sister
</select>
<input type=button value=&quot;Add Sibling&quot; onClick=&quot;addField()&quot; id=&quot;addButton&quot;><br>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top