jquery.clone() and ASP.NET Forms -


I have a page where I want to add multiple, dynamic users to a record in a database. Here is some initial page:

  & lt; Div id = "record" & gt; & Lt; Div id = "userrecord" & gt; Name: & lt; ASP: text box run = "server" id = "ozname text box" & gt; & Lt; / Asp: text box & gt; & Lt; Br / & gt; Phone number: & lt; ASP: Text Box Runat = "Server" ID = "Ozphone Number Timebox" & gt; & Lt; / Asp: text box & gt; & Lt; Br / & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

and jquery:

  $ (function () {$ (".button") button. (Click) (function (event) { Addnew (); event.preventDefault ();})}}) function addnew () {$ ('# userrecord'). Clone () AppendTo ('# record'); }  

So my question is how do I use in ASP.NET, to select all the data in this form and for every # user within the #records for the record division Adding a unique record is Div? Yes - I should change the user's record for a user - I will deal with that. This is just a simple test here.

Should I look in JSON for this type of function? I'm not familiar with it, but I can understand that this is really my best choice thanks for guidance!

You can not copy ASP.NET web form control with Javascript because the runtime remains if If you try to duplicate with Javascript, you try to duplicate the HTML, and they can see it, but ASP.Net does not know anything about them.

You can do this by using an UpdatePanel, and running a button back with your button and making controls in your backend program and adding them to the panel, what you do Are trying to

Another way is to create HTML inputs and to store things in a web service, or web method and make a real entry into the database there, but the normal ASP.N.T. The methods said that will not work on input, because they do not control the ASP. .NET related.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -